Package: debhelper Version: 9.20131227 Severity: wishlist Tags: patch Please check for emacs-package-install before using it, patch attached.
I previously had emacs installed on my system but after experiencing catastrophic failure and restoring my data from a backup I have [1] from the backup but I don't have emacs-package-install installed because I don't backup /usr and had to start a new install from scratch. 1. /var/lib/emacsen-common/state/package/installed/emacsen-common -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages debhelper depends on: ii binutils 2.24-2 ii dpkg 1.17.6 ii dpkg-dev 1.17.6 ii file 1:5.14-2 ii man-db 2.6.5-3 ii perl 5.18.2-2 ii po-debconf 1.0.16+nmu2 Versions of packages debhelper suggests: ii dh-make 0.63 -- bye, pabs http://wiki.debian.org/PaulWise
From 165d9f497de9054cc09bc170b2faf23c22df1041 Mon Sep 17 00:00:00 2001 From: Paul Wise <p...@debian.org> Date: Tue, 28 Jan 2014 08:51:10 +0800 Subject: [PATCH] Check for emacs-package-install before using it --- 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..23eaa74 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-install ] ; then /usr/lib/emacsen-common/emacs-package-remove --prerm #PACKAGE# fi -- 1.8.5.2
signature.asc
Description: This is a digitally signed message part