public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [PATCH] cygport/lib/src_prep.cygpart: use gpgv2 not gpg2 --verify
@ 2024-04-30 22:55 Brian Inglis
  2024-05-01  5:50 ` ASSI
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Inglis @ 2024-04-30 22:55 UTC (permalink / raw)
  To: cygwin-apps; +Cc: Brian Inglis

From: "Brian Inglis" <Brian.Inglis@SystematicSW.ab.ca>

Utility gpgv2 is the gpg2 release of gpgv, a lighter, script friendly,
single operation gpg verification helper designed for use in scripts
instead of gpg2 --verify: see 'info gpg2 helper gpgv'

__gpg_verify(): use gpgv2 not gpg2 --verify

Signed-off-by: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
---
 lib/src_prep.cygpart |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/lib/src_prep.cygpart	2024-01-15 05:09:23.000000000 -0700
+++ b/lib/src_prep.cygpart	2024-04-30 01:49:54.294030400 -0600
@@ -181,7 +181,7 @@ __gpg_verify() {
 	local _filetype=${2};
 	local _sigext=${3:-sig};
 
-	if ! check_prog gpg2
+	if ! check_prog gpgv2
 	then
 		# display notice only once
 		if ! defined _gpg_not_found_
@@ -196,7 +196,7 @@ __gpg_verify() {
 	if [ -f ${_file}.${_sigext} ]
 	then
 		inform "${_filetype} signature follows:";
-		gpg2 --verify ${_file}.${_sigext} ${_file} || true;
+		gpgv2 ${_file}.${_sigext} ${_file} || true;
 	fi
 }
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-01 16:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-30 22:55 [PATCH] cygport/lib/src_prep.cygpart: use gpgv2 not gpg2 --verify Brian Inglis
2024-05-01  5:50 ` ASSI
2024-05-01 16:12   ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).