Changeset 2284 in ProjectBuilder for devel/pb/lib/ProjectBuilder/CMS.pm


Ignore:
Timestamp:
Sep 4, 2017, 1:21:15 PM (7 years ago)
Author:
Bruno Cornec
Message:

Now uses pbprojurl instead of pburl to be consistent with pbconfurl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/CMS.pm

    r2169 r2284  
    5454=item B<pb_cms_init>
    5555
    56 This function setup the environment for the CMS system related to the URL given by the pburl configuration parameter.
     56This function setup the environment for the CMS system related to the URL given by the pbprojurl configuration parameter.
    5757The potential parameter indicates whether we should inititate the context or not.
    5858It sets up environement variables (PBPROJDIR, PBDIR, PBREVISION, PBCMSLOGFILE)
     
    6565my $param = shift;
    6666
    67 my ($pburl) = pb_conf_get("pburl");
    68 pb_log(2,"DEBUG: Project URL of $ENV{'PBPROJ'}: $pburl->{$ENV{'PBPROJ'}}\n");
    69 my ($scheme, $account, $host, $port, $path) = pb_get_uri($pburl->{$ENV{'PBPROJ'}});
     67my ($pbprojurl) = pb_conf_get("pbprojurl");
     68pb_log(2,"DEBUG: Project URL of $ENV{'PBPROJ'}: $pbprojurl->{$ENV{'PBPROJ'}}\n");
     69my ($scheme, $account, $host, $port, $path) = pb_get_uri($pbprojurl->{$ENV{'PBPROJ'}});
    7070my $vcscmd = pb_vcs_cmd($scheme);
    7171
     
    9494# Check project cms compliance
    9595#
    96 my $turl = "$pburl->{$ENV{'PBPROJ'}}/$tmp";
    97 $turl = $pburl->{$ENV{'PBPROJ'}} if ($scheme =~ /^(flat)|(ftp)|(http)|(https)|(file)|(git)\b/o);
     96my $turl = "$pbprojurl->{$ENV{'PBPROJ'}}/$tmp";
     97$turl = $pbprojurl->{$ENV{'PBPROJ'}} if ($scheme =~ /^(flat)|(ftp)|(http)|(https)|(file)|(git)\b/o);
    9898# git svn is like svn
    99 $turl = "$pburl->{$ENV{'PBPROJ'}}/$tmp"  if ($scheme =~ /^git\+svn/o);
     99$turl = "$pbprojurl->{$ENV{'PBPROJ'}}/$tmp"  if ($scheme =~ /^git\+svn/o);
    100100pb_vcs_compliant(undef,'PBDIR',"$ENV{'PBPROJDIR'}/$tmp",$turl,$pbinit);
    101101
     
    126126    # svnversion more precise than svn info if sbx
    127127    if ((defined $param) && ($param eq "CMS")) {
    128         $tmp = `(LANGUAGE=C $vcscmd info $pburl->{$ENV{'PBPROJ'}} | grep -E '^Revision:' | cut -d: -f2)`;
     128        $tmp = `(LANGUAGE=C $vcscmd info $pbprojurl->{$ENV{'PBPROJ'}} | grep -E '^Revision:' | cut -d: -f2)`;
    129129        $tmp =~ s/\s+//;
    130130    } else {
Note: See TracChangeset for help on using the changeset viewer.