Regression: apt-listchanges always sends changelogs

Bug #839378 reported by imagine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Fix Released
Medium
Unassigned
apt-listchanges (Ubuntu)
Fix Released
Medium
Brian Murray

Bug Description

After upgrading to Ubuntu 11.04 apt-listchanges is displaying the changes of every updated package when running "apt-get dist-upgrade". However I have set "which=news" in /etc/apt/listchanges.conf (which is also the default value). In earlier versions of Ubuntu this setting worked as expected and apt-listchanges was only displaying new entries in NEWS.Debian and not in changelog.Debian.

Revision history for this message
Ralf Jung (ralfjung-e) wrote :

I can confirm this problem in Ubuntu 12.04 (LTS). listchanges.conf says "which=news", but nevertheless on each update I get a prompt with the changelogs, and a corresponding email. That's rather annoying, I'd prefer only to be prompted if there's really something of importance.

In Debian 6 and 7, the package works fine, so this seems to be an Ubuntu regression.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt-listchanges (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthew Haughton (snafu109) wrote :

Fix attached.

The problem is that there is an Ubuntu patch which falls back to downloading changelogs for every package when the script doesn't find any changelogs in the binary package. Due to faulty logic this always occurs when "which=news".

This patch changes behaviour so the fallback only triggers when "which=changelogs" or "which=both".

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "correct-changelogs-fallback-logic.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Matthew Haughton (snafu109) wrote :

Any chance we'll get someone to look at this?

The regression was introduced by Martin Pitt for natty (11.04) and it's unclear what the reason for introducing it was. In any case there is a patch available and if it needs updating I'd be happy to work on that.

The changelog from the package that introduced this problem:
apt-listchanges (2.85.5ubuntu1) natty; urgency=low

  * apt-listchanges/DebianFiles.py: If the new package does not have a Debian
    changelog, fall back to apt-changelog.

 -- Martin Pitt <email address hidden> Thu, 11 Nov 2010 17:13:34 +0100

tags: added: precise trusty utopic vivid
tags: added: regression-release
Changed in apt-listchanges (Ubuntu):
importance: Undecided → Medium
no longer affects: apt-listchanges
Changed in hundredpapercuts:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

Another and possibly more succinct way to write your patch follows:

and (which == 'both' or which == 'changelogs'):

vs

and which in ['both', 'changelogs']:

Revision history for this message
Brian Murray (brian-murray) wrote :

Actually, your patch looks more like the other tests so let's use it.

Revision history for this message
Brian Murray (brian-murray) wrote :

I've uploaded the fix to vivid, thanks for working on this. For this to be fixed in Trusty and Utopic we'd need to follow the SRU procedures documented at http://wiki.ubuntu.com/StableReleaseUpdates, specifically having a test case would be quite helpful.

Changed in apt-listchanges (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-listchanges - 2.85.13ubuntu3

---------------
apt-listchanges (2.85.13ubuntu3) vivid; urgency=medium

  * apt-listchanges/DebianFiles.py: only use apt-get changelog if which is
    changelogs or both, so not for news (LP: #839378). Thanks to Launchpad
    user snafu109 for the patch.
 -- Brian Murray <email address hidden> Wed, 11 Feb 2015 14:11:55 -0800

Changed in apt-listchanges (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Paul White (paulw2u) wrote :

Closing Papercuts task as issue resolved.

Changed in hundredpapercuts:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.