* Bug: Fix does not allow empty names, so don't generate them.
This commit is contained in:
parent
a01629894d
commit
1cb030736e
|
@ -30,16 +30,16 @@ while (<CONFFILE>) {
|
||||||
next if $fn =~ /\//;
|
next if $fn =~ /\//;
|
||||||
next unless $fn =~ /^([0-9a-z]{32})-([0-9a-z]{32})(.*)\.nar\.bz2$/;
|
next unless $fn =~ /^([0-9a-z]{32})-([0-9a-z]{32})(.*)\.nar\.bz2$/;
|
||||||
my $hash = $1;
|
my $hash = $1;
|
||||||
my $id = $2;
|
my $id = $2;
|
||||||
my $outname = $3;
|
my $outname = $3;
|
||||||
my $fsid;
|
my $fsid;
|
||||||
if ($outname =~ /^-/) {
|
if ($outname =~ /^-/) {
|
||||||
next unless $outname =~ /^-((s-([0-9a-z]{32}))?.*)$/;
|
next unless $outname =~ /^-((s-([0-9a-z]{32}))?.*)$/;
|
||||||
$outname = $1;
|
$outname = $1;
|
||||||
$fsid = $3;
|
$fsid = $3;
|
||||||
} else {
|
} else {
|
||||||
$outname = "";
|
$outname = "unnamed";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "registering $id -> $url/$fn\n";
|
print "registering $id -> $url/$fn\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue