[debhelper-devel] [debhelper] 01/02: Check for emacs-package-install before using it

Niels Thykier nthykier at moszumanska.debian.org
Tue Apr 28 18:53:53 UTC 2015


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

nthykier pushed a commit to branch master
in repository debhelper.

commit cd092d15efa5ee17c3534d2da8b06650cf691f09
Author: Paul Wise <pabs at debian.org>
Date:   Tue Jan 28 08:51:10 2014 +0800

    Check for emacs-package-install before using it
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 autoscripts/postinst-emacsen | 2 +-
 autoscripts/preinst-emacsen  | 2 +-
 autoscripts/prerm-emacsen    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/autoscripts/postinst-emacsen b/autoscripts/postinst-emacsen
index 6a46d79..82ce957 100644
--- a/autoscripts/postinst-emacsen
+++ b/autoscripts/postinst-emacsen
@@ -1,4 +1,4 @@
-if [ "$1" = "configure" ] && [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common ]
+if [ "$1" = "configure" ] && [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common -a -x /usr/lib/emacsen-common/emacs-package-install ]
 then
 	/usr/lib/emacsen-common/emacs-package-install --postinst #PACKAGE#
 fi
diff --git a/autoscripts/preinst-emacsen b/autoscripts/preinst-emacsen
index 780fc69..c4285d9 100644
--- a/autoscripts/preinst-emacsen
+++ b/autoscripts/preinst-emacsen
@@ -1,5 +1,5 @@
 if ( [ "$1" = "install" ] || [ "$1" = "upgrade" ] ) \
-	&& [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common ]
+	&& [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common -a -x /usr/lib/emacsen-common/emacs-package-install ]
 then
 	/usr/lib/emacsen-common/emacs-package-install --preinst #PACKAGE#
 fi
diff --git a/autoscripts/prerm-emacsen b/autoscripts/prerm-emacsen
index 31ecfaa..4c7c2b0 100644
--- a/autoscripts/prerm-emacsen
+++ b/autoscripts/prerm-emacsen
@@ -1,3 +1,3 @@
-if [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common ] ; then
+if [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common -a -x /usr/lib/emacsen-common/emacs-package-remove ] ; then
 	/usr/lib/emacsen-common/emacs-package-remove --prerm #PACKAGE#
 fi

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




More information about the debhelper-devel mailing list