Changeset 749 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Mar 30, 2009, 2:31:42 AM (16 years ago)
- Location:
- devel/pb-modules/lib/ProjectBuilder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r681 r749 37 37 38 38 our @ISA = qw(Exporter); 39 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 $pbdebug $pbLOG $pbdisplaytype $pblocale);39 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 $pbdebug $pbLOG $pbdisplaytype $pblocale); 40 40 41 41 =pod … … 371 371 } 372 372 373 =item B<pb_get_arch> 374 375 This function returns the architecture of our local environment and 376 standardize on i386 for those platforms. It also solves issues where a i386 VE on x86_64 returns x86_64 wrongly 377 378 =cut 379 380 sub pb_get_arch { 381 382 my $arch = `uname -m`; 383 chomp($arch); 384 $arch =~ s/i.86/i386/; 385 386 return($arch); 387 } 388 373 389 =back 374 390 -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r735 r749 119 119 120 120 # By defaut propose yum 121 my $arch= `uname -m`;121 my $arch=pb_get_arch(); 122 122 my $opt = ""; 123 chomp($arch);124 123 if ($arch eq "x86_64") { 125 124 $opt="--exclude=*.i?86"; … … 570 569 571 570 } 571 572 572 573 =back 573 574
Note:
See TracChangeset
for help on using the changeset viewer.