Hi,
On 04/30/2015 08:43 AM, Ritesh Raj Sarraf wrote:
> Package: needrestart
> Version: 2.0-2
> Severity: normal
>
>
> The package is very helpful. But it does have some cruft right now.
>
> It gives false impression that dpkg has failed.
>
> apt-listchanges: Do you want to continue? [Y/n]
> apt-listchanges: Mailing root: apt-listchanges: changelogs for learner
> (Reading database ... 332465 files and directories currently installed.)
> Preparing to unpack .../enigmail_2%3a1.8.2-2_amd64.deb ...
> Unpacking enigmail (2:1.8.2-2) over (2:1.8.2-1) ...
> Setting up enigmail (2:1.8.2-2) ...
> needrestart is being skipped since dpkg has failed
needrestart uses dpkg's status logger hook to detect package
installation failures. Happens the false detected dpkg error every time?
Could you try to make the status logger verbose:
$ diff -u ex/apt/needrestart-dpkg_d /etc/dpkg/dpkg.cfg.d/needrestart
--- ex/apt/needrestart-dpkg_d 2014-01-02 19:52:13.000000000 +0100
+++ /etc/dpkg/dpkg.cfg.d/needrestart 2015-05-01 23:18:39.580908062 +0200
@@ -4,4 +4,4 @@
# triggers needrestart in apt's Dpkg::Post-Invoke
# hook.
-status-logger=(test -x /usr/lib/needrestart/dpkg-status &&
/usr/lib/needrestart/dpkg-status || cat > /dev/null)
+status-logger=(test -x /usr/lib/needrestart/dpkg-status && /bin/sh -x
/usr/lib/needrestart/dpkg-status || cat > /dev/null)
and attach the complete output?
TIA,
Thomas
--
:: WWW: http://fiasko-nw.net/~thomas/ ::
::: Jabber: xmpp:[email protected] :::
:: flickr: http://www.flickr.com/photos/laugufe/ ::
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]