From f8bfd5e7dff88b911781a92e1ad87a7eba9342b9 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 20 Jul 2024 21:58:05 +0530 Subject: evanix: --cache-status -> --check-cache-status --- include/evanix.h | 2 +- src/evanix.c | 24 ++++++++++++------------ 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 Use evanix build pipeline.\n" - " -l, --cache-status Perform cache locality check.\n" - " -c, --close-unused-fd 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 Use evanix build pipeline.\n" + " -l, --check_cache-status Perform cache locality check.\n" + " -c, --close-unused-fd 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, diff --git a/src/jobs.c b/src/jobs.c index 9d50950..909ef1b 100644 --- a/src/jobs.c +++ b/src/jobs.c @@ -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; -- cgit v1.2.3