Changeset 1070 in ProjectBuilder


Ignore:
Timestamp:
Jul 12, 2010, 7:59:14 PM (14 years ago)
Author:
Bruno Cornec
Message:

r3946@sge91-1-82-234-15-218: bruno | 2010-07-10 15:11:36 +0200

  • Fix a bug where some options were passed prefixed with a space and some other postfixed in the usage of PBVMOPT (report from Joachim Langenbach)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1067 r1070  
    16351635        if ($usesnap == 1) {
    16361636            if ((defined $vmsnap->{$v}) && ($vmsnap->{$v} =~ /true/i)) {
    1637                 $ENV{'PBVMOPT'} .= "-snapshot ";
     1637                $ENV{'PBVMOPT'} .= " -snapshot";
    16381638            } elsif ((defined $vmsnap->{$ENV{'PBPROJ'}}) && ($vmsnap->{$ENV{'PBPROJ'}} =~ /true/i)) {
    1639                 $ENV{'PBVMOPT'} .= "-snapshot ";
     1639                $ENV{'PBVMOPT'} .= " -snapshot";
    16401640            } elsif ($pbsnap eq 1) {
    1641                 $ENV{'PBVMOPT'} .= "-snapshot ";
     1641                $ENV{'PBVMOPT'} .= " -snapshot";
    16421642            }
    16431643        }
     
    16451645            if (($vmtype eq "kvm") || ($vmtype eq "qemu")) {
    16461646                # Configure the monitoring to automize the creation of the 'pb' snapshot
    1647                 $ENV{'PBVMOPT'} .= "-serial mon:telnet::$vmmonport->{$ENV{'PBPROJ'}},server,nowait ";
     1647                $ENV{'PBVMOPT'} .= " -serial mon:telnet::$vmmonport->{$ENV{'PBPROJ'}},server,nowait";
    16481648                # In that case no snapshot call needed
    1649                 $ENV{'PBVMOPT'} =~ s/-snapshot //;
     1649                $ENV{'PBVMOPT'} =~ s/ -snapshot//;
    16501650            }
    16511651        }
Note: See TracChangeset for help on using the changeset viewer.