Changeset 1661 in ProjectBuilder
- Timestamp:
- Oct 21, 2012, 2:38:01 PM (11 years ago)
- Location:
- devel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r1660 r1661 40 40 41 41 our @ISA = qw(Exporter); 42 our @EXPORT = qw(pb_mkdir_p pb_system pb_rm_rf pb_get_date pb_log pb_log_init pb_get_uri pb_get_content pb_set_content pb_display_file pb_syntax_init pb_syntax pb_temp_init pb_get_arch pb_get_osrelease pb_check_requirements pb_check_req pb_path_expand $pbdebug $pbLOG $pbdisplaytype $pblocale);42 our @EXPORT = qw(pb_mkdir_p pb_system pb_rm_rf pb_get_date pb_log pb_log_init pb_get_uri pb_get_content pb_set_content pb_display_file pb_syntax_init pb_syntax pb_temp_init pb_get_arch pb_get_osrelease pb_check_requirements pb_check_req pb_path_expand pb_exit $pbdebug $pbLOG $pbdisplaytype $pblocale); 43 43 ($VERSION,$REVISION) = pb_version_init(); 44 44 … … 390 390 }; 391 391 if ($@) { 392 # No Pod::Usage found not printing usage. Ole perl only 392 # No Pod::Usage found not printing usage. Old perl only 393 pb_exit(); 393 394 } else { 394 395 pod2usage( -message => $pbsynmsg, … … 433 434 pb_mkdir_p("$ENV{'TMPDIR'}/$template"); 434 435 } else { 435 $cleanup = 0 if ($pbdebug >=1);436 $cleanup = 0 if ($pbdebug gt 1); 436 437 $ENV{'PBTMP'} = tempdir( "pb.XXXXXXXXXX", DIR => $ENV{'TMPDIR'}, CLEANUP => $cleanup ); 437 438 } … … 558 559 } 559 560 561 562 =item B<pb_exit> 563 564 Fundtion to call before exiting pb so cleanup is done 565 566 =cut 567 568 sub pb_exit { 569 570 my $ret = shift || 0; 571 pb_log(0,"Please remove manually $ENV{'PBTMP'} after debug analysis\n" if ($pbdebug gt 1); 572 exit($ret); 573 } 574 560 575 =back 561 576 -
devel/pb/bin/pb
r1658 r1661 929 929 } 930 930 931 pb_exit(); 932 931 933 sub pb_cms2build { 932 934 -
devel/pbmkbm/bin/pbmkbm
r1434 r1661 383 383 pb_log(1,"End: $pbdate\n"); 384 384 385 pb_exit(); 386 385 387 sub pb_mkbm_create_content { 386 388 -
devel/rpmbootstrap/bin/rpmbootstrap
r1652 r1661 435 435 # Stop here if we just print 436 436 if ($opts{'p'}) { 437 exit(0);437 pb_exit(0); 438 438 } 439 439 … … 629 629 } 630 630 631 pb_exit(); 632 631 633 # Function for File::Find 632 634 sub unlink_old_conf {
Note:
See TracChangeset
for help on using the changeset viewer.