Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#3418 - namcap 1.5.3-1

Attached to Project: Arch Linux
Opened by Mark Rosenstand (bitbull) - Wednesday, 02 November 2005, 16:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jason Chu (jason)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Running namcap on a package without any dependencies will give this error:

Traceback (most recent call last):
File "/usr/bin/namcap", line 126, in ?
ret = pkg.analyze(pkginfo, sandbox_directory)
File "/usr/lib/python2.4/site-packages/Namcap/depends.py", line 204, in analyze
for i in pkginfo.depends:
TypeError: iteration over non-sequence
This task depends upon

Closed by  Jason Chu (jason)
Tuesday, 15 November 2005, 19:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 1.5.3.1
Comment by Jan de Groot (JGC) - Friday, 04 November 2005, 08:18 GMT
Solution is simple: on line 204 a loop is iterated over something that could be empty. Check it before iterating it:

if pkginfo.depends != None :
<indent line 204 and 205 with extra tab>

Loading...