pkgcheck
pkgcheck copied to clipboard
StableRequest by committer?
Hey,
Sometimes I bump packages which are maintainer-needed or by a 'quiet' project. It'd be pretty neat to be able to look at bumps which were committed by a given maintainer and run StableRequest on them.
I don't know if this is out of scope for pkgcheck though.
Basically what this requires is a virtual source that performs a query and returns matches based off that. If the functionality behind pquery was sane to use as an API it wouldn't be overly difficult, but unfortunately that's not the case. It would generally require rewriting query functionality into supporting a simple DSL to avoid adding a bunch of non-relevant query options to pkgcheck.
Currently this can be done by either piping properly formatted query results (from pquery, eix, etc) to pkgcheck for slow queries or using shell command expansion for faster queries.
I have to admit I slightly read this request wrong initially. This would also require storing more attributes in the git cache as well since both the author and committer fields aren't stored now to decrease the cache size.
I have thought about moving the git cache support to pkgcore to be able to add query support which would get most of the way towards this, but that's a decent amount of work for little gain. I don't think many people use any of pkgcore's tools outside of pkgcheck and even that userbase probably isn't that large yet compared to what it supersedes. The average person is usually quite entrenched in their usage patterns.
FYI sam I check my StableReq's periodically with a bash script,
pkgcheckscanpackages=()
cd ~/git/devgentoo || exit
mapfile -t pkgcheckscanpackages < <(git grep -l [email protected] '**/metadata.xml' | cut -d/ -f1-2)
...
...
...
for j in "${pkgcheckscanpackages[@]}"; do
pkgcheck --color true scan "${j}" -c StableRequestCheck -R FormatReporter --format 'stabilize {category}/{package}-{version} # {desc}';
done
And in here you could simply add more packages to that list temporarily with pkgcheckscanpackages+=( category/app )
. Obviously this wouldn't work in p.g.o though :(