Changeset 1646 in ProjectBuilder


Ignore:
Timestamp:
Sep 27, 2012, 2:26:37 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Really use snapshot for launchve when needed. fix some parts of the condition which were wrong.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/VE.pm

    r1597 r1646  
    6868my $v = shift || undef;
    6969my $pbforce = shift || 0;       # By default do not rebuild VE
    70 my $pbsnap = shift || 0;        # By default do not snap VE
     70my $locsnap = shift || 0;       # By default do not snap VE
    7171
    7272# Get distro context
     
    253253    if ((-f "$root/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}.tar.gz") &&
    254254    (((defined $vesnap->{$v}) && ($vesnap->{$v} =~ /true/i)) ||
    255         ((defined $vesnap->{$ENV{'PBPROJ'}}) && ($vesnap->{$ENV{'PBPROJ'}} =~ /true/i)) ||
    256         ($pbsnap eq 1) ||
    257         (! -d "$root/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}"))) {
     255        ((defined $vesnap->{$ENV{'PBPROJ'}}) && ($vesnap->{$ENV{'PBPROJ'}} =~ /true/i))) &&
     256        ($locsnap eq 1) &&
     257        (! -d "$root/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}")) {
    258258            my $cmd1 = pb_check_req("rm",0);
    259259            my $cmd2 = pb_check_req("mkdir",0);
Note: See TracChangeset for help on using the changeset viewer.