Changeset 1176 in ProjectBuilder for devel/pb/lib


Ignore:
Timestamp:
Feb 7, 2011, 2:24:11 PM (13 years ago)
Author:
Bruno Cornec
Message:

r4160@eelzbach2: bruno | 2011-02-06 13:30:39 +0100

  • Adds support for Remote Machines (RM). Not tested yet.
Location:
devel/pb/lib/ProjectBuilder
Files:
2 edited

Legend:

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

    r1174 r1176  
    227227
    228228    # Check whether the file is well formed
    229     (containing already a directory with the project-version name)
     229    # (containing already a directory with the project-version name)
    230230    #
    231231    # If it's not the case, we try to adapt, but distro needing
     
    711711    my $cmsurl = pb_cms_get_uri($scheme,$ENV{$envar});
    712712    my ($scheme2, $account2, $host2, $port2, $path2) = pb_get_uri($cmsurl);
     713    # For svk, scheme doesn't appear in svk info so remove it here in uri coming from conf file
     714    # which needs it to trigger correct behaviour
     715    $uri =~ s/^svk://;
    713716    if ($cmsurl ne $uri) {
    714717        # The local content doesn't correpond to the repository
  • devel/pb/lib/ProjectBuilder/Env.pm

    r1156 r1176  
    9595# where to find Build System infos:
    9696#vmpath default = /home/qemu
    97 #vepath default = /home/rinse
     97#vepath default = /home/rpmbootstrap
     98#rmpath default = /home/remote
    9899
    99100# Overwrite generic setup
     
    168169# Adds a potential conf file now as it's less
    169170# important than the project conf file
    170 my ($vmpath,$vepath) = pb_conf_get_if("vmpath","vepath");
     171my ($vmpath,$vepath,$rmpath) = pb_conf_get_if("vmpath","vepath","rmpath");
    171172pb_conf_add("$vmpath->{$ENV{'PBPROJ'}}/.pbrc") if ((defined $vmpath) && (-f "$vmpath->{$ENV{'PBPROJ'}}/.pbrc"));
    172173pb_conf_add("$vepath->{$ENV{'PBPROJ'}}/.pbrc") if ((defined $vepath) && (-f "$vepath->{$ENV{'PBPROJ'}}/.pbrc"));
     174pb_conf_add("$rmpath->{$ENV{'PBPROJ'}}/.pbrc") if ((defined $rmpath) && (-f "$rmpath->{$ENV{'PBPROJ'}}/.pbrc"));
    173175
    174176#
     
    282284pb_log(2,"PBBUILDDIR: $ENV{'PBBUILDDIR'}\n");
    283285
    284 #
    285 # The following part is only useful when in cms2something or newsomething
    286 # In VMs/VEs we want to skip that by providing good env vars.
     286return if ($action =~ /^clean$/);
     287#
     288# The following part is only useful when in sbx|cms2something or newsomething
     289# In VMs/VEs/RMs we want to skip that by providing good env vars.
    287290# return values in that case are useless
    288291#
    289 return if ($action =~ /^clean$/);
    290292
    291293if (($action =~ /^cms2/) || ($action =~ /^sbx2/) || ($action =~ /^newver$/) || ($action =~ /pbinit/) || ($action =~ /^newproj$/) || ($action =~ /^announce/)) {
Note: See TracChangeset for help on using the changeset viewer.