mt76: ensure that the metapackage gets built as .ipk
[openwrt/staging/dedeckeh.git] / package / system / opkg / patches / 090-suppress-blank-provides-field.patch
1 --- a/libopkg/pkg.c
2 +++ b/libopkg/pkg.c
3 @@ -731,7 +731,7 @@ pkg_formatted_field(FILE *fp, pkg_t *pkg
4 } else if (strcasecmp(field, "Priority") == 0) {
5 fprintf(fp, "Priority: %s\n", pkg->priority);
6 } else if (strcasecmp(field, "Provides") == 0) {
7 - if (pkg->provides_count) {
8 + if (pkg->provides_count > 1) {
9 fprintf(fp, "Provides:");
10 for(i = 1; i < pkg->provides_count; i++) {
11 fprintf(fp, "%s %s", i == 1 ? "" : ",",