Fix buildstrategy command argument handlin

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-03-29 21:40:11 +01:00
parent 680b1bb7f9
commit 48d74777e7
1 changed files with 3 additions and 3 deletions

View File

@ -116,8 +116,8 @@ fail:
/*****************************************************************************/
static const struct option long_opts[] = {
{ "provides", no_argument, NULL, 'p' },
{ "depends", no_argument, NULL, 'd' },
{ "provides", required_argument, NULL, 'p' },
{ "depends", required_argument, NULL, 'd' },
{ NULL, 0, NULL, 0 },
};
@ -156,7 +156,7 @@ static int process_args(int argc, char **argv)
}
if (hash_table_init(&tbl_provides, 1024))
return EXIT_FAILURE;
return -1;
if (hash_table_init(&tbl_sourcepkgs, 1024))
goto fail_provides;