summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-07-20 21:58:05 +0530
committersinanmohd <sinan@sinanmohd.com>2024-07-20 21:58:07 +0530
commitf8bfd5e7dff88b911781a92e1ad87a7eba9342b9 (patch)
tree6f0b6a200763d2ec2fde60216ef27e2e3245bc2f /src
parentcf02c0ac1b7d8ed930a03339f639f819b3ad127b (diff)
evanix: --cache-status -> --check-cache-status
Diffstat (limited to 'src')
-rw-r--r--src/evanix.c24
-rw-r--r--src/jobs.c4
2 files changed, 14 insertions, 14 deletions
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,
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;