about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2011-11-06T06·28+0000
committerShea Levy <shea@shealevy.com>2011-11-06T06·28+0000
commit981edeab7b6b415c71d3421da6967ec7fc232e54 (patch)
treea18e8bd0adb6209e91ff2022d27709f4bfefd91a
parentf883afa1a1bc6c48bbb3d9c150e357c35e40c921 (diff)
The 'insert output between = signs' approach was not helpful
-rw-r--r--src/libexpr/primops.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index d5e1ce7be918..2a3f1e2c3221 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -456,7 +456,7 @@ static void prim_derivationStrict(EvalState & state, Value * * args, Value & v)
 
     state.mkAttrs(v, 1 + drv.outputs.size());
     foreach (DerivationOutputs::iterator, i, drv.outputs) {
-        mkString(*state.allocAttr(v, state.symbols.create(i->first + "DrvPath")), drvPath, singleton<PathSet>("=" + i->first + "=" + drvPath));
+        mkString(*state.allocAttr(v, state.symbols.create(i->first + "DrvPath")), drvPath, singleton<PathSet>("=" + drvPath));
         /* The output path of an output X is ‘<X>Path’,
            e.g. ‘outPath’. */
         mkString(*state.allocAttr(v, state.symbols.create(i->first + "Path")),
@@ -974,14 +974,7 @@ static void prim_unsafeDiscardOutputDependency(EvalState & state, Value * * args
     PathSet context2;
     foreach (PathSet::iterator, i, context) {
         Path p = *i;
-        if (p.at(0) == '=')
-        {
-            size_t index;
-            p = "~" + string(p, 1);
-            index = p.find("=");
-            if (index < p.find("/"))
-                p = "~" + string(p, index + 1);
-        }
+        p = "~" + string(p, 1);
         context2.insert(p);
     }