tag 700821 +pending tag 703207 +pending thanks Dear maintainer,
I've uploaded an NMU to delayed/2 (since #700821 has been open for a month). Please find attached the patch for the NMU upload. -- Every great idea is worthless without someone to do the work. --Neil Williams
diff -Nurp orig/apt-spacewalk-1.0.6/50spacewalk apt-spacewalk-1.0.6/50spacewalk --- orig/apt-spacewalk-1.0.6/50spacewalk 2012-06-17 12:24:16.000000000 +0200 +++ apt-spacewalk-1.0.6/50spacewalk 2013-03-20 15:23:00.000000000 +0100 @@ -11,5 +11,5 @@ APT { } }; DPkg::Post-Invoke { - "/usr/lib/apt-spacewalk/post_invoke.py"; + "if [ -x /usr/lib/apt-spacewalk/post_invoke.py ]; then /usr/lib/apt-spacewalk/post_invoke.py; fi"; }; diff -Nurp orig/apt-spacewalk-1.0.6/debian/changelog apt-spacewalk-1.0.6/debian/changelog --- orig/apt-spacewalk-1.0.6/debian/changelog 2013-03-20 14:02:02.000000000 +0100 +++ apt-spacewalk-1.0.6/debian/changelog 2013-03-20 15:45:04.000000000 +0100 @@ -1,3 +1,13 @@ +apt-spacewalk (1.0.6-2.1) unstable; urgency=high + + * Non-maintainer upload. + * Add postrm/preinst scripts for removing/disabling/enabling the apt hook + file, and change the latter to test the existence of post_invoke.py before + invoking it (Closes: #703207, 700821). + * Setting high urgency due to RC bugs + + -- Serafeim Zanikolas <s...@debian.org> Wed, 20 Mar 2013 13:45:30 +0100 + apt-spacewalk (1.0.6-2) unstable; urgency=low * [22c43b83] Rename binary package to apt-transport-spacewalk diff -Nurp orig/apt-spacewalk-1.0.6/debian/postrm apt-spacewalk-1.0.6/debian/postrm --- orig/apt-spacewalk-1.0.6/debian/postrm 1970-01-01 01:00:00.000000000 +0100 +++ apt-spacewalk-1.0.6/debian/postrm 2013-03-20 14:01:28.000000000 +0100 @@ -0,0 +1,34 @@ +#! /bin/sh + +set -e + +hook=/etc/apt/apt.conf.d/50spacewalk + +case "$1" in + purge) + rm -f $hook.disabled + ;; + + remove) + mv $hook $hook.disabled + ;; + + abort-install) + if test "x$2" != "x" && test -f $hook + then + mv $hook $hook.disabled + fi + ;; + + upgrade|failed-upgrade|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +#DEBHELPER# + +exit 0 diff -Nurp orig/apt-spacewalk-1.0.6/debian/preinst apt-spacewalk-1.0.6/debian/preinst --- orig/apt-spacewalk-1.0.6/debian/preinst 1970-01-01 01:00:00.000000000 +0100 +++ apt-spacewalk-1.0.6/debian/preinst 2013-03-20 14:01:28.000000000 +0100 @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +hook=/etc/apt/apt.conf.d/50spacewalk +if test -f $hook.disabled +then + mv $hook.disabled $hook +fi + +#DEBHELPER# + +exit 0