Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Loading...