Subject: gdebi-core: Broken format string in DebPackage.py:279
Package: gdebi-core
Version: 0.6.0
Severity: important
Tags: patch
When attempting to install a package that would break another package's
dependencies, the following exception terminates the app (CLI or GTK
version):
Traceback (most recent call last):
File "/usr/bin/gdebi", line 83, in <module>
if not debi.open(args[0]):
File "/usr/lib/python2.5/site-packages/GDebi/GDebiCli.py", line 86, in
open
if not self._deb.checkDeb():
File "/usr/lib/python2.5/site-packages/GDebi/DebPackage.py", line 368,
in checkDeb
if not self.checkBreaksExistingPackages():
File "/usr/lib/python2.5/site-packages/GDebi/DebPackage.py", line 283,
in checkBreaksExistingPackages
'depversion' : dep.version}
TypeError: not enough arguments for format string
I'm not attaching a patch file, per se, but I think it qualifies as a
patch to
suggest replacing line 279 of DebPackage.py with:
self._failureString += _("Breaks existing package '%(pkgname)s'
dependency %(depname)s (%(deprelation)s %(depversion)s)") % {
i.e. delete the i before (depversion). I have confirmed that this fixes
the problem locally by editing the file under /usr/lib.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gdebi-core depends on:
ii python 2.5.4-9 An interactive high-level
object-o
ii python-apt 0.7.94.2 Python interface to libapt-pkg
ii python-central 0.6.14+nmu2 register and build utility
for Pyt
ii python-debian 0.1.16 Python modules to work with
Debian
gdebi-core recommends no packages.
gdebi-core suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]