Changeset 982 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Feb 19, 2010, 5:30:20 AM (15 years ago)
- Location:
- devel/pb-modules/lib/ProjectBuilder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r974 r982 400 400 401 401 my $cmds = shift || ""; 402 my $opt s = shift || "";402 my $options = shift || ""; 403 403 404 404 # cmds is a string of coma separated commands 405 foreach my $file (split(/,/,$cmds) {405 foreach my $file (split(/,/,$cmds)) { 406 406 pb_check_req($file,0); 407 407 } 408 408 409 409 # opts is a string of coma separated commands 410 foreach my $file (split(/,/,$opt s) {410 foreach my $file (split(/,/,$options)) { 411 411 pb_check_req($file,1); 412 412 } -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r974 r982 444 444 } 445 445 446 # Allow replacement of variables inside the parameter such as ddir, dver, darch for rpmbootstrap 447 eval { $param =~ s/(\$\w+)/$1/eeg }; 448 449 pb_log(2,"DEBUG: pb_distro_get_param on ",Dumper($opt)," returns $param\n"); 446 # Allow replacement of variables inside the parameter such as ddir, dver, darch for rpmbootstrap 447 # but not shell variable which ae backslashed 448 if ($param =~ /[^\\]\$/) { 449 pb_log(3,"Expanding variable on $param\n"); 450 eval { $param =~ s/(\$\w+)/$1/eeg }; 451 } 452 453 pb_log(2,"DEBUG: pb_distro_get_param on $ddir-$dver-$darch returns ==$param==\n"); 450 454 return($param); 451 455
Note:
See TracChangeset
for help on using the changeset viewer.