Changeset 2262


Ignore:
Timestamp:
Aug 30, 2017, 5:07:43 PM (3 months ago)
Author:
bruno
Message:

Fix again creation of temp pbrc.yml now by using pb_conf_cache/write functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2261 r2262  
    16291629    # Base our content on the existing .yml file
    16301630    copy("$ENV{'PBROOTDIR'}/$ENV{'PBPROJ'}.yml","$ENV{'PBDESTDIR'}/pbrc.yml");
    1631     open(LAST,">> $ENV{'PBDESTDIR'}/pbrc.yml") || die "Unable to append to $ENV{'PBDESTDIR'}/pbrc.yml";
    1632     print LAST "pbroot:\n";
    1633     print LAST " $ENV{'PBPROJ'}: $ENV{'PBROOTDIR'}\n";
    1634     print LAST "projver:\n";
    1635     print LAST "  $ENV{'PBPROJ'}: $ENV{'PBPROJVER'}\n";
    1636     print LAST "projtag:\n";
    1637     print LAST "  $ENV{'PBPROJ'}: $ENV{'PBPROJTAG'}\n";
    1638     print LAST "pbpackager:\n";
    1639     print LAST "  $ENV{'PBPROJ'}: $ENV{'PBPACKAGER'}\n";
    1640     print LAST "pbextdir:\n";
    1641     print LAST "  $ENV{'PBPROJ'}: $pbextdir\n";
    1642     close(LAST);
     1631    my $lh;
     1632    $lh = pb_conf_cache("$ENV{'PBDESTDIR'}/pbrc.yml",$lh);
     1633    $lh->{'pbroot'}->{$ENV{'PBPROJ'}} = $ENV{'PBROOTDIR'};
     1634    $lh->{'projver'}->{$ENV{'PBPROJ'}} = $ENV{'PBPROJVER'};
     1635    $lh->{'projtag'}->{$ENV{'PBPROJ'}} = $ENV{'PBPROJTAG'};
     1636    $lh->{'pbpackager'}->{$ENV{'PBPROJ'}} = $ENV{'PBPACKAGER'};
     1637    $lh->{'pbextdir'}->{$ENV{'PBPROJ'}} = $pbextdir;
     1638    pb_conf_write("$ENV{'PBDESTDIR'}/pbrc.yml",$lh);
    16431639}
    16441640
Note: See TracChangeset for help on using the changeset viewer.