fix version info for packages that either lack PKG_VERSION or PKG_RELEASE

SVN-Revision: 3890
master
Felix Fietkau 19 years ago
parent 6860977c4c
commit 450d0b77e6
  1. 10
      openwrt/package/rules.mk

@ -55,7 +55,15 @@ define Package/Default
DEPENDS:= DEPENDS:=
MAINTAINER:=OpenWrt Developers Team <openwrt-devel@openwrt.org> MAINTAINER:=OpenWrt Developers Team <openwrt-devel@openwrt.org>
SOURCE:=$(patsubst $(TOPDIR)/%,%,${shell pwd}) 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) PKGARCH:=$(ARCH)
PRIORITY:=optional PRIORITY:=optional
DEFAULT:= DEFAULT:=

Loading…
Cancel
Save