smart does not handle index out of range errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
New
|
Undecided
|
Unassigned |
Bug Description
Imported: http://
Reason: Patch Review
further details: https:/
msg930 (view) Author: dfarning Date: 2006-11-15.20:32:52
twofish,
I have turned your fix into a patch. Can you verify that the patch works for
you against trunk.
Dave
msg919 (view) Author: twofish Date: 2006-11-12.18:32:11
smart fails when I run it against my repository
Traceback (most recent call last):#
File "/usr/bin/smart", line 194, in ?
main(
File "/usr/bin/smart", line 167, in main
exitcode = iface.run(
File "/usr/lib/
result = _command.
File "/usr/lib/
main
ctrl.
File "/usr/lib/
reloadChannels
self.
File "/usr/lib/
191, in load
def load(self):
File "/usr/lib/
293, in load
vi = v[i] or None
IndexError: list index out of range
I've fixed this by adding a cache for IndexError
for i in range(len(n)):