commit: 27ec895f35bdafcdff4d1ec813e076775f3e8548
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 24 18:49:13 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 24 18:49:13 2021 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=27ec895f
Add a script to report impl changes in packages
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
gpy-impl-list | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gpy-impl-list b/gpy-impl-list
new file mode 100755
index 0000000..8c365dd
--- /dev/null
+++ b/gpy-impl-list
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+OUTDIR=$1
+
+if [[ -z ${OUTDIR} ]]; then
+ echo "Usage: $0 <out-dir>" >&2
+ exit 1
+fi
+
+IRC='ircs://irc.libera.chat/#gentoo-python'
+
+irk "${IRC}" - <<<$'\0'
+gpy-list-pkg-impls > "${OUTDIR}"/python-pkg-impls.txt.new
+while read -r x; do
+ irk "${IRC}" "${x}"
+done < <(git diff -s --word-diff -U0 "${OUTDIR}"/python-pkg-impls.txt{,.new} |
tail -n +5 | grep -v '^@@')
+mv "${OUTDIR}"/python-pkg-impls.txt{.new,}