struct cli_local_args {
const char* distro;
- const char* id;
const char* target;
enum {
BUILD_INTERACTIVE = (1 << 0),
OPT_DISABLE_CCACHE = 1,
OPT_DISABLE_SNAPSHOT = 2,
OPT_DISABLE_TESTS = 3,
- OPT_ID = 4,
- OPT_NON_INTERACTIVE = 5,
- OPT_TARGET = 6,
+ OPT_NON_INTERACTIVE = 4,
+ OPT_TARGET = 5,
};
static struct argp_option options[] = {
{ "disable-ccache", OPT_DISABLE_CCACHE, NULL, 0, "Disable the ccache", 0 },
{ "disable-snapshot", OPT_DISABLE_SNAPSHOT, NULL, 0, "Do not use the snapshot", 0 },
{ "disable-tests", OPT_DISABLE_TESTS, NULL, 0, "Do not run tests", 0 },
- { "id", OPT_ID, "ID", 0, "Use this build ID", 1 },
{ "non-interactive", OPT_NON_INTERACTIVE, NULL, 0, "Run the build non-interactively", 0 },
{ "target", OPT_TARGET, "TARGET", 0, "Output all packages into this directory", 0 },
{ NULL },
args->flags &= ~BUILD_ENABLE_TESTS;
break;
- case OPT_ID:
- args->id = arg;
- break;
-
case OPT_NON_INTERACTIVE:
args->flags &= ~BUILD_INTERACTIVE;
break;
int cli_build(void* data, int argc, char* argv[]) {
struct cli_global_args* global_args = data;
struct cli_local_args local_args = {
- .id = NULL,
- .target = NULL,
.flags =
BUILD_INTERACTIVE |
BUILD_ENABLE_CCACHE |
// Is the build interactive?
if (local_args.flags & BUILD_INTERACTIVE)
- flags |= PAKFIRE_BUILD_INTERACTIVE;
+ flags |= PAKFIRE_BUILD_INTERACTIVE;
// Enable ccache?
if (!(local_args.flags & BUILD_ENABLE_CCACHE))