aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-08-23 11:07:50 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-08-23 11:08:54 +0300
commitb352ba750ff4df362a8246c2f5cd3e73a66c9c7c (patch)
treed172350af8e73b7652baa21a8a0dc5eb2113f9b9
parent5038e30ef96f2bf1e74c29f632f5ae2e06bc702f (diff)
downloadapk-tools-b352ba750ff4df362a8246c2f5cd3e73a66c9c7c.tar.gz
apk-tools-b352ba750ff4df362a8246c2f5cd3e73a66c9c7c.tar.bz2
apk-tools-b352ba750ff4df362a8246c2f5cd3e73a66c9c7c.tar.xz
list: recognize both --upgradable and --upgradeable
fixes #10759
-rw-r--r--doc/apk-list.8.scd2
-rw-r--r--src/app_list.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/apk-list.8.scd b/doc/apk-list.8.scd
index e011825..e09577d 100644
--- a/doc/apk-list.8.scd
+++ b/doc/apk-list.8.scd
@@ -27,7 +27,7 @@ globbing.
*-a, --available*
Consider only available packages.
-*-u, --upgradable*
+*-u, --upgradable, --upgradeable*
Consider only upgradable packages.
*-o, --origin*
diff --git a/src/app_list.c b/src/app_list.c
index 5606df0..0693f4b 100644
--- a/src/app_list.c
+++ b/src/app_list.c
@@ -184,7 +184,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);
@@ -213,6 +214,7 @@ static int option_parse_applet(void *pctx, struct apk_db_options *dbopts, int op
case OPT_LIST_providers:
ctx->match_providers = 1;
break;
+ case OPT_LIST_upgradable:
case OPT_LIST_upgradeable:
ctx->available = 1;
ctx->orphaned = 0;