Changeset 1132 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Dec 23, 2010, 2:01:37 AM (14 years ago)
- Location:
- devel/pb-modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf
r1131 r1132 445 445 oscmd rpmbootstrap = rpm,rpm2cpio,wget 446 446 #oscmdopt rpmbootstrap = 447 # 448 449 # How do you want to install pb in your VM/VE (pkg or file) 450 pbinstalltype default = pkg 451 # No gentoo repo provided yet 452 pbinstalltype gen = file 453 # Default main package for pkg install of pb 454 ospkg default = project-builder 455 # Where is the associated repo 456 osrepo rpm = ftp://ftp.project-builder.org/$ddir/$dver/pb.repo 447 457 448 458 # Number of process in // for pb 449 459 #pbparallel pb = 2 450 460 # 451 452 # Default insgtallation type is with packages for pb453 pbinstalltype default = pkg454 461 455 462 # -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r1111 r1132 23 23 24 24 our @ISA = qw(Exporter); 25 our @EXPORT = qw(pb_distro_conffile pb_distro_init pb_distro_get pb_distro_getlsb pb_distro_installdeps pb_distro_getdeps pb_distro_only_deps_needed pb_distro_setuprepo pb_distro_ get_param);25 our @EXPORT = qw(pb_distro_conffile pb_distro_init pb_distro_get pb_distro_getlsb pb_distro_installdeps pb_distro_getdeps pb_distro_only_deps_needed pb_distro_setuprepo pb_distro_setuposrepo pb_distro_get_param); 26 26 27 27 =pod … … 406 406 } 407 407 408 =item B<pb_distro_setup repo>409 410 This function sets up potential additional repository to the build environment411 412 =cut 413 414 sub pb_distro_setup repo {408 =item B<pb_distro_setuposrepo> 409 410 This function sets up potential additional repository for the setup phase 411 412 =cut 413 414 sub pb_distro_setuposrepo { 415 415 416 416 my $ddir = shift || undef; … … 418 418 my $darch = shift; 419 419 my $dtype = shift || undef; 420 421 my ($addrepo) = pb_conf_read("$ENV{'PBDESTDIR'}/pbrc","addrepo"); 420 my $dfam = shift || undef; 421 my $dos = shift || undef; 422 423 pb_distro_setuprepo_gen($ddir,$dver,$darch,$dtype,$dfam,$dos,pb_distro_conffile(),"osrepo"); 424 } 425 426 =item B<pb_distro_setuprepo> 427 428 This function sets up potential additional repository to the build environment 429 430 =cut 431 432 sub pb_distro_setuprepo { 433 434 my $ddir = shift || undef; 435 my $dver = shift; 436 my $darch = shift; 437 my $dtype = shift || undef; 438 my $dfam = shift || undef; 439 my $dos = shift || undef; 440 441 pb_distro_setuprepo_gen($ddir,$dver,$darch,$dtype,$dfam,$dos,"$ENV{'PBDESTDIR'}/pbrc","addrepo"); 442 } 443 444 =item B<pb_distro_setuprepo_gen> 445 446 This function sets up in a generic way potential additional repository 447 448 =cut 449 450 sub pb_distro_setuprepo_gen { 451 452 my $ddir = shift || undef; 453 my $dver = shift; 454 my $darch = shift; 455 my $dtype = shift || undef; 456 my $dfam = shift || undef; 457 my $dos = shift || undef; 458 my $pbconf = shift || undef; 459 my $pbkey = shift || undef; 460 461 return if (not defined $pbconf); 462 return if (not defined $pbkey); 463 my ($addrepo) = pb_conf_read($pbconf,$pbkey); 422 464 return if (not defined $addrepo); 423 465 424 my $param = pb_distro_get_param($ddir,$dver,$darch,$addrepo );466 my $param = pb_distro_get_param($ddir,$dver,$darch,$addrepo,$dfam,$dtype,$dos); 425 467 return if ($param eq ""); 426 468 … … 487 529 my $dos = shift || "unknown"; 488 530 531 pb_log(2,"DEBUG: pb_distro_get_param on $ddir-$dver-$darch for ".Dumper($opt)."\n"); 489 532 if (defined $opt->{"$ddir-$dver-$darch"}) { 490 533 $param = $opt->{"$ddir-$dver-$darch"};
Note:
See TracChangeset
for help on using the changeset viewer.