- Timestamp:
- Jan 28, 2014, 11:13:42 AM (11 years ago)
- Location:
- devel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r1756 r1851 163 163 pb_log(0,"NOT OK but non blocking\n") if ($res != 0); 164 164 pb_log(0,"OK\n") if ($res == 0); 165 pb_display_file("$ENV{'PBTMP'}/system.$$.log",undef,$verbose) if ((-f "$ENV{'PBTMP'}/system.$$.log") and ( defined $verbose) and ($verbose =~ /verbose/));165 pb_display_file("$ENV{'PBTMP'}/system.$$.log",undef,$verbose) if ((-f "$ENV{'PBTMP'}/system.$$.log") and ($verbose =~ /verbose/)); 166 166 return($res) 167 167 } … … 301 301 302 302 my $file=shift; 303 my $desc=shift || \*STDOUT;303 my $desc=shift; 304 304 my $prefix=shift; 305 305 … … 309 309 if ((defined $prefix) and ($prefix =~ "_")) { 310 310 $prefix =~ s/verbose_//; 311 $cnt =~ s/\n /\n$prefix/g;311 $cnt =~ s/\n[^\z]/\n$prefix/g; 312 312 } else { 313 313 $prefix = ""; 314 314 } 315 print "$prefix$cnt \n";316 print $desc "$prefix$cnt \n" if (defined $desc);315 print "$prefix$cnt"; 316 print $desc "$prefix$cnt" if (defined $desc); 317 317 } 318 318 … … 322 322 323 323 =cut 324 325 324 sub pb_get_content { 326 325 327 326 my $file=shift; 328 327 329 my $bkp = $/;330 undef $/;331 328 open(R,$file) || die "Unable to open $file: $!"; 329 local $/; 332 330 my $content=<R>; 333 331 close(R); 334 chomp($content);335 $/ = $bkp;336 332 return($content); 337 333 } -
devel/pb/bin/pb
r1850 r1851 1509 1509 pb_mkdir_p($tmpd) if (defined $pbparallel); 1510 1510 1511 # Do it here as this doesn't work in // mode as it dies if it fails1511 # Do it here as this doesn't work in // mode as it dies if it fails 1512 1512 if ($pbos->{'type'} eq "rpm") { 1513 1513 foreach my $d ('RPMS','SRPMS','SPECS','SOURCES','BUILD') {
Note:
See TracChangeset
for help on using the changeset viewer.