From: Jo-Philipp Wich Date: Thu, 11 Nov 2010 16:18:01 +0000 (+0000) Subject: package-ipkg.mk: add support for "essential" package flag, fix typo X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e09767beea9781dcf5b2eecb475eff99d6a8cc61;p=openwrt%2Fstaging%2Frmilecki.git package-ipkg.mk: add support for "essential" package flag, fix typo SVN-Revision: 23959 --- diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 8ff0d70d1c2..ce979a12733 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -103,6 +103,7 @@ ifeq ($(DUMP),) echo "Source: $(SOURCE)"; \ 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)"; \ echo "Architecture: $(PKGARCH)"; \ @@ -133,7 +134,7 @@ ifeq ($(DUMP),) $$(INFO_$(1)): $$(IPKG_$(1)) @[ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp $(OPKG) install $$(IPKG_$(1)) - $(if $(PKGFLAGS),for flag in $(PKGFLAGS); do $(OPKG) flag $$$$flag $(1); done) + $(if $(filter-out essential,$(PKG_FLAGS)),for flag in $(filter-out essential,$(PKG_FLAGS)); do $(OPKG) flag $$$$flag $(1); done) $(1)-clean: rm -f $(PACKAGE_DIR)/$(1)_*