FS#25929 - [namcap] Doesn't use TMPDIR.

Attached to Project: Arch Linux
Opened by Sverd Johnsen (sjohnsen) - Thursday, 08 September 2011, 16:41 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 26 September 2011, 08:38 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

$ namcap gcc-4.6.1-4-i686.pkg.tar.gz

gzip: stdout: No space left on device
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 265, in <module>
process_realpackage(package, active_modules)
File "/usr/lib/python3.2/site-packages/namcap.py", line 124, in process_realpackage
show_messages(pkginfo["name"], 'E', rule.errors)
TypeError: 'NoneType' object is not subscriptable
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 26 September 2011, 08:38 GMT
Reason for closing:  Fixed
Additional comments about closing:  https://projects.archlinux.org/namcap.gi t/commit/?id=b56ca639858f0a3cdeb418c912f 01a3e1b00b4b4
Comment by Dan McGee (toofishes) - Thursday, 08 September 2011, 18:28 GMT
The sandbox_directory thing is at fault here. We should be using this:
http://docs.python.org/library/tempfile.html#tempfile.mkdtemp

tempfile.mkdtemp() automatically searches the relevant places as documented here:
http://docs.python.org/library/tempfile.html#tempfile.tempdir
Comment by Dan McGee (toofishes) - Friday, 09 September 2011, 00:18 GMT
Turns out it was the wrapper script, not python, at fault here. Patch sent to the arch-projects ML.

Loading...