From 655d213c0cf4de45777ea93fa0519f96984d1547 Mon Sep 17 00:00:00 2001 From: dougb Date: Sat, 13 Apr 2002 06:22:10 +0000 Subject: 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. --- x11/xscreensaver/files/patch-ab | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'x11/xscreensaver') diff --git a/x11/xscreensaver/files/patch-ab b/x11/xscreensaver/files/patch-ab index e0f89867aa25..6ce706317db5 100644 --- a/x11/xscreensaver/files/patch-ab +++ b/x11/xscreensaver/files/patch-ab @@ -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 -- cgit