download-from-binary-cache: strip trailing / from URLs

This commit is contained in:
Eelco Dolstra 2012-07-03 17:47:01 -04:00
parent d694c599e2
commit 2a8e5c8b11
1 changed files with 1 additions and 1 deletions

View File

@ -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;