[arch-projects] [namcap] [PATCH] remove pointless mkdir -p in parsepkgbuild

2019-04-10 Thread Eli Schwartz via arch-projects
As far as I can tell, this was never used. In commit 9b56647abc8dc33bf138d4b260b103c8d9265b7d the parsepkgbuild script was switched from defining a PATH as a directory in /tmp, to actually passing in a PATH=/dummy to `env -i`... which makes sense as the defined PATH did not used to be used.

[arch-projects] [namcap] [PATCH 2/2] add support for new checksum algorithm in pacman-git

2019-04-10 Thread Eli Schwartz via arch-projects
It is now possible to use b2sums to verify file integrity. See https://git.archlinux.org/pacman.git/commit/?id=e03752e6adc86cbb4cb4f52a38f6e3e98cbe9dd5 Signed-off-by: Eli Schwartz --- Namcap/rules/arrays.py | 9 + Namcap/rules/extravars.py | 9 +

[arch-projects] [namcap] [PATCH 1/2] parsepkgbuild: reduce a lot of boilerplate by being more templated

2019-04-10 Thread Eli Schwartz via arch-projects
When listing out the contents of a variable, use loops and references to the variables in order to reduce code and make it easier to extend. In the future, a new metadata type can be added simply by appending to meta_keys=() Signed-off-by: Eli Schwartz --- parsepkgbuild.sh | 127

[arch-projects] [namcap] [PATCH] Add rule to report on unneeded dependencies from hooks

2019-04-10 Thread Eli Schwartz via arch-projects
Just as it is unnecessary to run certain commands in a post_upgrade script, if a hook already runs it, so too is it usually unnecessary to depend on the package that installs the hook. Sometimes these dependencies are left in even when the install script is removed, because people lack

Re: [arch-projects] [namcap] [PATCH] Remove no longer useful warnings that have missing keys

2019-04-10 Thread Eli Schwartz via arch-projects
On 4/10/19 9:15 PM, Eli Schwartz wrote: > Arch Linux now has pacman hooks that provide automatic handling for > update-{desktop,mime}-database without each package requiring a hard > dependency and a post_upgrade hook. This means it is no longer correct > to depend on the packages or provide an

[arch-projects] [namcap] [PATCH] Remove no longer useful warnings that have missing keys

2019-04-10 Thread Eli Schwartz via arch-projects
Arch Linux now has pacman hooks that provide automatic handling for update-{desktop,mime}-database without each package requiring a hard dependency and a post_upgrade hook. This means it is no longer correct to depend on the packages or provide an install script. Instead, remove this entirely.