about summary refs log tree commit diff
path: root/scripts/download-from-binary-cache.pl.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-03T21·47-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-03T21·47-0400
commit2a8e5c8b11d23f3d56cc7548e21f47325a736b79 (patch)
tree607016bbb920cc5fc29ed337e10c4b42def11c87 /scripts/download-from-binary-cache.pl.in
parentd694c599e2b9eee71ade8cc4befb46ed911f4a10 (diff)
download-from-binary-cache: strip trailing / from URLs
Diffstat (limited to 'scripts/download-from-binary-cache.pl.in')
-rw-r--r--scripts/download-from-binary-cache.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in
index d073f5bfdcbe..3303199dacd2 100644
--- a/scripts/download-from-binary-cache.pl.in
+++ b/scripts/download-from-binary-cache.pl.in
@@ -7,7 +7,7 @@ use Nix::Store;
 use DBI;
 
 
-my @binaryCacheUrls = split / /, ($ENV{"NIX_BINARY_CACHES"} || "");
+my @binaryCacheUrls = map { s/\/+$//; $_ } split(/ /, ($ENV{"NIX_BINARY_CACHES"} || ""));
 
 my ($dbh, $insertNAR, $queryNAR);
 my %cacheIds;