aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/0003-info-provides-alias-p-is-reserved-for-root-use-P.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-01 19:02:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-01 19:06:31 +0000
commit8d6945855c1fb5aa2871b33504c2a715c4d54e35 (patch)
tree4549d9e1448b4f09b175fc1bae81b5439f08ebd4 /main/apk-tools/0003-info-provides-alias-p-is-reserved-for-root-use-P.patch
parente6629e41d03fb04563ddbcd1bf7506c88e5efa29 (diff)
downloadaports-8d6945855c1fb5aa2871b33504c2a715c4d54e35.tar.bz2
aports-8d6945855c1fb5aa2871b33504c2a715c4d54e35.tar.xz
main/apk-tools: fix apk info --provides, add --progress-fd
ref #1396
Diffstat (limited to 'main/apk-tools/0003-info-provides-alias-p-is-reserved-for-root-use-P.patch')
-rw-r--r--main/apk-tools/0003-info-provides-alias-p-is-reserved-for-root-use-P.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/apk-tools/0003-info-provides-alias-p-is-reserved-for-root-use-P.patch b/main/apk-tools/0003-info-provides-alias-p-is-reserved-for-root-use-P.patch
new file mode 100644
index 0000000000..f8b806e1a7
--- /dev/null
+++ b/main/apk-tools/0003-info-provides-alias-p-is-reserved-for-root-use-P.patch
@@ -0,0 +1,35 @@
+From 4b7b5d4668865b1026c7050c8872f256bc773605 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Fri, 28 Sep 2012 10:24:27 +0300
+Subject: [PATCH] info: --provides alias -p is reserved for --root, use -P
+
+fixes #1396
+---
+ src/info.c | 4 ++--
+ 1 file 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" },
+--
+1.7.12.2
+