diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-02-16 01:00:01 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-02-16 01:00:01 +0000 |
commit | cd5ee7a7f4380fe0c7cccca08f047b5fc8dc45b9 (patch) | |
tree | 9f42b4d009c80758844737fbf643dce7f313f656 /include | |
parent | 0753eb7920a2d6dc5a038b0df0dcd6d07aeec56e (diff) |
when building a package, make sure that older versions get removed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6303 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-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 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 |