rpm-software-management / yum

[DEPRECATED] YUM package manager
GNU General Public License v2.0
127 stars 87 forks source link

Note for developers: Renew GPG keys for successful build #123

Open gnought opened 4 years ago

gnought commented 4 years ago

The GPG key in https://github.com/rpm-software-management/yum/blob/master/test/gpg/key.pub expires, and the build will fail in make check stage.

# gpg key.pub
pub  2048R/D5865417 2017-07-26 Joe Doe <joe@doe.com>
sub  2048R/2DB632D4 2017-07-26 [expires: 2019-07-26]

As we known, the YUM is deprecated. Here is the fix:

  1. Go to test/gpg directory
  2. Generate a new set of GPG key to replace the key.pub, make sure it is in ascii
  3. Detach sign repomd.xml and generate a new signature repomd.xml.asc, make sure it is in ascii
  4. Replace the generated fingerprint and keyid in https://github.com/rpm-software-management/yum/blob/f8616a2d6e22705371fe6ba47597238d3d1dc2f1/test/pubringtests.py#L15-L16