From c1bf3bb0f2c9db522df039ebe47327822e4b8f18 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 12 Sep 2014 14:30:01 +0200 Subject: [PATCH] hydra-eval-jobs: Add --dry-run option --- src/c/hydra-eval-jobs.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/c/hydra-eval-jobs.cc b/src/c/hydra-eval-jobs.cc index 0b414cef..e08124c1 100644 --- a/src/c/hydra-eval-jobs.cc +++ b/src/c/hydra-eval-jobs.cc @@ -11,6 +11,7 @@ #include "xml-writer.hh" #include "get-drvs.hh" #include "common-opts.hh" +#include "globals.hh" using namespace nix; @@ -249,6 +250,8 @@ int main(int argc, char * * argv) ; else if (*arg == "--gc-roots-dir") gcRootsDir = getArg(*arg, arg, end); + else if (*arg == "--dry-run") + settings.readOnlyMode = true; else if (*arg != "" && arg->at(0) == '-') return false; else