Changeset 2485 in ProjectBuilder
- Timestamp:
- Mar 22, 2020, 6:52:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r2468 r2485 1618 1618 1619 1619 # Get list of packages to test 1620 # Get content saved in cms2build 1621 my $ptr = pb_get_pkg(); 1622 @pkgs = @$ptr; 1623 1620 my $pkg = pb_cms_get_pkg($defpkgdir); 1621 my @pkgs = @$pkg; 1622 my @ipkgs; 1623 foreach my $pbpkg (@pkgs) { 1624 push(@ipkgs,pb_cms_get_real_pkg($pbpkg,$pbos->{'type'})); 1625 } 1624 1626 # Additional potential repo 1625 1627 pb_distro_setuprepo($pbos,"install"); 1626 foreach my $pbpkg (@pkgs) { 1627 # We need to install the package to test, and deps brought with it 1628 pb_distro_installpkgs($pbos,$pbpkg,"local"); 1629 } 1628 # We need to install the package to test, and deps brought with it 1629 pb_distro_installpkgs($pbos,join(' ',@ipkgs)); 1630 1630 } 1631 1631 … … 3867 3867 # We should not need in this script more functions than what is provided 3868 3868 # by Base, Conf and Distribution to avoid problems at exec time. 3869 # # We also need some YAML interpreter 3869 3870 # They are appended at the end. 3870 3871 … … 4236 4237 4237 4238 # Adds pb_distro_get_context and all functions needed from ProjectBuilder::Distribution, Conf and Base 4238 foreach my $m ("ProjectBuilder/Base.pm","ProjectBuilder/Distribution.pm","ProjectBuilder/Conf.pm") { 4239 # Also adds the minimal independant YAML code from Tiny::YAML in case no other is around 4240 foreach my $m ("ProjectBuilder/Base.pm","ProjectBuilder/Distribution.pm","ProjectBuilder/Conf.pm","ProjectBuilder/YAML.pm") { 4239 4241 foreach my $d (@INC) { 4240 4242 my $f = "$d/$m"; … … 4245 4247 next if (/^use Exporter/); 4246 4248 next if (/^use ProjectBuilder::/); 4247 next if (/^our /); 4249 # Remove lines with our except for the strerr var in YAML 4250 next if ((/^our /) && ($_ !~ /errstr/)); 4248 4251 print SCRIPT $_; 4249 4252 }
Note:
See TracChangeset
for help on using the changeset viewer.