Changeset 963 in ProjectBuilder
- Timestamp:
- Feb 8, 2010, 3:47:36 AM (15 years ago)
- Location:
- devel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf
r962 r963 224 224 osremovedotinver redhat = true 225 225 226 # These deps are needed before setupvm can be run.226 # These deps are needed before setupvm|ve can be run. 227 227 # Install them with your distribution in VM or automatically in VE 228 228 osmindep default = perl,sudo,wget,tar,make,gzip -
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r932 r963 93 93 # Add the new one at the end 94 94 my $num = keys %pbconffiles; 95 pb_log(2,"DEBUG: pb_conf_add $cf at position $num\n"); 95 96 $pbconffiles{$cf} = $num; 96 97 } … … 169 170 =item B<pb_conf_get_if> 170 171 171 This function returns a table, corresponding to a set of values quer ried in the conf files or undef if it doen't exist. It takes a table of keys as an input parameter.172 This function returns a table, corresponding to a set of values queried in the conf files or undef if it doen't exist. It takes a table of keys as an input parameter. 172 173 173 174 The format of the configurations file is as follows: … … 206 207 # the most important conf file is first, so read them in reverse order 207 208 foreach my $f (reverse sort { $pbconffiles{$a} <=> $pbconffiles{$b} } keys %pbconffiles) { 209 pb_log(2,"DEBUG: pb_conf_get_if in file $f\n"); 208 210 $ptr = pb_conf_get_fromfile_if("$f",$ptr,@param); 209 211 } … … 241 243 my $p2; 242 244 243 pb_log(2,"DEBUG: pb_conf_get $conffile: ".Dumper(@ptr1)."\n");244 pb_log(2,"DEBUG: pb_conf_get input: ".Dumper(@ptr2)."\n");245 pb_log(2,"DEBUG: pb_conf_get param: ".Dumper(@param)."\n");245 pb_log(2,"DEBUG: pb_conf_get_from_file $conffile: ".Dumper(@ptr1)."\n"); 246 pb_log(2,"DEBUG: pb_conf_get_from_file input: ".Dumper(@ptr2)."\n"); 247 pb_log(2,"DEBUG: pb_conf_get_from_file param: ".Dumper(@param)."\n"); 246 248 247 249 foreach my $i (0..$#param) { -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r962 r963 439 439 $param = $opt->{"default"}; 440 440 } else { 441 $param = " unknown";441 $param = ""; 442 442 } 443 443 return($param); -
devel/pb/bin/pb
r940 r963 1721 1721 # VE here 1722 1722 } else { 1723 # Get VE context1724 my ($ptr,$vetmout,$vepath,$verebuild,$veconf,$vepostinstall) = pb_conf_get("vetype","vetmout","vepath","verebuild","veconf");1725 my ($veb4pi,$vepi,$vesnap,$oscodename,$vepkglist,$osmindep) = pb_conf_get_if("veb4pi","vepi","vesnap","oscodename","vepkglist","osmindep");1726 my $vetype = $ptr->{$ENV{'PBPROJ'}};1727 1728 1723 # Get distro context 1729 1724 my ($name,$ver,$darch) = split(/-/,$v); 1730 1725 chomp($darch); 1731 1726 my ($ddir, $dver, $dfam, $dtype, $pbsuf) = pb_distro_init($name,$ver,$darch); 1727 1728 # Get VE context 1729 my ($ptr,$vetmout,$vepath,$verebuild,$veconf) = pb_conf_get("vetype","vetmout","vepath","verebuild","veconf"); 1730 my $vetype = $ptr->{$ENV{'PBPROJ'}}; 1731 1732 # We can probably only get those params now we have the distro context 1733 my ($veb4pi,$vepi,$vesnap,$oscodename,$vepkglist,$osmindep) = pb_conf_get_if("veb4pi","vepi","vesnap","oscodename","vepkglist","osmindep"); 1732 1734 1733 1735 if (($vetype eq "chroot") || ($vetype eq "schroot")) { … … 1767 1769 $postparam .= ","; 1768 1770 $postparam .= pb_distro_get_param($ddir,$dver,$darch,$vepkglist); 1769 if ($postparam eq " ") {1771 if ($postparam eq ",") { 1770 1772 $addpkgs = ""; 1771 1773 } else { … … 1796 1798 $postparam .= ","; 1797 1799 $postparam .= pb_distro_get_param($ddir,$dver,$darch,$vepkglist); 1798 if ($postparam eq " ") {1800 if ($postparam eq ",") { 1799 1801 $addpkgs = ""; 1800 1802 } else {
Note:
See TracChangeset
for help on using the changeset viewer.