FS#65042 - namcap: failure on simple PKGBUILD
Attached to Project:
Arch Linux
Opened by Allan McRae (Allan) - Saturday, 04 January 2020, 09:14 GMT
Last edited by Toolybird (Toolybird) - Saturday, 11 February 2023, 21:42 GMT
Opened by Allan McRae (Allan) - Saturday, 04 January 2020, 09:14 GMT
Last edited by Toolybird (Toolybird) - Saturday, 11 February 2023, 21:42 GMT
|
Details
pkgname=('a')
pkgver=1 pkgrel=1 arch=('any') package_a() { mkdir -p $pkgdir/usr/bin/bar/ } $ namcap PKGBUILD Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 86, in _run_code exec(code, run_globals) File "/usr/lib/python3.8/site-packages/namcap.py", line 247, in <module> process_pkgbuild(package, active_modules) File "/usr/lib/python3.8/site-packages/namcap.py", line 148, in process_pkgbuild ret = rule.analyze(pkginfo, package) File "/usr/lib/python3.8/site-packages/Namcap/rules/makedepends.py", line 59, in analyze for s in pkginfo["source"]: File "/usr/lib/python3.8/site-packages/Namcap/package.py", line 128, in __getitem__ return self._data[self.canonical_varname(key)] KeyError: 'source' |
This task depends upon
Closed by Toolybird (Toolybird)
Saturday, 11 February 2023, 21:42 GMT
Reason for closing: Fixed
Additional comments about closing: @alerque says "I believe this is fixed, see https://gitlab.archlinux.org/pacman/namc ap/-/issues/23"
Saturday, 11 February 2023, 21:42 GMT
Reason for closing: Fixed
Additional comments about closing: @alerque says "I believe this is fixed, see https://gitlab.archlinux.org/pacman/namc ap/-/issues/23"
After adding a source line source=('test'), the output is fine, only complaining about missing checksums, Maintainer tag, description in PKGBUILD, url and license.
FS#23258.Furthermore this issue also occurs on PKGBUILDs with architecture-specific sources, like anydesk-bin from the AUR:
https://bbs.archlinux.org/viewtopic.php?id=257692