Do not add PATCH_VERSION to PORTAGE_VERSION if patch is not applied, time to upgarde...
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Thu, 8 Jan 2009 22:11:33 +0000 (22:11 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Thu, 8 Jan 2009 22:11:33 +0000 (22:11 -0000)
package/portage/portage.mk

index 1b86707de22860e98a9032e0e24a8eee434e1ce7..ec1452e6014a7555538046db9554846199ba6bf9 100644 (file)
@@ -5,8 +5,11 @@
 #############################################################
 PORTAGE_BASE_VERSION:=2.1.4
 PORTAGE_DOWNLOAD_VERSION:=$(PORTAGE_BASE_VERSION)
-PORTAGE_PATCH_VERSION:=.4
 PORTAGE_PATCH_APPLY:=n
+PORTAGE_PATCH_VERSION:=.4
+ifeq ($(PORTAGE_PATCH_APPLY),n)
+PORTAGE_PATCH_VERSION:=
+endif
 PORTAGE_VERSION:=$(PORTAGE_BASE_VERSION)$(PORTAGE_PATCH_VERSION)
 PORTAGE_PATCH:=portage-$(PORTAGE_VERSION).patch.bz2