Skip to content

On a specific package, it crashes with python backtrace and `list index out of range`.

Description:

I have built a package using  this PKGBUILD. The resulting package file is svg2tikz-git-2.1.0+78.r442.20231102.aab48a4-2-any.pkg.tar.

When I run namcap svg2tikz-git-2.1.0+78.r442.20231102.aab48a4-2-any.pkg.tar, it crashes with

Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3.11/site-packages/namcap.py", line 253, in <module>
process_realpackage(package, active_modules)
File "/usr/lib/python3.11/site-packages/namcap.py", line 95, in process_realpackage
rule.analyze(pkginfo, pkgtar)
File "/usr/lib/python3.11/site-packages/Namcap/rules/pydepends.py", line 137, in analyze
if is_script(f) and script_type(f) not in ["python", "python3"]:
^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/Namcap/util.py", line 48, in script_type
name = cmd[0]
~~~^^^
IndexError: list index out of range

Additional info:

  • package version(s): namcap: 3.4.2
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information