diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-12-16T14·31+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-12-16T14·31+0000 |
commit | 77970f8dafb540a598fd90ad360c42fbea36bf30 (patch) | |
tree | 56c7decc21ad1ee69e52a047d61c8dc794ace897 /scripts | |
parent | e3b051aeeb968528d918b6af6c1e1df0bd7de958 (diff) |
* Remove `prebuilts.conf' file, it's not like anybody was using it.
* Add /nix/var/nix/manifests directory.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 4 | ||||
-rw-r--r-- | scripts/nix-pull.in | 19 |
2 files changed, 4 insertions, 19 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index d4fa169bd25f..8a933fe95bbe 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -12,8 +12,6 @@ install-exec-local: readmanifest.pm $(INSTALL) -d $(DESTDIR)$(libexecdir)/nix $(INSTALL_DATA) readmanifest.pm $(DESTDIR)$(libexecdir)/nix $(INSTALL) -d $(DESTDIR)$(sysconfdir)/nix -# !!! don't overwrite local modifications - $(INSTALL_DATA) prebuilts.conf $(DESTDIR)$(sysconfdir)/nix/prebuilts.conf include ../substitute.mk @@ -21,5 +19,5 @@ EXTRA_DIST = nix-collect-garbage.in \ nix-pull.in nix-push.in nix-profile.sh.in \ nix-prefetch-url.in nix-install-package.in \ nix-channel.in \ - prebuilts.conf readmanifest.pm.in \ + readmanifest.pm.in \ nix-build.in 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; } |