FS#63645 - [namcap] When pkgname is an array with one value, it incorrectly warns for package function
Attached to Project:
Community Packages
Opened by Donald Webster (fryfrog) - Tuesday, 03 September 2019, 22:12 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 24 January 2020, 20:15 GMT
Opened by Donald Webster (fryfrog) - Tuesday, 03 September 2019, 22:12 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 24 January 2020, 20:15 GMT
|
Details
Description: When a PKGBUILD contains a pkgname as an array
w/ only one entry, it believes the package() function isn't
correct.
``` pkgname=('python-fanshim') ... 0 ✓ fryfrog@arch-armv7l ~/aur/python-fanshim $[master] namcap PKGBUILD PKGBUILD (python-fanshim) E: Child package python-fanshim does not have a valid package() function ``` https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-fanshim ^ This package is currently fine because it now uses `pkgname=python-fanshim`, but you can go back a few commits and try it on the version w/ a single name in the array. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Friday, 24 January 2020, 20:15 GMT
Reason for closing: Fixed
Additional comments about closing: namcap 3.2.10
Friday, 24 January 2020, 20:15 GMT
Reason for closing: Fixed
Additional comments about closing: namcap 3.2.10
Comment by (arisinfenix) - Friday,
24 January 2020, 19:41 GMT
Fixed with:
https://git.archlinux.org/namcap.git/commit/?id=91a0805efc9cc02eceecb4175a984a0eb44151be