From: Felix Fietkau Date: Fri, 2 Jun 2006 00:01:00 +0000 (+0000) Subject: fix version info for packages that either lack PKG_VERSION or PKG_RELEASE X-Git-Tag: reboot~30718^2~625 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=450d0b77e63341cc394708866b1de0181b216c96;p=openwrt%2Fstaging%2Fblogic.git fix version info for packages that either lack PKG_VERSION or PKG_RELEASE SVN-Revision: 3890 --- diff --git a/openwrt/package/rules.mk b/openwrt/package/rules.mk index fe16a18f9870..79c2b3460d82 100644 --- a/openwrt/package/rules.mk +++ b/openwrt/package/rules.mk @@ -55,7 +55,15 @@ define Package/Default DEPENDS:= MAINTAINER:=OpenWrt Developers Team SOURCE:=$(patsubst $(TOPDIR)/%,%,${shell pwd}) - VERSION:=$(PKG_VERSION)-$(PKG_RELEASE) + ifneq ($(PKG_VERSION),) + ifneq ($(PKG_RELEASE),) + VERSION:=$(PKG_VERSION)-$(PKG_RELEASE) + else + VERSION:=$(PKG_VERSION) + endif + else + VERSION:=$(PKG_RELEASE) + endif PKGARCH:=$(ARCH) PRIORITY:=optional DEFAULT:=