apt-listchanges crashes with AttributeError, when called with non-package argument

Bug #115001 reported by amichair
80
This bug affects 14 people
Affects Status Importance Assigned to Milestone
apt-listchanges (Debian)
Fix Released
Unknown
apt-listchanges (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: apt-listchanges

trying to figure out how to use apt-listchanges, I ran:

sudo apt-listchanges libsmbclient samba samba-common smbclient smbfs winbind

and it crashed.

NOTE: rather than sepcifying --apt as accepting "version 2 output from apt", it would be much more productive to give a one-line example of how to actually use it...

ProblemType: Crash
Architecture: i386
Date: Wed May 16 13:03:03 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/apt-listchanges
InterpreterPath: /usr/bin/python2.5
Package: apt-listchanges 2.72ubuntu6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/apt-listchanges libsmbclient samba samba-common smbclient smbfs winbind
ProcCwd: /home/amik
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/apt-listchanges', 'libsmbclient', 'samba', 'samba-common', 'smbclient', 'smbfs', 'winbind']
SourcePackage: apt-listchanges
Uname: Linux kube 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

Revision history for this message
amichair (amichai2) wrote :
Revision history for this message
Daniel Hahler (blueyed) wrote :

Calling apt-listchanges with a non-package argument causes this crash.
apt-listchanges is meant to be called from apt (during upgrade) or manually, but then you'll have to pass a .deb as argument to it.

Just calling apt-listchanges without any arguments will tell you how to use it:
Usage: apt-listchanges [options] {--apt | filename.deb ...}

There are two issues here:
 1. do not crash when e.g. called with "foo" as argument.
 2. support package names as arguments, e.g. "apt-listchanges -a apt" would list the changes for apt. However, this is not trivial (using this without "-a" makes not much sense AFAICS and with -a is lists just the whole changelog)

This bug report should be about case 1, the crash (and improved help). Please create a new bug, if you thing "apt-listchanges <package>" makes sense. Thanks.

Changed in apt-listchanges:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Daniel Hahler (blueyed) wrote :

JFI: "aptitude changelog samba" displays the changelog for the source package samba.
apt-listchanges may include the same functionality when called with a package name or just refer to "aptitude changelog".

Changed in apt-listchanges (Debian):
status: Unknown → Confirmed
Changed in apt-listchanges (Debian):
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.