Subject: | URL like http://user:pass@host/debian/ fails in Debian::AptContents::repo_source_to_contents_path |
If I have a line like this in sources.list:
deb http://user:pass@ftp2.de.debian.org/debian/ squeeze main contrib
non-free
Then apt-file creates a file called:
ftp2.de.debian.org_debian_dists_squeeze_Contents-amd64.gz
But Debian::AptContents::repo_source_to_contents_path returns
user_:pass@ftp2.de.debian.org_debian_dists_squeeze
That, of course, leads to dh-make-perl failing.
Reproduction recipe:
#!/usr/bin/perl -w
use strict;
package BogusScaffold;
sub new {
my ($class) = @_;
return bless {}, $class;
}
sub warning {
my ($self, undef, $text) = @_;
warn $text;
}
sub dist {
my ($self) = @_;
return undef;
}
package main;
use Debian::AptContents;
my $scaffold = BogusScaffold->new();
my $sourcesListLine = 'deb http://user:pass@ftp2.de.debian.org/debian/
squeeze main contrib non-free';
my $fileName = Debian::AptContents::repo_source_to_contents_path(
$scaffold,$sourcesListLine
);
print "Line : $sourcesListLine\n";
print "Filename: $fileName\n";
print "\n";