summaryrefslogtreecommitdiff
path: root/package/system/opkg/patches/090-suppress-blank-provides-field.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-12-13 10:40:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-12-13 10:40:26 +0000
commit594442a37e40f7839b144036e1e2ade8a1d58f86 (patch)
tree55cf5595699e8c91adb9bb12c8c49b3acae5661d /package/system/opkg/patches/090-suppress-blank-provides-field.patch
parentf85c00c2df55542a32a25d38f4e5aadb1f96b09f (diff)
downloadmtk-20170518-594442a37e40f7839b144036e1e2ade8a1d58f86.zip
mtk-20170518-594442a37e40f7839b144036e1e2ade8a1d58f86.tar.gz
mtk-20170518-594442a37e40f7839b144036e1e2ade8a1d58f86.tar.bz2
opkg: do not add blank "Provides:" fields to package metadata
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39039
Diffstat (limited to 'package/system/opkg/patches/090-suppress-blank-provides-field.patch')
-rw-r--r--package/system/opkg/patches/090-suppress-blank-provides-field.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/system/opkg/patches/090-suppress-blank-provides-field.patch b/package/system/opkg/patches/090-suppress-blank-provides-field.patch
new file mode 100644
index 0000000..7adf922
--- /dev/null
+++ b/package/system/opkg/patches/090-suppress-blank-provides-field.patch
@@ -0,0 +1,11 @@
+--- a/libopkg/pkg.c
++++ b/libopkg/pkg.c
+@@ -731,7 +731,7 @@ pkg_formatted_field(FILE *fp, pkg_t *pkg
+ } else if (strcasecmp(field, "Priority") == 0) {
+ fprintf(fp, "Priority: %s\n", pkg->priority);
+ } else if (strcasecmp(field, "Provides") == 0) {
+- if (pkg->provides_count) {
++ if (pkg->provides_count > 1) {
+ fprintf(fp, "Provides:");
+ for(i = 1; i < pkg->provides_count; i++) {
+ fprintf(fp, "%s %s", i == 1 ? "" : ",",