Changeset 2284 in ProjectBuilder for devel/pb/lib/ProjectBuilder/CMS.pm
- Timestamp:
- Sep 4, 2017, 1:21:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/ProjectBuilder/CMS.pm
r2169 r2284 54 54 =item B<pb_cms_init> 55 55 56 This function setup the environment for the CMS system related to the URL given by the pb url configuration parameter.56 This function setup the environment for the CMS system related to the URL given by the pbprojurl configuration parameter. 57 57 The potential parameter indicates whether we should inititate the context or not. 58 58 It sets up environement variables (PBPROJDIR, PBDIR, PBREVISION, PBCMSLOGFILE) … … 65 65 my $param = shift; 66 66 67 my ($pb url) = pb_conf_get("pburl");68 pb_log(2,"DEBUG: Project URL of $ENV{'PBPROJ'}: $pb url->{$ENV{'PBPROJ'}}\n");69 my ($scheme, $account, $host, $port, $path) = pb_get_uri($pb url->{$ENV{'PBPROJ'}});67 my ($pbprojurl) = pb_conf_get("pbprojurl"); 68 pb_log(2,"DEBUG: Project URL of $ENV{'PBPROJ'}: $pbprojurl->{$ENV{'PBPROJ'}}\n"); 69 my ($scheme, $account, $host, $port, $path) = pb_get_uri($pbprojurl->{$ENV{'PBPROJ'}}); 70 70 my $vcscmd = pb_vcs_cmd($scheme); 71 71 … … 94 94 # Check project cms compliance 95 95 # 96 my $turl = "$pb url->{$ENV{'PBPROJ'}}/$tmp";97 $turl = $pb url->{$ENV{'PBPROJ'}} if ($scheme =~ /^(flat)|(ftp)|(http)|(https)|(file)|(git)\b/o);96 my $turl = "$pbprojurl->{$ENV{'PBPROJ'}}/$tmp"; 97 $turl = $pbprojurl->{$ENV{'PBPROJ'}} if ($scheme =~ /^(flat)|(ftp)|(http)|(https)|(file)|(git)\b/o); 98 98 # git svn is like svn 99 $turl = "$pb url->{$ENV{'PBPROJ'}}/$tmp" if ($scheme =~ /^git\+svn/o);99 $turl = "$pbprojurl->{$ENV{'PBPROJ'}}/$tmp" if ($scheme =~ /^git\+svn/o); 100 100 pb_vcs_compliant(undef,'PBDIR',"$ENV{'PBPROJDIR'}/$tmp",$turl,$pbinit); 101 101 … … 126 126 # svnversion more precise than svn info if sbx 127 127 if ((defined $param) && ($param eq "CMS")) { 128 $tmp = `(LANGUAGE=C $vcscmd info $pb url->{$ENV{'PBPROJ'}} | grep -E '^Revision:' | cut -d: -f2)`;128 $tmp = `(LANGUAGE=C $vcscmd info $pbprojurl->{$ENV{'PBPROJ'}} | grep -E '^Revision:' | cut -d: -f2)`; 129 129 $tmp =~ s/\s+//; 130 130 } else {
Note:
See TracChangeset
for help on using the changeset viewer.