]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- *really* cache rpm_dump stuff
authorMichal Moskal <michal@moskal.me>
Mon, 30 Jun 2003 21:03:00 +0000 (21:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- use --nodigest --nosignature (wiget's suggestion)

Changed files:
    builder.sh -> 1.186

builder.sh

index f720ae7e6322e74c8d3f01db334bd77efe441ce5..143aadcd3624eb15f0d909080c57c87be694f655 100644 (file)
@@ -189,17 +189,21 @@ Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build]
 "
 }
 
-rpm_dump () {
-    if [ "$rpm_dump_cache" = "" ] ; then
-        rpm_dump_cache=`
+cache_rpm_dump () {
+   rpm_dump_cache=`
        case "$RPMBUILD" in
        rpm )
                rpm -bp --nodeps --define 'prep %dump' $BCOND $SPECFILE 2>&1 
                ;;
        rpmbuild )
-               rpmbuild --define 'prep %dump' $BCOND $SPECFILE 2>&1 
+               rpmbuild --nodigest --nosignature --define 'prep %dump' $BCOND $SPECFILE 2>&1 
                ;;
        esac`
+}
+
+rpm_dump () {
+    if [ -z "$rpm_dump_cache" ] ; then
+        echo "internal error: cache_rpm_dump not called!" 1>&2
     fi
     echo "$rpm_dump_cache"
 }
@@ -212,6 +216,9 @@ parse_spec()
     fi
 
     cd $SPECS_DIR
+
+    cache_rpm_dump
+
     if [ "$NOSRCS" != "yes" ]; then
        SOURCES="`rpm_dump | awk '/SOURCEURL[0-9]+/ {print $3}'`"
     fi
This page took 0.034186 seconds and 4 git commands to generate.