diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-01 15:08:09 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-01 15:08:09 +0200 |
commit | c1323b53e3a1650271469f713804e628509a858c (patch) | |
tree | b3327ca5bcfdc4208edc4d6f50967a45d88e6947 /src/libexpr | |
parent | 1c88e100e776c6707caa172d4bb7c8e445d230cc (diff) |
Fix fetchurl/fetchTarball
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/primops.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 95914626f..355b81adf 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -1515,7 +1515,8 @@ void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v, } else url = state.forceStringNoCtx(*args[0], pos); - mkString(v, downloadFileCached(url, unpack), PathSet({url})); + Path res = downloadFileCached(url, unpack); + mkString(v, res, PathSet({res})); } |