X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ae70769b8261332c186376f7891b0d5c89a3680d..3e032c51feb1678d9fe2ff1c5570135f3da40da4:/include/package.mk diff --git a/include/package.mk b/include/package.mk index 12e4190ef..84575169b 100644 --- a/include/package.mk +++ b/include/package.mk @@ -213,6 +213,7 @@ define BuildPackage $(eval $(call BuildIPKGVariable,$(1),prerm)) $(eval $(call BuildIPKGVariable,$(1),postrm)) $$(IDIR_$(1))/CONTROL/control: $(PKG_BUILD_DIR)/.version-$(1)_$(VERSION)_$(PKGARCH) + @rm -f $(PACKAGE_DIR)/$(1)_* mkdir -p $$(IDIR_$(1))/CONTROL echo "Package: $(1)" > $$(IDIR_$(1))/CONTROL/control echo "Version: $(VERSION)" >> $$(IDIR_$(1))/CONTROL/control