diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-05-26T09·44+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-05-26T09·44+0000 |
commit | f8d91f20e6c88510282263715a1b87c99afad5a1 (patch) | |
tree | e76bee2541de9e7ccff08b403e938a8a04ff0bfb /scripts/nix-push-prebuilts | |
parent | 13176d74cc522951e2c8ed6a878a04ddfce778ca (diff) |
* Nix can now fetch prebuilts (and other files) from the network, iff
a mapping from the hash to a url has been registered through `nix regurl'. * Bug fix in nix: don't pollute stdout when running tar, it made nix-switch barf. * Bug fix in nix-push-prebuilts: don't create a subdirectory on the target when rsync'ing.
Diffstat (limited to 'scripts/nix-push-prebuilts')
-rwxr-xr-x | scripts/nix-push-prebuilts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/nix-push-prebuilts b/scripts/nix-push-prebuilts index 2e3029b1699f..95289787995b 100755 --- a/scripts/nix-push-prebuilts +++ b/scripts/nix-push-prebuilts @@ -17,7 +17,6 @@ close KNOWNS; # For each installed package, check whether a prebuilt is known. open PKGS, "nix listinst|"; -open KNOWNS, ">>$knowns"; while (<PKGS>) { chomp; @@ -28,13 +27,16 @@ while (<PKGS>) { print "exporting $pkghash...\n"; system "nix export '$exportdir' $pkghash"; if ($?) { die "`nix export' failed"; } - print KNOWNS "$pkghash\n"; } } -close KNOWNS; close PKGS; # Push the prebuilts to the server. !!! FIXME -system "rsync -av -e ssh '$exportdir' losser:/home/eelco/public_html/nix-prebuilts/"; +system "rsync -av -e ssh '$exportdir'/ losser:/home/eelco/public_html/nix-prebuilts/"; + +# Rerun `nix-pull-prebuilts' to rescan the prebuilt source locations. + +print "running nix-pull-prebuilts..."; +system "nix-pull-prebuilts"; |