diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-08-23 11:07:50 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-08-23 11:07:50 +0300 |
commit | ba0e2b579d747c0f3ad8337ab2640c3c1d82a562 (patch) | |
tree | 8495341e7e52ffc3752c39807a39824881d5eb16 /src | |
parent | a46043bcc4cc15b456ef1eac5c5f9d93bd905d53 (diff) | |
download | apk-tools-ba0e2b579d747c0f3ad8337ab2640c3c1d82a562.tar.gz apk-tools-ba0e2b579d747c0f3ad8337ab2640c3c1d82a562.tar.bz2 apk-tools-ba0e2b579d747c0f3ad8337ab2640c3c1d82a562.tar.xz apk-tools-ba0e2b579d747c0f3ad8337ab2640c3c1d82a562.zip |
list: recognize both --upgradable and --upgradeable
fixes #10759
Diffstat (limited to 'src')
-rw-r--r-- | src/app_list.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app_list.c b/src/app_list.c index 620c3ad..5e14fe1 100644 --- a/src/app_list.c +++ b/src/app_list.c @@ -179,7 +179,8 @@ static void print_result(struct apk_database *db, const char *match, struct apk_ OPT(OPT_LIST_origin, APK_OPT_SH("o") "origin") \ OPT(OPT_LIST_orphaned, APK_OPT_SH("O") "orphaned") \ OPT(OPT_LIST_providers, APK_OPT_SH("P") "providers") \ - OPT(OPT_LIST_upgradeable, APK_OPT_SH("u") "upgradeable") + OPT(OPT_LIST_upgradable, APK_OPT_SH("u") "upgradable") \ + OPT(OPT_LIST_upgradeable, "upgradeable") APK_OPT_APPLET(option_desc, LIST_OPTIONS); @@ -208,6 +209,7 @@ static int option_parse_applet(void *pctx, struct apk_ctx *ac, int opt, const ch case OPT_LIST_providers: ctx->match_providers = 1; break; + case OPT_LIST_upgradable: case OPT_LIST_upgradeable: ctx->available = 1; ctx->orphaned = 0; |