Skip to content

Commit

Permalink
Merge pull request #212 from xuwei-k/patch-1
Browse files Browse the repository at this point in the history
remove unused imports
  • Loading branch information
eed3si9n authored Oct 5, 2024
2 parents 77afd64 + 846198c commit 322e489
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sbt-pgp/src/main/scala/com/jsuereth/sbtpgp/PgpSigner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class CommandLineGpgSigner(
optPassphrase: Option[Array[Char]]
) extends PgpSigner {
lazy val gpgVersion: String = {
import sbt.sbtpgp.Compat._ // needed for sbt 0.13
val lines = sys.process.Process(command, List("--version")).!!.linesIterator.toList
lines.headOption match {
case Some(head) => head.split(" ").last
Expand Down Expand Up @@ -76,7 +75,6 @@ class CommandLineGpgSigner(
val keyargs: Seq[String] = optKey map (k => Seq("--default-key", k)) getOrElse Seq.empty
val args = passargs ++ ringargs ++ Seq("--detach-sign", "--armor") ++ (if (agent) Seq("--use-agent") else Seq.empty) ++ keyargs
val allArguments: Seq[String] = args ++ Seq("--output", signatureFile.getAbsolutePath, file.getAbsolutePath)
import sbt.sbtpgp.Compat._ // needed for sbt 0.13
sys.process.Process(command, allArguments) ! ProcessLogger(s.log.info(_)) match {
case 0 => ()
case n => sys.error(s"Failure running '${command + " " + allArguments.mkString(" ")}'. Exit code: " + n)
Expand Down Expand Up @@ -120,7 +118,6 @@ class CommandLineGpgPinentrySigner(
val args = passargs ++ ringargs ++ pinentryargs ++ Seq("--detach-sign", "--armor") ++ (if (agent) Seq("--use-agent")
else Seq.empty) ++ keyargs
val allArguments: Seq[String] = args ++ Seq("--output", signatureFile.getAbsolutePath, file.getAbsolutePath)
import sbt.sbtpgp.Compat._ // needed for sbt 0.13
sys.process.Process(command, allArguments) ! s.log match {
case 0 => ()
case n => sys.error(s"Failure running '${command + " " + allArguments.mkString(" ")}'. Exit code: " + n)
Expand Down

0 comments on commit 322e489

Please sign in to comment.