]> git.lizzy.rs Git - rust.git/commitdiff
Fix gpg signing in manifest builder
authorMark Rousskov <mark.simulacrum@gmail.com>
Wed, 12 Dec 2018 02:10:45 +0000 (19:10 -0700)
committerMark Rousskov <mark.simulacrum@gmail.com>
Wed, 12 Dec 2018 02:10:45 +0000 (19:10 -0700)
GPG versions 2.x+ require that --batch be passed if --passphrase-fd is
to be accepted.

src/tools/build-manifest/src/main.rs

index 896b380f85c95def492d555010a88b01c4c71e60..695ca743089138a236a7e4736fbd1b056057f569 100644 (file)
@@ -623,6 +623,7 @@ fn sign(&self, path: &Path) {
         let mut cmd = Command::new("gpg");
         cmd.arg("--no-tty")
             .arg("--yes")
+            .arg("--batch")
             .arg("--passphrase-fd").arg("0")
             .arg("--personal-digest-preferences").arg("SHA512")
             .arg("--armor")