SPECS: pearize.sh - build rpm before conversion for urpmdiff
glen
glen at pld-linux.org
Thu Sep 29 01:39:05 CEST 2005
Author: glen Date: Wed Sep 28 23:39:05 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- build rpm before conversion for urpmdiff
---- Files affected:
SPECS:
pearize.sh (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/pearize.sh
diff -u SPECS/pearize.sh:1.6 SPECS/pearize.sh:1.7
--- SPECS/pearize.sh:1.6 Thu Sep 29 01:36:47 2005
+++ SPECS/pearize.sh Thu Sep 29 01:39:00 2005
@@ -22,7 +22,10 @@
# http://info.ccone.at/INFO/Mail-Archives/procmail/Jul-2004/msg00132.html
sed -i -e '/./,$ !d;/^$/N;/\n$/D' $template
-#rpmbuild -bb $spec
+rpm=$(rpm -q --qf '../RPMS/%{name}-%{version}.noarch.rpm' --specfile "$spec")
+if [ ! -f $rpm ]; then
+ rpmbuild -bb $spec
+fi
# prepare original spec
sed -i -e '
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/pearize.sh?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list