]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- build rpm before conversion for urpmdiff
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 28 Sep 2005 23:39:00 +0000 (23:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pearize.sh -> 1.7

pearize.sh

index 2a0ea5610a1aa8fe662647a0f14b9d229873b6d3..fff0201f75316a412fd3e8e85f497787ca51d49f 100644 (file)
@@ -22,7 +22,10 @@ sed -i -e '/^%if !1/,/%endif/d' $template
 # 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 '
This page took 0.0309 seconds and 4 git commands to generate.