diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-20 21:58:05 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-20 21:58:07 +0530 |
commit | f8bfd5e7dff88b911781a92e1ad87a7eba9342b9 (patch) | |
tree | 6f0b6a200763d2ec2fde60216ef27e2e3245bc2f | |
parent | cf02c0ac1b7d8ed930a03339f639f819b3ad127b (diff) |
evanix: --cache-status -> --check-cache-status
-rw-r--r-- | include/evanix.h | 2 | ||||
-rw-r--r-- | src/evanix.c | 24 | ||||
-rw-r--r-- | src/jobs.c | 4 |
3 files changed, 15 insertions, 15 deletions
diff --git a/include/evanix.h b/include/evanix.h index 9dbe2e7..df3e034 100644 --- a/include/evanix.h +++ b/include/evanix.h @@ -9,7 +9,7 @@ struct evanix_opts_t { bool ispipelined; bool solver_report; bool close_unused_fd; - bool cache_status; + bool check_cache_status; char *system; uint32_t max_build; }; diff --git a/src/evanix.c b/src/evanix.c index 42b89d7..7ed6768 100644 --- a/src/evanix.c +++ b/src/evanix.c @@ -10,16 +10,16 @@ static const char usage[] = "Usage: evanix [options] expr\n" "\n" - " -h, --help Show help message and quit.\n" - " -f, --flake Build a flake.\n" - " -d, --dry-run Show what derivations would be " + " -h, --help Show help message and quit.\n" + " -f, --flake Build a flake.\n" + " -d, --dry-run Show what derivations would be " "built.\n" - " -s, --system System to build for.\n" - " -m, --max-build Max number of builds.\n" - " -r, --solver-report Print solver report.\n" - " -p, --pipelined <bool> Use evanix build pipeline.\n" - " -l, --cache-status <bool> Perform cache locality check.\n" - " -c, --close-unused-fd <bool> Close stderr on exec.\n" + " -s, --system System to build for.\n" + " -m, --max-build Max number of builds.\n" + " -r, --solver-report Print solver report.\n" + " -p, --pipelined <bool> Use evanix build pipeline.\n" + " -l, --check_cache-status <bool> Perform cache locality check.\n" + " -c, --close-unused-fd <bool> Close stderr on exec.\n" "\n"; struct evanix_opts_t evanix_opts = { @@ -30,7 +30,7 @@ struct evanix_opts_t evanix_opts = { .max_build = 0, .system = NULL, .solver_report = false, - .cache_status = true, + .check_cache_status = true, }; static int evanix_build_thread_create(struct build_thread *build_thread); @@ -133,8 +133,8 @@ int main(int argc, char *argv[]) {"solver-report", no_argument, NULL, 'r'}, {"max-build", required_argument, NULL, 'm'}, {"pipelined", required_argument, NULL, 'p'}, - {"cache-status", required_argument, NULL, 'l'}, {"close-unused-fd", required_argument, NULL, 'c'}, + {"check-cache-status", required_argument, NULL, 'l'}, {NULL, 0, NULL, 0}, }; @@ -208,7 +208,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - evanix_opts.cache_status = ret; + evanix_opts.check_cache_status = ret; break; default: fprintf(stderr, @@ -388,7 +388,7 @@ int job_read(FILE *stream, struct job **job) if (ret < 0) goto out_free; - if (evanix_opts.cache_status) { + if (evanix_opts.check_cache_status) { ret = job_read_cache(j); if (ret < 0) goto out_free; @@ -458,7 +458,7 @@ static int job_new(struct job **j, char *name, char *drv_path, char *attr, job->parents_filled = 0; job->parents = NULL; - if (evanix_opts.cache_status) { + if (evanix_opts.check_cache_status) { job->stale = true; } else { job->insubstituters = false; |