Changeset 752 for devel/pb/bin/pb


Ignore:
Timestamp:
Mar 30, 2009, 3:54:55 AM (11 years ago)
Author:
Bruno Cornec
Message:

Small fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r751 r752  
    14011401            }
    14021402        }
    1403         if ((($cmt eq "ve") || ($cmt eq "VEScript")) && ($snapme != 0)) {
    1404             pb_system("tar cfj $tp/$odir-$over-$oarch.tar.bz2 $tpdir","Creating a snapshot of $tpdir");
    1405         }
    14061403        pb_system("$shcmd \"sudo /sbin/halt -p \"; sleep $tm ; echo \'if [ -d /proc/$vmpid ]; then kill -9 $vmpid; fi \' | bash ; sleep 10","VM $v halt (pid $vmpid)");
     1404    }
     1405    if ((($cmt eq "ve") || ($cmt eq "VEScript")) && ($snapme != 0)) {
     1406        ($odir,$over,$oarch) = split(/-/,$v);
     1407        my $tpdir = "$vepath->{$ENV{'PBPROJ'}}/$odir/$over/$oarch";
     1408        pb_system("tar cfj $vepath->{$ENV{'PBPROJ'}}/$odir-$over-$oarch.tar.bz2 $tpdir","Creating a snapshot of $tpdir");
    14071409    }
    14081410}
Note: See TracChangeset for help on using the changeset viewer.