Changeset 1596 in ProjectBuilder for devel/pb


Ignore:
Timestamp:
May 25, 2012, 12:52:34 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Improve system cmd display in Distribution.pm for deps analysis
  • umount /proc in the VE when using rpmbootstrap, if it wasn't unmounted due to error, to allow snapshots to work correctly
  • pbtest should now be able to build afio in an rpm VE (The VE is setup correctly again, including fedora 16 having the requiretty constraint))
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/t/pbtest

    r1595 r1596  
    220220filter PBGRP = Applications/Archiving
    221221filter PBLIC = Afio
     222filter PBDEP = gcc
    222223EOF
    223224sudocmd "mv /tmp/rpm.pbf $PBTEST/pb/afio/pbconf/2.5/pbfilter/rpm.pbf"
     
    234235perl -pi -e 's|%doc ChangeLog|%doc HISTORY PORTING README SCRIPTS ANNOUNCE-2.5 perl.artistic.license|' $PBTEST/pb/afio/pbconf/2.5/afio/rpm/afio.spec
    235236perl -pi -e 's|%doc INSTALL COPYING README AUTHORS NEWS|%doc afio.lsm script1 script2 script3 script4\n%{_bindir}/%{name}\n%{_mandir}/man1/%{name}.1*|' $PBTEST/pb/afio/pbconf/2.5/afio/rpm/afio.spec
     237perl -pi -e 's|^#Requires:|Requires:|' $PBTEST/pb/afio/pbconf/2.5/afio/rpm/afio.spec
    236238EOF
    237239chmod 755 /tmp/pbtestcmd
     
    308310    # Cleaning VE to use the snapshot
    309311    dd=`echo $d | cut -d'-' -f1`
    310     sudocmd "rm -rf $PBTEST/tmp/$dd"
     312    vv=`echo $d | cut -d'-' -f2`
     313    aa=`echo $d | cut -d'-' -f3`
     314    if [ -f $PBTEST/ve/$dd/$vv/$aa/proc/cpuinfo ]; then
     315        sudocmd "umount $PBTEST/ve/$dd/$vv/$aa/proc"
     316    fi
     317    sudocmd "rm -rf $PBTEST/ve/$dd/$vv/$aa"
    311318    sudopbtest "pb -S -m $d sbx2ve"
    312319done
Note: See TracChangeset for help on using the changeset viewer.