summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-28 10:24:27 +0300
committerTimo Teräs <timo.teras@iki.fi>2012-09-28 10:25:30 +0300
commit4b7b5d4668865b1026c7050c8872f256bc773605 (patch)
tree5b5c92841d57a24d00bb3850f5efbdb7341f0b0a
parent43850a126b94690302bc2564905141b077b490e7 (diff)
downloadapk-tools-4b7b5d4668865b1026c7050c8872f256bc773605.tar.gz
apk-tools-4b7b5d4668865b1026c7050c8872f256bc773605.tar.bz2
apk-tools-4b7b5d4668865b1026c7050c8872f256bc773605.tar.xz
apk-tools-4b7b5d4668865b1026c7050c8872f256bc773605.zip
info: --provides alias -p is reserved for --root, use -P
fixes #1396
-rw-r--r--src/info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/info.c b/src/info.c
index e9f1b59..9b37f38 100644
--- a/src/info.c
+++ b/src/info.c
@@ -427,7 +427,7 @@ static int info_parse(void *ctx, struct apk_db_options *dbopts,
case 'R':
ictx->subaction_mask |= APK_INFO_DEPENDS;
break;
- case 'p':
+ case 'P':
ictx->subaction_mask |= APK_INFO_PROVIDES;
break;
case 'r':
@@ -489,7 +489,7 @@ static struct apk_option info_options[] = {
{ 'e', "installed", "Check if PACKAGE is installed" },
{ 'W', "who-owns", "Print the package owning the specified file" },
{ 'R', "depends", "List packages that the PACKAGE depends on" },
- { 'p', "provides", "List virtual packages provided by PACKAGE" },
+ { 'P', "provides", "List virtual packages provided by PACKAGE" },
{ 'r', "rdepends", "List all packages depending on PACKAGE" },
{ 0x10000, "replaces", "List packages whom files PACKAGE might replace" },
{ 'i', "install-if", "List the PACKAGE's install-if rule" },