about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2011-11-06T07·03+0000
committerShea Levy <shea@shealevy.com>2011-11-06T07·03+0000
commit2ab29be70c99483dbd8cf12eece4d553c7f953f3 (patch)
tree3ccbc31f36887a0a900c1e0fc3b34ababb010187 /src
parentca0d47a70c37999f8cc9c2e82c76661826cfd50a (diff)
Fix faulty reversion of my changes to unsafeDiscardOutputDependency
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 70560302ea4c..09a653002f44 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -989,7 +989,7 @@ static void prim_unsafeDiscardOutputDependency(EvalState & state, Value * * args
     PathSet context2;
     foreach (PathSet::iterator, i, context) {
         Path p = *i;
-        p = "~" + string(p, 1);
+        if (p.at(0) == '=') p = "~" + string(p, 1);
         context2.insert(p);
     }