Przeglądaj źródła

Change heuristics of dpkg-buildpackage's gpg check to allow for
more complex setups (Julian Gilbey). Closes: #163061

Frank Lichtenheld 20 lat temu
rodzic
commit
8b5dce5005
3 zmienionych plików z 7 dodań i 1 usunięć
  1. 4 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 1 1
      scripts/dpkg-buildpackage.sh

+ 4 - 0
ChangeLog

@@ -4,6 +4,10 @@
 	file even if signing .dsc file fails to make it
 	file even if signing .dsc file fails to make it
 	easier to just sign the package later.
 	easier to just sign the package later.
 
 
+	* scripts/dpkg-buildpackage.sh: Change heuristics
+	of gpg check so that it allows for more complex
+	setups.
+
 2006-01-29  Anand Kumria  <wildfire@progsoc.org>
 2006-01-29  Anand Kumria  <wildfire@progsoc.org>
 
 
 	* scripts/dpkg-source.pl (checkdiff): Ignore comments
 	* scripts/dpkg-source.pl (checkdiff): Ignore comments

+ 2 - 0
debian/changelog

@@ -9,6 +9,8 @@ dpkg (1.13.14~) UNRELEASED; urgency=low
   * Let dpkg-buildpackage create a .changes file even if signing the
   * Let dpkg-buildpackage create a .changes file even if signing the
     .dsc file failed. This makes it easier to just sign the package
     .dsc file failed. This makes it easier to just sign the package
     later (Julian Gilbey). Closes: #217963
     later (Julian Gilbey). Closes: #217963
+  * Change heuristics of dpkg-buildpackage's gpg check to allow for
+    more complex setups (Julian Gilbey). Closes: #163061
 
 
  -- Guillem Jover <guillem@debian.org>  Sun, 29 Jan 2006 06:02:58 +0200
  -- Guillem Jover <guillem@debian.org>  Sun, 29 Jan 2006 06:02:58 +0200
 
 

+ 1 - 1
scripts/dpkg-buildpackage.sh

@@ -48,7 +48,7 @@ END
 
 
 rootcommand=''
 rootcommand=''
 signcommand=""
 signcommand=""
-if ( [ -e $GNUPGHOME/secring.gpg ] || [ -e $HOME/.gnupg/secring.gpg ] ) && \
+if (( [ -n "$GNUPGHOME" ] && [ -e "$GNUPGHOME" ] ) || [ -e "$HOME/.gnupg" ] ) && \
 		command -v gpg > /dev/null 2>&1; then
 		command -v gpg > /dev/null 2>&1; then
 	signcommand=gpg
 	signcommand=gpg
 elif command -v pgp > /dev/null 2>&1 ; then
 elif command -v pgp > /dev/null 2>&1 ; then