Skip to content

Concerted about README instruction of gpg key #789

@sarim

Description

@sarim

This continues from PR #788

The instruction for Fedora produces the follow repo file

[shiftkey]
name=GitHub Desktop
baseurl=https://mirror.mwt.me/ghd/rpm
enabled=1
gpgcheck=0
repo_gpgcheck=1
gpgkey=https://mirror.mwt.me/ghd/gpgkey

gpgcheck=0 is troublesome, it should be gpgcheck=1. But then dnf complains that packages are not signed.
Also gpgkey= file refers to the url of gpgkey, making dnf import key from this url. This kinda makes previous rpm --import command confusing (and redundant?). If it's really needed to be mentioned twice, Maybe save the url to a variable, ex:

SHIFTKEY_GPG_KEY=https://mirror.mwt.me/ghd/gpgkey

rpm --import $SHIFTKEY_GPG_KEY

echo -e "[shiftkey]\nname=GitHub Desktop\nbaseurl=https://mirror.mwt.me/ghd/rpm\nenabled=1\ngpgcheck=0\nrep
o_gpgcheck=1\ngpgkey=$SHIFTKEY_GPG_KEY"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions