* For ease of use during debugging, don't require --gc-roots-dir.

This commit is contained in:
Eelco Dolstra 2010-06-01 11:20:05 +00:00
parent e2e4b49b98
commit 4f5ed95bb9

View file

@ -151,8 +151,10 @@ static void findJobsWrapped(EvalState & state, XMLWriter & doc,
/* Register the derivation as a GC root. !!! This /* Register the derivation as a GC root. !!! This
registers roots for jobs that we may have already registers roots for jobs that we may have already
done. */ done. */
if (gcRootsDir != "") {
Path root = gcRootsDir + "/" + baseNameOf(drvPath); Path root = gcRootsDir + "/" + baseNameOf(drvPath);
if (!pathExists(root)) addPermRoot(drvPath, root, false); if (!pathExists(root)) addPermRoot(drvPath, root, false);
}
XMLOpenElement _(doc, "job", xmlAttrs); XMLOpenElement _(doc, "job", xmlAttrs);
showArgsUsed(doc, argsUsed); showArgsUsed(doc, argsUsed);
@ -229,7 +231,7 @@ void run(Strings args)
if (releaseExpr == "") throw UsageError("no expression specified"); if (releaseExpr == "") throw UsageError("no expression specified");
if (gcRootsDir == "") throw UsageError("--gc-roots-dir not specified"); if (gcRootsDir == "") printMsg(lvlError, "warning: `--gc-roots-dir' not specified");
store = openStore(); store = openStore();