commit:     0381cebaaa3298bb8297b0264d4a63471fea81f0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 25 18:09:22 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct 25 18:09:22 2025 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0381ceba

gpy-impl-list: Output separate non-colored file for www use

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 gpy-impl-list | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gpy-impl-list b/gpy-impl-list
index 92224cd..db8c482 100755
--- a/gpy-impl-list
+++ b/gpy-impl-list
@@ -12,8 +12,10 @@ IRC='ircs://irc.libera.chat/#gentoo-python'
 irk "${IRC}" - <<<$'\0'
 
 pkgcheck scan -c PythonCompatCheck -R JsonStream > 
"${OUTDIR}"/pkgcheck-python-compat-update.json
-gpy-list-pkg-impls --mirc-color --pkgcheck-output 
"${OUTDIR}"/pkgcheck-python-compat-update.json > 
"${OUTDIR}"/python-pkg-impls.txt.new || exit 1
+gpy-list-pkg-impls --pkgcheck-output 
"${OUTDIR}"/pkgcheck-python-compat-update.json > 
"${OUTDIR}"/python-pkg-impls.txt.new || exit 1
+mv "${OUTDIR}"/python-pkg-impls.txt{.new,}
+gpy-list-pkg-impls --mirc-color --pkgcheck-output 
"${OUTDIR}"/pkgcheck-python-compat-update.json > 
"${OUTDIR}"/python-pkg-impls.irc.new || exit 1
 while read -r x; do
        irk "${IRC}" "${x}"
-done < <(git diff --no-index -s --word-diff -U0 
"${OUTDIR}"/python-pkg-impls.txt{,.new} | tail -n +5 | grep -v '^@@')
-mv "${OUTDIR}"/python-pkg-impls.txt{.new,}
+done < <(git diff --no-index -s --word-diff -U0 
"${OUTDIR}"/python-pkg-impls.irc{,.new} | tail -n +5 | grep -v '^@@')
+mv "${OUTDIR}"/python-pkg-impls.irc{.new,}

Reply via email to