r7627 - packages/trunk/game-package/lib

Jon Dowland jmtd-guest at alioth.debian.org
Mon Jun 30 20:19:31 UTC 2008


Author: jmtd-guest
Date: 2008-06-30 20:19:31 +0000 (Mon, 30 Jun 2008)
New Revision: 7627

Modified:
   packages/trunk/game-package/lib/game-package-shared
Log:
handle getting version from running locally

Modified: packages/trunk/game-package/lib/game-package-shared
===================================================================
--- packages/trunk/game-package/lib/game-package-shared	2008-06-30 15:10:21 UTC (rev 7626)
+++ packages/trunk/game-package/lib/game-package-shared	2008-06-30 20:19:31 UTC (rev 7627)
@@ -137,5 +137,12 @@
 
 # XXX: this won't work if the package is not installed (I.e. if we're
 # running it from the build dir)
-GAME_PACKAGE_VERSION=`dpkg-query --showformat='${Version}\n' \
-	--show game-package`
+if [ -f ./debian/changelog ]; then
+
+    GAME_PACKAGE_VERSION=`dpkg-parsechangelog -ldebian/changelog --format \
+        rfc822 | grep Version | cut -d' ' -f2`
+
+else
+    GAME_PACKAGE_VERSION=`dpkg-query --showformat='${Version}\n' \
+        --show game-package`
+fi




More information about the Pkg-games-commits mailing list