diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-02 21:09:15 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-02 21:09:15 +0000 |
commit | 406dbb7fce32f7d80b02f560d91c956698b58d6e (patch) | |
tree | 9bfd188661798839c4ec088579071845f6dc98dd /src/libstore/builtins | |
parent | 1fcd3afc38ebc7ee98add0bf1b4bd643b25ccebf (diff) |
`outputHashAlgo` can be blank so parse accordingly
It is blank for SRI hashes.
Diffstat (limited to 'src/libstore/builtins')
-rw-r--r-- | src/libstore/builtins/fetchurl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/builtins/fetchurl.cc b/src/libstore/builtins/fetchurl.cc index 831431437..770df2927 100644 --- a/src/libstore/builtins/fetchurl.cc +++ b/src/libstore/builtins/fetchurl.cc @@ -63,7 +63,7 @@ void builtinFetchurl(const BasicDerivation & drv, const std::string & netrcData) for (auto hashedMirror : settings.hashedMirrors.get()) try { if (!hasSuffix(hashedMirror, "/")) hashedMirror += '/'; - auto ht = parseHashType(getAttr("outputHashAlgo")); + auto ht = parseHashTypeOpt(getAttr("outputHashAlgo")); auto h = Hash(getAttr("outputHash"), ht); fetch(hashedMirror + printHashType(*h.type) + "/" + h.to_string(Base::Base16, false)); return; |