On 09/08/2016 07:49 AM, Patrick Ziegler via aur-general wrote:
I was actually looking at this yesterday, didn't realize it was from you though. I was only looking at the pre-commit hook but the other stuff looks really cool too, I will probably start using it. I have one question though, in what way is the pkgbuild-introspection package superior to just calling `makepkg --printsrcinfo > .SRCINFO`?
The hook existed before makepkg gained a --printsrcinfo flag, otherwise there is no real difference. I never changed it after pacman 5.0 was released. Also, Bruno Pagani is wrong to say mksrcinfo is slower. The current *-git version of pkgbuild-introspection is actually a wrapper around makepkg, and incurs the cost of initializing makepkg (source libmakepkg and run a few things that are only relevant for building packages, etc.) but those changes have not gone into a tagged release. Meanwhile, mksrcinfo v8 is a lot slimmer. When pkgbuild-introspection 9 is released, I may update that script to use makepkg instead, in the meantime I see no reason to *actively* switch from what worked, just to run things a little *slower* without requiring an extra package (which I already have installed, not to mention I would have had to alias it for interactive use anyway ;)). You are of course free to adapt the hook any way you choose. -- Eli Schwartz