Changeset 900 in MondoRescue for trunk/tools/build2pkg


Ignore:
Timestamp:
Oct 24, 2006, 8:49:18 AM (18 years ago)
Author:
Bruno Cornec
Message:

Huge patch to introduce low level functions that will bw used everywhere (mr_free, mr_asprintf, ...)
Nearly linking now due to that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/build2pkg

    r839 r900  
    6363            ar=$ARCH
    6464        fi
    65         pkg1="${TOPBUILDDIR}/RPMS/${ar}/$pv-${TAG}${suf}.${ar}.rpm"
    66         #rm -f $pkg1
    6765
    68         pkg="$pkg $pkg1"
    69 
    70         log=$TMP/$p-rpm.log
     66        log=$MONDOTMP/$p-rpm.log
    7167
    7268        if [ "$dfam" = "mandriva" ] || [ "$dfam" = "suse" ]; then
     
    8783            status=-1
    8884        else
     85            export pkg1="`egrep '^Wrote:' $log | grep -v debug | cut -d: -f2`"
    8986            if [ -f /usr/bin/rpmlint ]; then
    90                 /usr/bin/rpmlint `egrep '^Wrote:' $log | cut -d: -f2`
     87                /usr/bin/rpmlint $pkg1
    9188            else
    9289                echo "No rpmlint found, please install it"
    9390            fi
     91            export pkg="$pkg `ls $pkg1 | grep -v src.rpm`"
    9492        fi
    9593        rm -rf ${TOPBUILDDIR}/BUILD/*
     
    116114        fi
    117115    elif [  _"$dtype" = _"deb" ]; then
    118         export TMPDIR=/tmp
    119116        cd $TOPBUILDDIR
    120117        tar xfz $src
     
    130127echo "Packages handled : $pkg"
    131128
    132 rm -rf $TMP
     129rm -rf $MONDOTMP
    133130
    134131if [ $status = 0 ]; then
Note: See TracChangeset for help on using the changeset viewer.