pkgver=$(date +%Y%m%d) line like this in PKGBUILD make parsepkgbuild PKGBUILD to return != 0 and namcap traceback Traceback (most recent call last): File "/usr/lib/python3.3/runpy.py", line 160, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python3.3/runpy.py", line 73, in _run_code exec(code, run_globals) File "/usr/lib/python3.3/site-packages/namcap.py", line 246, in <module> process_pkgbuild(package, active_modules) File "/usr/lib/python3.3/site-packages/namcap.py", line 141, in process_pkgbuild pkginfo = Namcap.package.load_from_pkgbuild(package) File "/usr/lib/python3.3/site-packages/Namcap/package.py", line 198, in load_from_pkgbuild print("Error:", err, file=sys.stdout) NameError: global name 'sys' is not defined Signed-off-by: Sébastien Luttringer <seblu@seblu.net> --- Namcap/package.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Namcap/package.py b/Namcap/package.py index 47e84c4..83900c8 100644 --- a/Namcap/package.py +++ b/Namcap/package.py @@ -23,6 +23,7 @@ import os import subprocess import re import collections +import sys import pyalpm _pyalpm_version_tuple = tuple(int(n) for n in pyalpm.version().split('.')) -- Sébastien "Seblu" Luttringer