X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/0e8e5d26a0ac5e766b6610e1f305a9877ee89a36..75f4300764bfdded7d2bff4dfbcf896bc12f9dea:/include/package-ipkg.mk?ds=sidebyside diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 512e40186..ce979a127 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -80,7 +80,7 @@ ifeq ($(DUMP),) mkdir -p $(STAGING_DIR_ROOT)/stamp $(STAGING_DIR_ROOT)/tmp-$(1) $(call Package/$(1)/install,$(STAGING_DIR_ROOT)/tmp-$(1)) $(call Package/$(1)/install_lib,$(STAGING_DIR_ROOT)/tmp-$(1)) - $(CP) $(STAGING_DIR_ROOT)/tmp-$(1)/. $(STAGING_DIR_ROOT)/ + $(call locked,$(CP) $(STAGING_DIR_ROOT)/tmp-$(1)/. $(STAGING_DIR_ROOT)/,root-copy) rm -rf $(STAGING_DIR_ROOT)/tmp-$(1) touch $$@ @@ -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)_*