apt-listchanges crashes with AttributeError, when called with non-package argument
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/
InterpreterPath: /usr/bin/python2.5
Package: apt-listchanges 2.72ubuntu6
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/
ProcCwd: /home/amik
ProcEnviron:
SHELL=/bin/bash
PATH=/
LANG=en_US.UTF-8
PythonArgs: ['/usr/
SourcePackage: apt-listchanges
Uname: Linux kube 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
Changed in apt-listchanges (Debian): | |
status: | Unknown → Confirmed |
Changed in apt-listchanges (Debian): | |
status: | Confirmed → Fix Released |
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.