Changeset 1556 in ProjectBuilder
- Timestamp:
- May 21, 2012, 3:46:31 AM (12 years ago)
- Location:
- devel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf.pod
r1545 r1556 477 477 Nature: Optional 478 478 Key: project (as defined in the -p option or PBPROJ environment variable) 479 Value: Whether the repository file should be generated specifying that gpg checking of the packages is on. Note that failures to sign packages is tolerated by default, which means that signatures can fail making the repository file generated not work. The default is to require gpg checks .479 Value: Whether the repository file should be generated specifying that gpg checking of the packages is on. Note that failures to sign packages is tolerated by default, which means that signatures can fail making the repository file generated not work. The default is to require gpg checks (value is 1) 480 480 Conffile: project 481 481 Example: pbgpgcheck Lintel = 0 -
devel/pb-modules/lib/ProjectBuilder/Env.pm
r1555 r1556 440 440 #pbwf $ENV{'PBPROJ'} = 1 441 441 442 # Do we check GPG keys 443 #pbgpgcheck $ENV{'PBPROJ'} = 1 444 442 445 # 443 446 # Packager label -
devel/pb/bin/pb
r1555 r1556 2025 2025 if ($pbos->{'type'} eq "rpm") { 2026 2026 my $pbsha = pb_distro_get_param($pbos,pb_conf_get("ossha")); 2027 my $gpgcheck = pb_conf_get_if("pbgpgcheck"); 2028 my $pbgpgcheck; 2029 $pbgpgcheck = $gpgcheck->{$ENV{PBPROJ}} if (defined $gpgcheck); 2030 # By default force GPG check in repo even if we support signature of packages to fail. This is a best practice 2031 $pbgpgcheck = 1 if (not defined $pbgpgcheck); 2027 2032 # Also make a pbscript to generate yum/urpmi bases 2028 2033 print PBS << "EOF"; … … 2037 2042 baseurl=$pbrepo->{$ENV{'PBPROJ'}}/$repodir 2038 2043 enabled=1 2039 gpgcheck= 12044 gpgcheck=$pbgpgcheck 2040 2045 gpgkey=$pbrepo->{$ENV{'PBPROJ'}}/$repodir/$ENV{'PBPROJ'}.pubkey 2041 2046 EOT
Note:
See TracChangeset
for help on using the changeset viewer.