about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--scripts/nix-pull.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/nix-pull.in b/scripts/nix-pull.in
index f584b6abd1c5..ff85ff9a6934 100644
--- a/scripts/nix-pull.in
+++ b/scripts/nix-pull.in
@@ -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";