* Bug: Fix does not allow empty names, so don't generate them.

This commit is contained in:
Eelco Dolstra 2003-07-29 17:56:39 +00:00
parent a01629894d
commit 1cb030736e

View file

@ -30,16 +30,16 @@ while (<CONFFILE>) {
next if $fn =~ /\//;
next unless $fn =~ /^([0-9a-z]{32})-([0-9a-z]{32})(.*)\.nar\.bz2$/;
my $hash = $1;
my $id = $2;
my $outname = $3;
my $fsid;
if ($outname =~ /^-/) {
next unless $outname =~ /^-((s-([0-9a-z]{32}))?.*)$/;
$outname = $1;
$fsid = $3;
} else {
$outname = "";
}
my $id = $2;
my $outname = $3;
my $fsid;
if ($outname =~ /^-/) {
next unless $outname =~ /^-((s-([0-9a-z]{32}))?.*)$/;
$outname = $1;
$fsid = $3;
} else {
$outname = "unnamed";
}
print "registering $id -> $url/$fn\n";