about summary refs log tree commit diff
path: root/scripts/nix-pull.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nix-pull.in')
-rw-r--r--scripts/nix-pull.in19
1 files changed, 3 insertions, 16 deletions
diff --git a/scripts/nix-pull.in b/scripts/nix-pull.in
index 66d99ff7c9b5..82b6e8435bc3 100644
--- a/scripts/nix-pull.in
+++ b/scripts/nix-pull.in
@@ -10,7 +10,6 @@ do { $tmpdir = tmpnam(); }
 until mkdir $tmpdir, 0777;
 
 my $manifest = "$tmpdir/manifest";
-my $confFile = "@sysconfdir@/nix/prebuilts.conf";
 
 #END { unlink $manifest; rmdir $tmpdir; }
 
@@ -33,21 +32,9 @@ sub processURL {
     readManifest $manifest, \%storePaths2urls, \%urls2hashes, \%successors;
 }
 
-if (scalar @ARGV > 0) {
-    while (@ARGV) {
-        my $url = shift @ARGV;
-	processURL $url;
-    }
-} else {
-    open CONFFILE, "<$confFile";
-    while (<CONFFILE>) {
-        chomp;
-        if (/^\s*(\S+)\s*(\#.*)?$/) {
-            my $url = $1;
-	    processURL $url;
-        }
-    }
-    close CONFFILE;
+while (@ARGV) {
+    my $url = shift @ARGV;
+    processURL $url;
 }