diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-06T15·11+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-06T15·11+0000 |
commit | 7952a8053c474e771d6ee14e3ab6dc15c9ddd895 (patch) | |
tree | 1aa192faa08ebb092e85eeb4127bf414b29b2193 /src/fix.cc | |
parent | bfa5d77211385cd8abe5d0833f84a8151ccab37d (diff) |
* A utility `nix-hash' to compute Nix path hashes.
Diffstat (limited to 'src/fix.cc')
-rw-r--r-- | src/fix.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fix.cc b/src/fix.cc index cb42aca6b773..33bcdd9a1372 100644 --- a/src/fix.cc +++ b/src/fix.cc @@ -186,7 +186,6 @@ static Expr evalExpr(Expr e) /* Hash the normal form to produce a unique but deterministic path name for this package. */ ATerm nf = ATmake("Package(<term>)", ATreverse(bnds)); - debug(printTerm(nf)); Hash hash = hashTerm(nf); if (builder == "") @@ -202,7 +201,6 @@ static Expr evalExpr(Expr e) /* Construct the result. */ e = ATmake("Derive(<str>, <str>, <term>, <str>, <term>)", SYSTEM, builder.c_str(), ins, out.c_str(), env); - debug(printTerm(e)); /* Write the resulting term into the Nix store directory. */ Hash eHash = writeTerm(e); @@ -257,7 +255,7 @@ void run(Strings args) char * s; if (ATmatch(e, "Include(<str>)", &s)) { cout << format("%1%\n") % s; - } + } else throw badTerm("top level is not a package", e); } } |