[Lsb-messages] /var/www/bzr/lsb/devel/task-pkgs r208: fix up version stuff again (bug 3599)

Mats Wichmann mats at linuxfoundation.org
Sat Apr 19 13:41:15 UTC 2014


------------------------------------------------------------
revno: 208
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: task-pkgs
timestamp: Sat 2014-04-19 07:41:15 -0600
message:
  fix up version stuff again (bug 3599)
modified:
  package/build-rpm
-------------- next part --------------
=== modified file 'package/build-rpm'
--- a/package/build-rpm	2013-06-04 18:50:11 +0000
+++ b/package/build-rpm	2014-04-19 13:41:15 +0000
@@ -20,10 +20,12 @@
 SPEC_FILENAME=$PKG_NAME.spec
 
 PKG_VERSION=$(egrep "$PKG_NAME ($LSB_VERSION|independent)" versionlists | cut -d' ' -f1)
-PKG_RELEASE=$(egrep "$PKG_NAME ($LSB_VERSION|independent)" versionlists | cut -d' ' -f2)
+PKG_BUILD=$(egrep "$PKG_NAME ($LSB_VERSION|independent)" versionlists | cut -d' ' -f2)
 
 if [ "$OFFICIAL" != "y" ]; then
-    PKG_RELEASE=0.$(date +"%Y%m%d")
+    PKG_RELEASE=0.$(date +"%Y%m%d").{$PKG_BUILD}
+else
+    PKG_RELEASE=${PKG_BUILD}
 fi
 
 RPM_FILENAME=$PKG_NAME-$PKG_VERSION-$PKG_RELEASE.noarch.rpm



More information about the lsb-messages mailing list