Silence a spurious warning caused by an attempt to check if

an rpm of xscreensaver is already installed on a linux system.
This is a no-op for us, but users have complained about the warning.
This commit is contained in:
Doug Barton 2002-04-13 06:22:10 +00:00
parent 7fc039b375
commit 11ec8fb1bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57649

View File

@ -20,4 +20,18 @@
+#fi
@@ -11658,8 +11658,12 @@
# M4 sucks!!
-rpmv=`(rpm -qv xscreensaver) 2>&- | \
+case `uname` in
+[Ll]inux)
+ rpmv=`(rpm -qv xscreensaver) 2>&- | \
sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
+ ;;
+esac
if test \! -z "$rpmv" ; then