#624757 An E-Mail is sent even when the installation is unsuccsful

#624757#5
Date:
2011-05-01 11:21:56 UTC
From:
To:
I have a cronjob that runs "aptitude clean" daily, I left the
interactive apt-listchanges dialog open during the run of this
cronjob, this is what happened:

    Get:236 http://ftp.de.debian.org/debian/ testing/main lm-sensors amd64 1:3.3.0-1 [124 kB]
    Get:237 http://ftp.de.debian.org/debian/ testing/main pdns-server amd64 2.9.22-9 [839 kB]
    Get:238 http://ftp.de.debian.org/debian/ testing/main postfix amd64 2.8.2-1+b1 [1,510 kB]
    Get:239 http://ftp.de.debian.org/debian/ testing/main rtorrent amd64 0.8.7-6+b1 [562 kB]
    Fetched 270 MB in 1min 8s (3,934 kB/s)
    Reading changelogs... Done
    apt-listchanges: Do you want to continue? [Y/n] Y
    apt-listchanges: Mailing apt-listchanges: apt-listchanges: changelogs for w
    apt-listchanges: Mailing apt-listchanges: apt-listchanges: news for w
    E: Could not open file /var/cache/apt/archives/gcj-4.4-jdk_4.4.6-2_amd64.deb - open (2: No such file or directory)
    E: Unable to determine the file size - fstat (9: Bad file descriptor)
    E: Read error - read (9: Bad file descriptor)
    E: Prior errors apply to /var/cache/apt/archives/gcj-4.4-jdk_4.4.6-2_amd64.deb
    E: Could not open file /var/cache/apt/archives/libgcj10-dev_4.4.6-2_amd64.deb - open (2: No such file or directory)
    E: Unable to determine the file size - fstat (9: Bad file descriptor)
    E: Read error - read (9: Bad file descriptor)
    [.. dpkg continues to completely fail and not install packages ..]

So apt-listchanges sent out an E-Mail about the upgrade *before* it
was successful, meaning that the things it said had been upgraded
actually weren't.

Please only send an E-Mail after a successful upgrade.

#624757#10
Date:
2011-05-01 13:01:40 UTC
From:
To:
severity 624757 wishlist
tag 624757 wontfix
thanks

apt-listchanges never claimed to send mails only when the upgrade
worked, so it can't be important, merely a wishlist item.

Sadly it's not doable because apt doesn't have a fine grained way to
tell us what was upgraded and what wasn't. Plus once we've showed you
(as in sent a mail) about upgrades, it's not shown anymore afterwards,
so you definitely want a mail even if the upgrade failed.

Your wishlist item is just not doable sorry.

PS: I think that apticron does what you want, and in a very different
fashion than apt-listchanges.