forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use keyring to implement rpmkeys --list
This changes the output of keys --list to show the full fingerprint. It also requires the use of the fingerprint or full key ID for querying specific keys. Still needs updating the rpmkeys man page. Not quite resolves: rpm-software-management#3332
- Loading branch information
Showing
2 changed files
with
74 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,23 +110,32 @@ RPMTEST_CHECK([ | |
runroot rpmkeys --list | ||
], | ||
[0], | ||
[1964c5fc-58e63918: rpm.org RSA testkey <[email protected]> public key | ||
[771b18d3d7baa28734333c424344591e1964c5fc rpm.org RSA testkey <[email protected]> public key | ||
], | ||
[]) | ||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --list 1964c5fc | ||
runroot rpmkeys --list 771b18d3d7baa28734333c424344591e1964c5fc | ||
], | ||
[0], | ||
[1964c5fc-58e63918: rpm.org RSA testkey <[email protected]> public key | ||
[771b18d3d7baa28734333c424344591e1964c5fc rpm.org RSA testkey <[email protected]> public key | ||
], | ||
[]) | ||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --list 4344591e1964c5fc | ||
], | ||
[0], | ||
[771b18d3d7baa28734333c424344591e1964c5fc rpm.org RSA testkey <[email protected]> public key | ||
], | ||
[]) | ||
|
||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --list XXX | ||
], | ||
[1], | ||
[package gpg-pubkey-XXX is not installed | ||
[Key XXX not found | ||
], | ||
[]) | ||
|
||
|
@@ -135,7 +144,7 @@ runroot rpmkeys --delete 1964c5fc | |
runroot rpmkeys --list | ||
], | ||
[1], | ||
[package gpg-pubkey is not installed | ||
[No keys installed | ||
], | ||
[]) | ||
RPMTEST_CLEANUP | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters