diff options
author | Julien Lepiller <julien@lepiller.eu> | 2020-02-09 19:47:27 +0100 |
---|---|---|
committer | Guix Patches Tester <> | 2020-02-09 19:26:11 +0000 |
commit | ff7e068bf718545fa594481e62f4fc5537c583f8 (patch) | |
tree | 53ef5889bad0a75f320158efb6d75b6a255e6106 /nix/libstore/build.cc | |
parent | 27b09f3ab11a30821a5ce0b071aac1bc6156497d (diff) | |
download | guix-patches-ff7e068bf718545fa594481e62f4fc5537c583f8.tar guix-patches-ff7e068bf718545fa594481e62f4fc5537c583f8.tar.gz |
guix: download: Add partial download support.
* nix/libstore/build.cc (tryToBuild): Do not remove invalid fixed-output
derivations.
* guix/build/download.scm (http-fetch): Add a range argument.
(url-fetch): Performa partial download if a file already exists.
Diffstat (limited to 'nix/libstore/build.cc')
-rw-r--r-- | nix/libstore/build.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index 17e92c68a7..176ab40226 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -1320,6 +1320,7 @@ void DerivationGoal::tryToBuild() Path path = i->second.path; if (worker.store.isValidPath(path)) continue; if (!pathExists(path)) continue; + if (fixedOutput) continue; debug(format("removing invalid path `%1%'") % path); deletePath(path); } |