summaryrefslogtreecommitdiff
path: root/package/system/opkg/patches/090-suppress-blank-provides-field.patch
blob: 7adf92235c6cca0cf773ff08693ccf7fafa8d6fa (plain)
1
2
3
4
5
6
7
8
9
10
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 ? "" : ",",