[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt-file Fehlermeldung



Hy,

Weiss jemand was hier schief läuft?:

---schnipp---
maik@syl:~ $ apt-file search cat

Can't locate object method "host" via package "URI::_foreign"
(perhaps you forgot to load "URI::_foreign"?) at /usr/bin/apt-file
line 225.
---schanpp---

Context:

,----[ /usr/bin/apt-file ]
| 211  sub grep_file {
| 212      my ($uris) = @_;
| 213      my $options = "";
| 214      $options .= " -i " if $Conf{'case-sensitive'};
| 215      my $pattern = shell_pattern($Conf{'pattern'});
| 216 #... 
| 217      $pattern .= "[[:space:]]";
| 218      $options .= "\"^[^ ]*$pattern\" ";
| 219      my @packages=();
| 221      print "options: $options\n" if $Conf{'verbose'};
| 223      foreach (@$uris) {
| 224          my $uri = URI->new ("$_/Contents-$Conf{'arch'}.gz");
| 225          my $file = $Conf{'cache'} . "/" . &uri_escape($uri->host()
| 226                                 . dirname($uri->path()). "/"
| 227                                 .basename($uri->path()));
| 228          if (-f $file) {
| 229              print "Searching in `$file'\n" if $Conf{'verbose'};
| 230              open(GREP, "zgrep $options $file |")
| 231                  || die "Can't search in `$file': $!\n";
| 232              while (<GREP>) {
| 233                  /^([^ \t]+)[ \t]+(.*)$/;
| 234                  foreach (split /,/, $2) {
| 235                      my $pack = basename($_);
| 236                      push @packages, $pack;
| 237                  }
| 238              }
| 239              close GREP;
| 240          }
| 241      }
`----

Wie mache ich das, dass ich URI::foreign lade?

TIA.

-- 
:wq-y maik



Reply to: