Remove the current output metadata from the string for unsaveDiscardOutputDependency
This commit is contained in:
parent
bf50d6ad32
commit
e81c09edbf
1 changed files with 8 additions and 1 deletions
|
@ -974,7 +974,14 @@ static void prim_unsafeDiscardOutputDependency(EvalState & state, Value * * args
|
|||
PathSet context2;
|
||||
foreach (PathSet::iterator, i, context) {
|
||||
Path p = *i;
|
||||
if (p.at(0) == '=') p = "~" + string(p, 1);
|
||||
if (p.at(0) == '=')
|
||||
{
|
||||
size_t index;
|
||||
p = "~" + string(p, 1);
|
||||
index = p.find("=");
|
||||
if (index < p.find("/"))
|
||||
p = "~" + string(p, index + 1);
|
||||
}
|
||||
context2.insert(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue