[Pkg-golang-commits] [golang] 01/01: emacsen: skip a number of old emacs versions (Thanks Kevin)

Michael Stapelberg michael at stapelberg.de
Mon Aug 12 07:32:02 UTC 2013


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

stapelberg pushed a commit to branch debian-sid
in repository golang.

commit 05cc04cd5e3b09971b8de97720870cc6772a1af9
Author: Michael Stapelberg <michael at stapelberg.de>
Date:   Mon Aug 12 09:20:09 2013 +0200

    emacsen: skip a number of old emacs versions (Thanks Kevin)
---
 debian/changelog                   |    2 ++
 debian/golang-mode.emacsen-install |   10 ++++++----
 debian/golang-mode.emacsen-remove  |   14 ++++++++++----
 3 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 98cdf6f..31fd0fc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ golang (2:1.1.1-5) UNRELEASED; urgency=low
 
   * Relicense debian/ under the Go license to match upstream. All copyright
     holders agreed to this. (Closes: #716907)
+  * golang-mode: don’t install for a number of emacs versions which are not
+    supported upstream (Thanks Kevin Ryde) (Closes: #702511, #717521)
 
  -- Michael Stapelberg <stapelberg at debian.org>  Fri, 19 Jul 2013 19:56:46 +0200
 
diff --git a/debian/golang-mode.emacsen-install b/debian/golang-mode.emacsen-install
index 5521e51..c028dfd 100644
--- a/debian/golang-mode.emacsen-install
+++ b/debian/golang-mode.emacsen-install
@@ -4,10 +4,12 @@
 FLAVOR=$1
 PACKAGE=golang-mode
 
-# Do nothing if generic flavor.
-if [ ${FLAVOR} = emacs ]; then
-       exit 0;
-fi
+# A number of old emacs versions are not supported by upstream:
+case $FLAVOR in
+    emacs|emacs19|emacs20|emacs21|xemacs21)
+        exit 0
+	;;
+esac
 
 echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
 
diff --git a/debian/golang-mode.emacsen-remove b/debian/golang-mode.emacsen-remove
index a56922e..42231d3 100644
--- a/debian/golang-mode.emacsen-remove
+++ b/debian/golang-mode.emacsen-remove
@@ -2,8 +2,14 @@
 # /usr/lib/emacsen-common/packages/remove/golang-mode
 FLAVOR=$1
 PACKAGE=golang-mode
-if [ ${FLAVOR} != emacs ]; then
-    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
-    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
-fi
+
+# A number of old emacs versions are not supported by upstream:
+case $FLAVOR in
+    emacs|emacs19|emacs20|emacs21|xemacs21)
+        exit 0
+	;;
+esac
+
+echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
 exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-golang/golang.git



More information about the pkg-golang-commits mailing list