1
0
Fork 0
mirror of https://github.com/pygos/pkg-utils.git synced 2024-11-24 21:40:43 +01:00

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

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;