diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-22 19:56:21 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-22 19:56:21 +0000 |
commit | de707ac97e694f87c6df90eb7e1b21e63a59ba0f (patch) | |
tree | 8c2c0599a6b2471278849c24c6313ae448303ade /include/package-ipkg.mk | |
parent | 2b0a5e47dc1294c2dd5bb770799f35ce180bf69e (diff) | |
download | master-31e0f0ae-de707ac97e694f87c6df90eb7e1b21e63a59ba0f.tar.gz master-31e0f0ae-de707ac97e694f87c6df90eb7e1b21e63a59ba0f.tar.bz2 master-31e0f0ae-de707ac97e694f87c6df90eb7e1b21e63a59ba0f.zip |
build: reduce the size of package metadata a bit to keep package list files smaller
SVN-Revision: 34871
Diffstat (limited to 'include/package-ipkg.mk')
-rw-r--r-- | include/package-ipkg.mk | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 5de51ebb58..b4b83fea5c 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -146,18 +146,17 @@ ifeq ($(DUMP),) for depend in $$(filter-out @%,$$(IDEPEND_$(1))); do \ DEPENDS=$$$${DEPENDS:+$$$$DEPENDS, }$$$${depend##+}; \ done; \ - echo "Depends: $$$$DEPENDS"; \ - echo "Provides: $(PROVIDES)"; \ + [ -z "$$$$DEPENDS" ] || echo "Depends: $$$$DEPENDS"; \ + $(if $(PROVIDES), echo "Provides: $(PROVIDES)"; ) \ echo "Source: $(SOURCE)"; \ - echo "SourceFile: $(PKG_SOURCE)"; \ - echo "SourceURL: $(PKG_SOURCE_URL)"; \ - echo "License: $(PKG_LICENSE)"; \ - echo "LicenseFiles: $(PKG_LICENSE_FILES)"; \ + $(if $(PKG_SOURCE), echo "SourceFile: $(PKG_SOURCE)"; ) \ + $(if $(PKG_SOURCE_URL), echo "SourceURL: $(PKG_SOURCE_URL)"; ) \ + $(if $(PKG_LICENSE), echo "License: $(PKG_LICENSE)"; ) \ + $(if $(PKG_LICENSE_FILES), echo "LicenseFiles: $(PKG_LICENSE_FILES)"; ) \ echo "Section: $(SECTION)"; \ - echo "Status: unknown $(if $(filter hold,$(PKG_FLAGS)),hold,ok) not-installed"; \ - echo "Essential: $(if $(filter essential,$(PKG_FLAGS)),yes,no)"; \ - echo "Priority: $(PRIORITY)"; \ - echo "Maintainer: $(MAINTAINER)"; \ + $(if $(filter hold,$(PKG_FLAGS)),echo "Status: unknown hold not-installed"; ) \ + $(if $(filter essential,$(PKG_FLAGS)), echo "Essential: yes"; ) \ + $(if $(MAINTAINER),echo "Maintainer: $(MAINTAINER)"; ) \ echo "Architecture: $(PKGARCH)"; \ echo "Installed-Size: 0"; \ echo -n "Description: "; $(SH_FUNC) getvar $(call shvar,Package/$(1)/description) | sed -e 's,^[[:space:]]*, ,g'; \ |