Skip to content

Commit

Permalink
Fix issue 191 gpg legacy (#197)
Browse files Browse the repository at this point in the history
* Use gpglegacy=true when gpg is 2.0 but not 2.1
  • Loading branch information
winitzki authored Oct 21, 2022
1 parent 10994b7 commit 28b86bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbt-pgp/src/main/scala/com/jsuereth/sbtpgp/PgpSigner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CommandLineGpgSigner(
(m.toLong, splitDot(ns).headOption.getOrElse(0L))
case _ => (0L, 0L)
}
def isLegacyGpg: Boolean = gpgVersionNumber._1 < 2L
def isLegacyGpg: Boolean = (gpgVersionNumber._1 < 2L) || (gpgVersionNumber._1 == 2L && gpgVersionNumber._2 == 0L)
def sign(file: File, signatureFile: File, s: TaskStreams): File = PgpSigner.lock.synchronized {
if (signatureFile.exists) IO.delete(signatureFile)
val passargs: Seq[String] = (optPassphrase map { passArray =>
Expand Down

0 comments on commit 28b86bb

Please sign in to comment.