diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/nix-push.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in index 373533190a06..19cc3bed6465 100644 --- a/scripts/nix-push.in +++ b/scripts/nix-push.in @@ -31,7 +31,7 @@ my $localCopy; my $localArchivesDir; my $localManifestFile; -my $targetArchivesDir; +my $targetArchivesUrl; my $archivesPutURL; my $archivesGetURL; @@ -45,10 +45,10 @@ if ($ARGV[0] eq "--copy") { $localManifestFile = shift @ARGV; if ($ARGV[0] eq "--target") { shift @ARGV; - $targetArchivesDir = shift @ARGV; + $targetArchivesUrl = shift @ARGV; } else { - $targetArchivesDir = $localArchivesDir; + $targetArchivesUrl = "file:/$localArchivesDir"; } } else { @@ -199,7 +199,7 @@ for (my $n = 0; $n < scalar @storePaths; $n++) { my $url; if ($localCopy) { - $url = "file://$targetArchivesDir/$narName"; + $url = "$targetArchivesUrl/$narName"; } else { $url = "$archivesGetURL/$narName"; } |