diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-03T21·47-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-03T21·47-0400 |
commit | 2a8e5c8b11d23f3d56cc7548e21f47325a736b79 (patch) | |
tree | 607016bbb920cc5fc29ed337e10c4b42def11c87 /scripts | |
parent | d694c599e2b9eee71ade8cc4befb46ed911f4a10 (diff) |
download-from-binary-cache: strip trailing / from URLs
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/download-from-binary-cache.pl.in | 2 |
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; |