Release: Occurs in 1.4.1 and 1.4.2.1
Environment
Mac OS X 10.4.5
Ubuntu Linux 5.10
Description
When there are no secret keys in the key database, "gpg --list-secret-keys" gives this output on the first run:
schofdesk:~ schof$ gpg --list-secret-keys
gpg: checking the trustdb
gpg: no ultimately trusted keys found
schofdesk:~ schof$
On all subsequent runs, GPG gives zero output to the same command:
schofdesk:~ schof$ gpg --list-secret-keys
schofdesk:~ schof$ gpg --list-secret-keys
schofdesk:~ schof$ gpg --list-secret-keys
I would expect GPG to give identical output on all runs, since the input (the command) is unchanged and the key database is unchanged. It should give the "no ultimately trusted keys found" error on all runs of "gpg --list-secret-keys."
This bug is a problem if you are attempting to write a script (as I am) to parse the output of GPG.
How To Repeat
- Delete all secret keys using "gpg --delete-secret-and-public-keys USERNAME" until there are no secret keys remaining.
- Enter "gpg --list-secret-keys" to receive the message that "no ultimately tursted keys found."
- Enter "gpg --list-secret-keys" again and receive no output. 4 through n) Repeat "gpg --list-secret-keys" and receive no output.
Fix
Unknown