mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 13:06:01 +01:00
parent
339236d32e
commit
1294442c6c
1 changed files with 1 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ DownloadFileResult downloadFile(
|
||||||
/* Cache metadata for all URLs in the redirect chain. */
|
/* Cache metadata for all URLs in the redirect chain. */
|
||||||
for (auto & url : res.urls) {
|
for (auto & url : res.urls) {
|
||||||
key.second.insert_or_assign("url", url);
|
key.second.insert_or_assign("url", url);
|
||||||
|
assert(!res.urls.empty());
|
||||||
infoAttrs.insert_or_assign("url", *res.urls.rbegin());
|
infoAttrs.insert_or_assign("url", *res.urls.rbegin());
|
||||||
getCache()->upsert(key, *store, infoAttrs, *storePath);
|
getCache()->upsert(key, *store, infoAttrs, *storePath);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue