[devscripts] 01/04: Add DEBCOMMIT_SIGN_COMMITS to config file

James McCoy jamessan at debian.org
Tue Mar 11 03:57:53 UTC 2014


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch master
in repository devscripts.

commit 8412aec215acae5dcf2ac3f66fefcd4b160feeb9
Author: James McCoy <jamessan at debian.org>
Date:   Sat Mar 8 08:36:55 2014 -0500

    Add DEBCOMMIT_SIGN_COMMITS to config file
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 conf.default.in |  3 +++
 debian/postinst | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/conf.default.in b/conf.default.in
index 97a5a5d..1db77d1 100644
--- a/conf.default.in
+++ b/conf.default.in
@@ -239,6 +239,9 @@
 # to account when determining the commit message
 # for a release?
 # DEBCOMMIT_RELEASE_USE_CHANGELOG=no
+#
+# Sign commits using gnupg?
+# DEBCOMMIT_SIGN_COMMITS=no
 
 ##### debdiff
 #
diff --git a/debian/postinst b/debian/postinst
index 97dd538..809b651 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -730,6 +730,17 @@ EOF
 
 EOF
 	fi
+
+	if dpkg --compare-versions "$2" lt 2.14.2
+	then
+	    cat >> /etc/devscripts.conf << EOF
+### debcommit option added in 2.14.2
+#
+# Sign commits using gnupg?
+# DEBCOMMIT_SIGN_COMMITS=no
+
+EOF
+	fi
     fi
 fi
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list