Changeset 2300


Ignore:
Timestamp:
Sep 6, 2017, 2:57:47 AM (3 months ago)
Author:
bruno
Message:

Automate convversion of pburl into pbprojurl in update_v0 and add an error if pbconfurl not found

Location:
devel
Files:
2 edited

Legend:

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

    r2279 r2300  
    575575            if (not defined $lh1->{$param}) {
    576576                pb_log(2,"Converting parameter $param\n");
    577                 print DEST "$param:\n";
     577                my $param2 = $param;
     578                # param pburl in v0 is now pbprojurl in v1
     579                $param2 =~ s/pburl/pbprojurl/;
     580                print DEST "$param2:\n";
    578581                foreach my $k (keys %{$lh0->{$param}}) {
    579582                    pb_log(2,"Handling key $k\n");
  • devel/pb/lib/ProjectBuilder/CMS.pm

    r2287 r2300  
    6666
    6767my ($pbprojurl) = pb_conf_get("pbprojurl");
     68confess "Undefined pbprojurl for $ENV{'PBPROJ'}\n" if ((not defined $pbprojurl) or (not defined $pbprojurl->{$ENV{'PBPROJ'}}));
    6869pb_log(2,"DEBUG: Project URL of $ENV{'PBPROJ'}: $pbprojurl->{$ENV{'PBPROJ'}}\n");
    6970my ($scheme, $account, $host, $port, $path) = pb_get_uri($pbprojurl->{$ENV{'PBPROJ'}});
Note: See TracChangeset for help on using the changeset viewer.