[arch-projects] [namcap] [PATCH 1/2] Warn about makedepends already in depends

2018-10-31 Thread Michael Straube via arch-projects
Add a rule that warns about make dependencies already listed as dependencies. Signed-off-by: Michael Straube --- Namcap/rules/__init__.py| 1 + Namcap/rules/makedepends.py | 41 + namcap-tags | 1 + 3 files changed, 43 insertions(+)

[arch-projects] [namcap] [PATCH 2/2] Add test for the makedepends rule

2018-10-31 Thread Michael Straube via arch-projects
Signed-off-by: Michael Straube --- Namcap/tests/pkgbuild/test_makedepends.py | 65 +++ 1 file changed, 65 insertions(+) create mode 100644 Namcap/tests/pkgbuild/test_makedepends.py diff --git a/Namcap/tests/pkgbuild/test_makedepends.py

[arch-projects] [namcap] [PATCH] parsepkgbuild.sh: fix detection of split pkgbuilds with empty pkgbase

2018-10-31 Thread Michael Straube via arch-projects
For split pkgbuilds the pkgbase variable is optional. If not specified, the first element in the pkgname array is used. Currently parsepkgbuild.sh fails to detect split pkgbuilds if pkgbase is not specified. Therefore the split pkgbuild rules are not applied to such pkgbuilds. Instead of testing