From 7741a5ad37a208843fca3ae163328ae33a895f12 Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 2 Jun 2006 00:01:00 +0000 Subject: [PATCH] fix version info for packages that either lack PKG_VERSION or PKG_RELEASE git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3890 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/rules.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package/rules.mk b/package/rules.mk index fe16a18f9..79c2b3460 100644 --- a/package/rules.mk +++ b/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:= -- 2.20.1