*** empty log message ***
authorewt <devnull@localhost>
Sat, 27 Mar 1999 17:41:23 +0000 (17:41 +0000)
committerewt <devnull@localhost>
Sat, 27 Mar 1999 17:41:23 +0000 (17:41 +0000)
CVS patchset: 2917
CVS date: 1999/03/27 17:41:23

scripts/freshen.sh

index 1e9c07a..6b6cdf5 100755 (executable)
@@ -36,8 +36,10 @@ for n in $*; do
     if [ ! -f $n ]; then
        args="$args $n"
     else
-       name=`rpm --qf "%{NAME}" -qp $n`
-       $RPM -q $name >/dev/null 2>&1 && args="$args $n"
+       if ! rpm -q `rpm -qp $n` >/dev/null 2>&1; then
+           name=`rpm --qf "%{NAME}" -qp $n`
+           $RPM -q $name >/dev/null 2>&1 && args="$args $n"
+       fi
     fi
 done