prevent a 'deb...' mirror argument from being handled by the '://' case

This commit is contained in:
Johannes 'josch' Schauer 2018-10-02 04:09:18 +02:00
parent 173ea1162b
commit bb2aa6e9fd
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -682,10 +682,10 @@ sub setup {
# read from stdin
print STDERR "I: Reading sources.list from standard input...\n";
copy *STDIN, $fh or die "cannot copy stdin: $!";
} elsif ($arg =~ /:\/\//) {
print $fh "deb$archopt $arg $options->{suite} $options->{components}\n";
} elsif ($arg =~ /^deb(-src)? /) {
print $fh "$arg\n";
} elsif ($arg =~ /:\/\//) {
print $fh "deb$archopt $arg $options->{suite} $options->{components}\n";
} elsif (-f $arg) {
copy($arg, $fh) or die "cannot copy $arg: $!";
} else {