Changeset 2459


Ignore:
Timestamp:
Nov 13, 2019, 1:21:59 AM (9 months ago)
Author:
Bruno Cornec
Message:

sign repomd.xml for all rpm type of packages, doesn't hurt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2458 r2459  
    29422942    }
    29432943
    2944     if (($cmt =~ /Packages/) &&
    2945         ((($pbos2->{'name'} eq "sles") && ($pbos2->{'version'} ge 15)) ||
    2946         (($pbos2->{'name'} eq "opensuse") && ($pbos2->{'version'} ge 15)))) {
    2947             pb_system("cd $ENV{'PBBUILDDIR'} ; $cpcmd $cptarget/repodata/repomd.xml . 2> /dev/null","Getting repomd.xml file from $cptarget/repodata");
    2948             pb_sign_file("$ENV{'PBBUILDDIR'}/repomd.xml");
    2949             pb_system("$cpcmd $ENV{'PBBUILDDIR'}/repomd.xml.gpg $cptarget/repodata/repomd.xml.asc 2> /dev/null","Putting back repomd.xml.asc file to $cptarget/repodata");
    2950             my ($void,$rpdir) = split(/:/,$cptarget);
    2951             pb_system("$shcmdbase \"chmod 644 $rpdir/repodata/repomd.xml.asc\"","Set mode to 644 for $rpdir/repodata/repomd.xml.asc");
     2944    if (($cmt =~ /Packages/) && ($pbos2->{'type'} eq "rpm")) {
     2945        pb_system("cd $ENV{'PBBUILDDIR'} ; $cpcmd $cptarget/repodata/repomd.xml . 2> /dev/null","Getting repomd.xml file from $cptarget/repodata");
     2946        pb_sign_file("$ENV{'PBBUILDDIR'}/repomd.xml");
     2947        pb_system("$cpcmd $ENV{'PBBUILDDIR'}/repomd.xml.gpg $cptarget/repodata/repomd.xml.asc 2> /dev/null","Putting back repomd.xml.asc file to $cptarget/repodata");
     2948        my ($void,$rpdir) = split(/:/,$cptarget);
     2949        pb_system("$shcmdbase \"chmod 644 $rpdir/repodata/repomd.xml.asc\"","Set mode to 644 for $rpdir/repodata/repomd.xml.asc");
    29522950    }
    29532951
Note: See TracChangeset for help on using the changeset viewer.