Author: hobbes1069
Update of /cvs/free/rpms/akmods/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv22220
Modified Files:
akmods
Log Message:
* Tue Nov 15 2011 Richard Shaw <hobbes1069(a)gmail.com> - 0.3.7-2
- Fix rpmdev-vercmp handling.
Index: akmods
===================================================================
RCS file: /cvs/free/rpms/akmods/devel/akmods,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- akmods 29 Sep 2011 23:17:43 -0000 1.5
+++ akmods 19 Nov 2011 18:23:15 -0000 1.6
@@ -321,14 +321,15 @@
local akmodver=$(rpm -qp --qf '%{EPOCH}:%{VERSION}-%{RELEASE}\n'
/usr/src/akmods/"${this_kmodname}"-kmod.latest | sed 's|(none)|0|;
s!\.\(fc\|lvn\)[0-9]*!!g')
rpmdev-vercmp "${kmodver}" "${akmodver}" &>/dev/null
- if [ "$?" == 0 ]; then
+ local retvalue=$?
+ if [ "$retvalue" == 0 ]; then
# Versions are the same. Nothing to do.
return 0
- elif [ "$?" == 11 ]; then
+ elif [ "$retvalue" == 11 ]; then
# kmod is newer, this nomally shouldn't happen.
akmods_echo 1 2 -n "Warning: installed kmod is newer then the akmod"
return 0
- elif [ "$?" == 12 ]; then
+ elif [ "$retvalue" == 12 ]; then
# akmod is newer, need to build kmod.
return 1
else
@@ -370,6 +371,7 @@
akmods_echo 1 2 "directories are missing:"
akmods_echo 1 2 "/usr/src/kernels/${this_kernelver}/"
akmods_echo 1 2 -n "/lib/modules/${this_kernelver}/build/"
+ akmods_echo 1 2 "Is the correct kernel-devel package installed?"
akmods_echo 1 2 --failure
return 1
fi
Show replies by date