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#23259 - [namcap] namcap dies when checking a pkg.tar.xz

Attached to Project: Arch Linux
Opened by Jelle van der Waa (jelly) - Sunday, 13 March 2011, 14:02 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Sunday, 13 March 2011, 15:29 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When checking a pkg.tar.xz namcap quiets with a traceback.

Traceback (most recent call last):
File "/usr/lib/python3.2/runpy.py", line 160, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python3.2/runpy.py", line 73, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.2/site-packages/namcap.py", line 274, in <module>
process_realpackage(package, active_modules)
File "/usr/lib/python3.2/site-packages/namcap.py", line 128, in process_realpackage
rule.analyze(pkginfo, pkgtar)
File "/usr/lib/python3.2/site-packages/Namcap/rules/sodepends.py", line 175, in analyze
q = load(i)
NameError: global name 'load' is not defined

Namcap version: 3.0-1

Steps to reproduce:
[jelle@P8][/var/cache/pacman/pkg]%namcap zip-3.0-1-x86_64.pkg.tar.gz

This task depends upon

Closed by  Rémy Oudompheng (remyoudompheng)
Sunday, 13 March 2011, 15:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in version 3.0.1
Comment by Allan McRae (Allan) - Sunday, 13 March 2011, 14:07 GMT
The title says .tar.xz but the example is a .tar.gz?

Also:
> namcap zip-3.0-1-x86_64.pkg.tar.gz
zip W: Referenced library 'libc.so.6' is an uninstalled dependency
zip W: Referenced library 'libbz2.so.1.0' is an uninstalled dependency
zip W: Dependency included and not needed ('glibc')
zip W: Dependency included and not needed ('bzip2')

Loading...