fetchurl/fetchTarball: Respect name changes
The computation of urlHash didn't take the name into account, so subsequent fetchurl calls with the same URL but a different name would resolve to the same cached store path.
This commit is contained in:
@@ -1911,7 +1911,7 @@ void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v,
|
||||
{
|
||||
string url;
|
||||
Hash expectedHash;
|
||||
string name;
|
||||
string name = "";
|
||||
|
||||
state.forceValue(*args[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user