Changeset 733 in MondoRescue


Ignore:
Timestamp:
Aug 1, 2006, 12:47:33 PM (18 years ago)
Author:
Bruno Cornec
Message:

Fix syntax issue + better handling of rpmlint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/build2pkg

    r732 r733  
    6969        log=$TMP/$p-rpm.log
    7070
    71         if [ "$dfam" = "mandriva" || "$dfam" = "suse" ]; then
     71        if [ "$dfam" = "mandriva" ] || [ "$dfam" = "suse" ]; then
    7272            echo "Generating bzip2 files ($dfam)"
    7373            gzip -cd $src | bzip2 -c3 > SOURCES/$pv.tar.bz2
     
    8787        else
    8888            egrep '^Wrote:' $log
    89             rpmlint `egrep '^Wrote:' $log | cut -d: -f2`
     89            if [ -f /usr/bin/rpmlint ]; then
     90                /usr/bin/rpmlint `egrep '^Wrote:' $log | cut -d: -f2`
     91            else
     92                echo "No rpmlint found, please install it"
     93            fi
    9094        fi
    9195        rm -rf ${TOPBUILDDIR}/BUILD/*
Note: See TracChangeset for help on using the changeset viewer.