If nonexistent files appear in the keyring list, grep will return an error
even if a later keyring contains a match; this will cause the mock tool to
incorrectly report not finding a key. This bug was hidden by the main
gatekeeper only using one keyring on each gpgv run.
--keyring)
case "$2" in
*/*)
- Keyrings="$Keyrings \"$2\""
+ [ -f "$2" ] && Keyrings="$Keyrings \"$2\""
;;
*)
- Keyrings="$Keyrings \"${GNUPGHOME}/$2\""
+ [ -f "${GNUPGHOME}/$2" ] \
+ && Keyrings="$Keyrings \"${GNUPGHOME}/$2\""
;;
esac
shift 2