diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-02-16 01:00:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-02-16 01:00:01 +0000 |
commit | 064e496875ae5c9a73a01186ba0be8b1b177f41d (patch) | |
tree | f61a6e3982a0334039e0a21498919c325663e0b3 /include/package.mk | |
parent | c13d383c2be23f646e0de054eb8ea7d4bce115f6 (diff) | |
download | mtk-20170518-064e496875ae5c9a73a01186ba0be8b1b177f41d.zip mtk-20170518-064e496875ae5c9a73a01186ba0be8b1b177f41d.tar.gz mtk-20170518-064e496875ae5c9a73a01186ba0be8b1b177f41d.tar.bz2 |
when building a package, make sure that older versions get removed
SVN-Revision: 6303
Diffstat (limited to 'include/package.mk')
-rw-r--r-- | include/package.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/package.mk b/include/package.mk index 12e4190..8457516 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 |