From 7952a8053c474e771d6ee14e3ab6dc15c9ddd895 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 6 Jul 2003 15:11:02 +0000 Subject: * A utility `nix-hash' to compute Nix path hashes. --- src/fix.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/fix.cc') 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()", 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(, , , , )", 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()", &s)) { cout << format("%1%\n") % s; - } + } else throw badTerm("top level is not a package", e); } } -- cgit 1.4.1