[issue22] crash on upgrade or search on MDK 10.1 w/ smart 0.38 or 0.40
Edward Rudd at Labix Tracker
tracker at labix.org
Mon Oct 10 10:20:22 PDT 2005
New submission from Edward Rudd <erudd at netfor.com>:
on upgrade
Traceback (most recent call last):
File "/usr/bin/smart", line 193, in ?
main(sys.argv[1:])
File "/usr/bin/smart", line 166, in main
exitcode = iface.run(opts.command, opts.argv)
File "/usr/lib/python2.3/site-packages/smart/interface.py", line 53, in run
result = _command.main(self._ctrl, opts)
File "/usr/lib/python2.3/site-packages/smart/commands/upgrade.py", line 182,
in main
ctrl.commitTransaction(trans, confirm=confirm)
File "/usr/lib/python2.3/site-packages/smart/control.py", line 464, in
commitTransaction
return self.commitChangeSet(trans.getChangeSet(), caching, confirm)
File "/usr/lib/python2.3/site-packages/smart/control.py", line 467, in
commitChangeSet
if confirm and not iface.confirmChangeSet(changeset):
File "/usr/lib/python2.3/site-packages/smart/interfaces/text/interface.py",
line 107, in confirmChangeSet
return self.showChangeSet(changeset, confirm=True)
File "/usr/lib/python2.3/site-packages/smart/interfaces/text/interface.py",
line 223, in showChangeSet
size = report.getInstallSize() - report.getRemoveSize()
File "/usr/lib/python2.3/site-packages/smart/report.py", line 200, in
getRemoveSize
size = info.getInstalledSize()
File "/usr/lib/python2.3/site-packages/smart/backends/rpm/header.py", line 86,
in getInstalledSize
return self._h[rpm.RPMTAG_SIZE]
File "/usr/lib/python2.3/site-packages/smart/backends/rpm/header.py", line 57,
in __get__
obj._h = obj._loader.getHeader(obj._package)
File "/usr/lib/python2.3/site-packages/smart/backends/rpm/header.py", line
568, in getHeader
mi = getTS().dbMatch(0, pkg.loaders[self])
TypeError: argument 2 must be string or None, not int
on search
Traceback (most recent call last):
File "/usr/bin/smart", line 193, in ?
main(sys.argv[1:])
File "/usr/bin/smart", line 166, in main
exitcode = iface.run(opts.command, opts.argv)
File "/usr/lib/python2.3/site-packages/smart/interface.py", line 53, in run
result = _command.main(self._ctrl, opts)
File "/usr/lib/python2.3/site-packages/smart/commands/query.py", line 279, in main
if pattern.search(info.getSummary()):
File "/usr/lib/python2.3/site-packages/smart/backends/rpm/header.py", line
101, in getSummary
s = self._h[rpm.RPMTAG_SUMMARY]
File "/usr/lib/python2.3/site-packages/smart/backends/rpm/header.py", line 57,
in __get__
obj._h = obj._loader.getHeader(obj._package)
File "/usr/lib/python2.3/site-packages/smart/backends/rpm/header.py", line
568, in getHeader
mi = getTS().dbMatch(0, pkg.loaders[self])
TypeError: argument 2 must be string or None, not int
----------
messages: 54
nosy: urkle
priority: bug
project: smart
status: unread
title: crash on upgrade or search on MDK 10.1 w/ smart 0.38 or 0.40
_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue22>
_______________________________________
More information about the Smart
mailing list