[Pkg-fglrx-devel] r321 - fglrx-driver/trunk/debian

Patrick Matthäi pmatthaei at alioth.debian.org
Mon Nov 2 22:30:13 UTC 2009


Author: pmatthaei
Date: 2009-11-02 22:30:13 +0000 (Mon, 02 Nov 2009)
New Revision: 321

Modified:
   fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst
   fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm
Log:
Fix version detection in maintainer scripts.


Modified: fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst
===================================================================
--- fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst	2009-11-02 22:25:45 UTC (rev 320)
+++ fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst	2009-11-02 22:30:13 UTC (rev 321)
@@ -4,8 +4,8 @@
 
 package=fglrx-modules-dkms
 
-version=`dpkg-query -W -f='${Version}' "$package" \
-	| sed -e 's/[+-].*//' -e 's/\.dfsg.*//' -e 's/~//g'`
+version=`dpkg-query -W -f='${Version}' "fglrx-source" \
+	|rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n"`
 
 dkms add -m fglrx -v "$version"
 

Modified: fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm
===================================================================
--- fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm	2009-11-02 22:25:45 UTC (rev 320)
+++ fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm	2009-11-02 22:30:13 UTC (rev 321)
@@ -4,8 +4,8 @@
 
 package=fglrx-modules-dkms
 
-version=`dpkg-query -W -f='${Version}' "$package" \
-	| sed -e 's/[+-].*//' -e 's/\.dfsg.*//' -e 's/~//g'`
+version=`dpkg-query -W -f='${Version}' "fglrx-source" \
+	|rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n"`
 
 dkms remove -m fglrx -v "$version" --all || true
 




More information about the Pkg-fglrx-devel mailing list