Changeset 2324 in ProjectBuilder
- Timestamp:
- Sep 24, 2017, 12:09:33 AM (7 years ago)
- Location:
- devel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.yml
r2298 r2324 279 279 sol: sudo /usr/sbin/pkgadd -d 280 280 lsb: /bin/true 281 282 # On Debian based distro, we can not use apt-get to install local packages just built, so use dpkg 283 oslocalins: 284 du: sudo /usr/bin/dpkg -i 285 # rpm: sudo /usr/bin/rpm -Uvh 281 286 282 287 # From the most generic to the most specialized, in term of granularity, -
devel/pb-modules/etc/pb.yml.pod
r2292 r2324 303 303 Nature: Mandatory 304 304 Key: tool (pb or rpmbootstrap) 305 Value: com eseparated list of commands that are mandatory on the underlying system305 Value: coma separated list of commands that are mandatory on the underlying system 306 306 Conffile: pb 307 307 Example: oscmd pb = tar,ls … … 338 338 Conffile: pb 339 339 Example: osins fedora = sudo yum -y install 340 341 =item B<oslocalins> 342 343 Nature: Optional 344 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). The family name is generaly used here. 345 Value: OS command to lauch in order to automatically install local packages on it. 346 Conffile: pb 347 Example: oslocalins debian = sudo dpkg -i 340 348 341 349 =item B<osmindep> -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r2289 r2324 165 165 $pbos->{'family'} = pb_distro_get_param($pbos,pb_conf_get("osfamily")); 166 166 $pbos->{'type'} = pb_distro_get_param($pbos,pb_conf_get("ostype")); 167 ($pbos->{'os'},$pbos->{'install'},$pbos->{'suffix'},$pbos->{'nover'},$pbos->{'rmdot'},$pbos->{'update'} ) = pb_distro_get_param($pbos,pb_conf_get("os","osins","ossuffix","osnover","osremovedotinver","osupd"));167 ($pbos->{'os'},$pbos->{'install'},$pbos->{'suffix'},$pbos->{'nover'},$pbos->{'rmdot'},$pbos->{'update'},$pbos->{'localinstall'}) = pb_distro_get_param($pbos,pb_conf_get("os","osins","ossuffix","osnover","osremovedotinver","osupd","oslocalins")); 168 168 #($pbos->{'family'},$pbos->{'type'},$pbos->{'os'},$pbos->{'install'},$pbos->{'suffix'},$pbos->{'nover'},$pbos->{'rmdot'},$pbos->{'update'}) = pb_distro_get_param($pbos,pb_conf_get("osfamily","ostype","os","osins","ossuffix","osnover","osremovedotinver","osupd")); 169 169 … … 354 354 my $forcerepo = shift; 355 355 my $deps = shift; # optional list of deps to install 356 my $local = shift; # optional should we install local packages or remote (for deb command is different) 356 357 357 358 # Protection … … 369 370 # This may not be // proof. We should test for availability of repo and sleep if not 370 371 my $cmd = "$pbos->{'install'} $deps"; 372 $cmd = "$pbos->{'localinstall'} $deps" if (defined $local); 371 373 my $ret = pb_system($cmd, "Installing dependencies ($cmd)","mayfail"); 372 374 # Try to accomodate deficient proxies -
devel/pb/bin/pb
r2322 r2324 2116 2116 print KEEP "$made\n"; 2117 2117 close(KEEP); 2118 pb_distro_installdeps(undef,$pbos,undef,$ret ) if ($do_install);2118 pb_distro_installdeps(undef,$pbos,undef,$ret,"local") if ($do_install); 2119 2119 } 2120 2120
Note:
See TracChangeset
for help on using the changeset viewer.