From 4b66cebe7bf1a8c03fb8f1e0052c19e91820c66c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 Aug 2006 17:09:55 +0000 Subject: * Remove those storePath attribute sets, we don't need 'em. --- src/libexpr/primops.cc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/libexpr/primops.cc') diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index d82cc5870a3a..50712a72513a 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -170,18 +170,7 @@ static void processBinding(EvalState & state, Expr e, Derivation & drv, ss.push_back(outPath); } - else if (a && evalString(state, a) == "storePath") { - - a = queryAttr(e, "outPath"); - if (!a) throw EvalError("output path missing"); - /* !!! supports only single output path */ - Path outPath = evalPath(state, a); - - drv.inputSrcs.insert(outPath); - ss.push_back(outPath); - } - - else throw TypeError("attribute sets in derivations must either be derivations or store paths"); + else throw TypeError("attribute sets in derivations must be derivations"); } else if (matchPath(e, s)) { -- cgit 1.4.1