about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-01T13·08+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-01T13·08+0200
commitc1323b53e3a1650271469f713804e628509a858c (patch)
treeb3327ca5bcfdc4208edc4d6f50967a45d88e6947
parent1c88e100e776c6707caa172d4bb7c8e445d230cc (diff)
Fix fetchurl/fetchTarball
-rw-r--r--src/libexpr/primops.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 95914626f1ca..355b81adf76d 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}));
 }