public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-18 18:55 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-03-18 18:55 UTC (permalink / raw
  To: gentoo-commits

commit:     5fbc87735184eb5bd8c1df86149f28144e9060af
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 18 18:35:12 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Fri Mar 18 18:35:12 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=5fbc8773

add README

---
 README |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/README b/README
new file mode 100644
index 0000000..cb0e56e
--- /dev/null
+++ b/README
@@ -0,0 +1,18 @@
+How to get a script added.
+==========================
+
+File a bug report assigned to the qa team. The qa team will add the script to
+the repo or give you access to the repo
+
+How to get output on the webpage added.
+=======================================
+
+Once your script is in the repo, infra needs to run the script and someone needs
+to add the appropriate link to the webpage.
+
+Important details:
+- How often to run your script, normally daily is good enough.
+- Any arguments needed for the script? (OR how to run it)
+- Output is normally text but can be html too, must be static.
+- Must not link outside of gentoo.org for integrity purposes. It is ideal to
+  maintain a closed system, output generated on the web host, etc.



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-19 13:10 Tomas Chvatal
  0 siblings, 0 replies; 316+ messages in thread
From: Tomas Chvatal @ 2011-03-19 13:10 UTC (permalink / raw
  To: gentoo-commits

commit:     1fe4273ec64401567d42c6bca73cb5baded39b9e
Author:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 13:10:43 2011 +0000
Commit:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 13:10:43 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=1fe4273e

Add note about whom has access to this.

---
 README |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/README b/README
index cb0e56e..e216393 100644
--- a/README
+++ b/README
@@ -2,7 +2,10 @@ How to get a script added.
 ==========================
 
 File a bug report assigned to the qa team. The qa team will add the script to
-the repo or give you access to the repo
+the repo or give you access to the repo.
+
+By default all Gentoo developers should have full write access so just ask if
+you can add your script in.
 
 How to get output on the webpage added.
 =======================================



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-22 15:43 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-03-22 15:43 UTC (permalink / raw
  To: gentoo-commits

commit:     84dbe4712650b8f63e9b40d4467081ff86dfda90
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 22 15:43:29 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Tue Mar 22 15:43:29 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=84dbe471

.gitignore: Add output dir

---
 .gitignore |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..85a166b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+htdocs/output



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-25 15:38 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-03-25 15:38 UTC (permalink / raw
  To: gentoo-commits

commit:     6f0c93d1067b2b2be2fad801faa8ebe8e77c9daf
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 25 15:32:44 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Fri Mar 25 15:32:44 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=6f0c93d1

Add simple 'script' to report EAPI usage

Kinda boring at this time because it just runs one command, maybe
someone will make it better?

---
 eapi_usage.sh |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/eapi_usage.sh b/eapi_usage.sh
new file mode 100755
index 0000000..9fc466a
--- /dev/null
+++ b/eapi_usage.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Boring 'script' that just uses pkgcore's pinspect command. Someday it would be
+# nice to graph this output, or maybe keep some running history?
+
+[[ $(type pinspect 2> /dev/null) ]] || exit 1
+
+time pinspect eapi_usage /usr/portage
+echo
+echo "Date generated: $(date)"



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-29 17:26 Tomas Chvatal
  0 siblings, 0 replies; 316+ messages in thread
From: Tomas Chvatal @ 2011-03-29 17:26 UTC (permalink / raw
  To: gentoo-commits

commit:     d2d5ab9df7c6e8b5784e78f52747c7a7f13310cc
Author:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 29 17:24:29 2011 +0000
Commit:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
CommitDate: Tue Mar 29 17:24:29 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=d2d5ab9d

Add Zac's script for scanning old dependencies.

---
 scan-for-old-deps.py |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/scan-for-old-deps.py b/scan-for-old-deps.py
new file mode 100755
index 0000000..5981a8a
--- /dev/null
+++ b/scan-for-old-deps.py
@@ -0,0 +1,41 @@
+#!/usr/bin/env python
+
+import os
+import sys
+import portage
+
+if len(sys.argv) != 2 or not portage.isvalidatom(sys.argv[1]):
+	sys.stderr.write("usage: %s <atom>\n" % os.path.basename(sys.argv[0]))
+	sys.exit(1)
+
+input_atom = portage.dep.Atom(sys.argv[1])
+settings = portage.config(config_profile_path="",
+	local_config=False)
+settings["ACCEPT_KEYWORDS"] = "**"
+settings.backup_changes("ACCEPT_KEYWORDS")
+settings.lock()
+porttree = portage.portagetree(settings=settings)
+portdb = porttree.dbapi
+trees = {"/" : {"porttree":porttree}}
+dep_keys = ("DEPEND", "RDEPEND", "PDEPEND")
+
+for cp in portdb.cp_all():
+	for cpv in portdb.cp_list(cp):
+		metadata = dict(zip(dep_keys,
+			portdb.aux_get(cpv, dep_keys)))
+		dep_str = " ".join(metadata[k] for k in dep_keys)
+		success, atoms = portage.dep_check(dep_str,
+			None, settings, use="all",
+			trees=trees, myroot=settings["ROOT"])
+
+		if not success:
+			sys.stderr.write("%s %s\n" % (cpv, atoms))
+		else:
+			bad_atoms = []
+			for atom in atoms:
+				if not atom.blocker and atom.cp == input_atom.cp:
+					matches = portdb.xmatch("match-all", atom)
+					if not portage.dep.match_from_list(input_atom, matches):
+						bad_atoms.append(atom)
+			if bad_atoms:
+				sys.stdout.write("%s\t%s\n" % (cpv, " ".join(bad_atoms)))



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-29 17:32 Tomas Chvatal
  0 siblings, 0 replies; 316+ messages in thread
From: Tomas Chvatal @ 2011-03-29 17:32 UTC (permalink / raw
  To: gentoo-commits

commit:     dfd5f19a16fcb9b7d0f31535f7ddc47ed2b3cce5
Author:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 29 17:30:14 2011 +0000
Commit:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
CommitDate: Tue Mar 29 17:30:14 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=dfd5f19a

Add some sanity checks and allow specification of workdir as argument ot script.

---
 check_eclasses_eapis.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index ef25d5d..aa77dfa 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -2,6 +2,10 @@
 # Created by Tomáš Chvátal <scarabeus@gentoo.org>
 # License WTFPL-2.0
 
+[[ -z ${1} ]] && DIR="${1}" || DIR=$(pwd)
+
+[[ $(type pquery 2> /dev/null) ]] || exit 1
+
 KNOWN_EAPIS="0 1 2 3 4"
 TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
 TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
@@ -10,6 +14,7 @@ ECLASSES=$(echo *.eclass)
 popd > /dev/null
 pquery --attr eapi --attr inherited --raw --all --repo portdir > "${TMPEAPIS}"
 
+pushd ${DIR} > /dev/null
 rm -rf *.eclass
 for x in ${ECLASSES}; do
 	echo "Processing eclass \"${x}\""
@@ -25,6 +30,7 @@ for x in ${ECLASSES}; do
 	done
 	popd > /dev/null
 done
+popd > /dev/null
 
 rm ${TMPEAPIS}
 rm ${TMPECLASS}



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-29 19:12 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-03-29 19:12 UTC (permalink / raw
  To: gentoo-commits

commit:     e39691fe7612e88ef8344e02fb99985f592abe71
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 29 19:12:10 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Tue Mar 29 19:12:10 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=e39691fe

mkdir $DIR if not present

---
 check_eclasses_eapis.sh |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index aa77dfa..3e53808 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -2,7 +2,12 @@
 # Created by Tomáš Chvátal <scarabeus@gentoo.org>
 # License WTFPL-2.0
 
-[[ -z ${1} ]] && DIR="${1}" || DIR=$(pwd)
+if [[ -z ${1} ]]; then
+	DIR="${1}"
+	[[ -d ${DIR} ]] || mkdir -p ${DIR}
+else
+	DIR=$(pwd)
+fi
 
 [[ $(type pquery 2> /dev/null) ]] || exit 1
 



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-29 19:26 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-03-29 19:26 UTC (permalink / raw
  To: gentoo-commits

commit:     f4a2e940173ca2721e72904afdd6334db5a89014
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 29 19:26:12 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Tue Mar 29 19:26:12 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=f4a2e940

fix thinko

---
 check_eclasses_eapis.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 3e53808..ba07ea0 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -2,7 +2,7 @@
 # Created by Tomáš Chvátal <scarabeus@gentoo.org>
 # License WTFPL-2.0
 
-if [[ -z ${1} ]]; then
+if [[ ! -z ${1} ]]; then
 	DIR="${1}"
 	[[ -d ${DIR} ]] || mkdir -p ${DIR}
 else



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-29 19:29 Tomas Chvatal
  0 siblings, 0 replies; 316+ messages in thread
From: Tomas Chvatal @ 2011-03-29 19:29 UTC (permalink / raw
  To: gentoo-commits

commit:     f14015f53377f80a220ea34fae9770361de0ded6
Author:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 29 19:26:44 2011 +0000
Commit:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
CommitDate: Tue Mar 29 19:26:44 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=f14015f5

Logic++

---
 check_eclasses_eapis.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index ba07ea0..1c963dd 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -2,7 +2,7 @@
 # Created by Tomáš Chvátal <scarabeus@gentoo.org>
 # License WTFPL-2.0
 
-if [[ ! -z ${1} ]]; then
+if [[ -n ${1} ]]; then
 	DIR="${1}"
 	[[ -d ${DIR} ]] || mkdir -p ${DIR}
 else



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-03-30 16:52 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-03-30 16:52 UTC (permalink / raw
  To: gentoo-commits

commit:     6e5e7c0aad716803a1ef9c2584dda8dc9db79ba6
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 30 16:52:35 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Wed Mar 30 16:52:35 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=6e5e7c0a

eapi_usage.sh: Stop using the time command

---
 eapi_usage.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/eapi_usage.sh b/eapi_usage.sh
index 9fc466a..5b6a4c8 100755
--- a/eapi_usage.sh
+++ b/eapi_usage.sh
@@ -5,6 +5,6 @@
 
 [[ $(type pinspect 2> /dev/null) ]] || exit 1
 
-time pinspect eapi_usage /usr/portage
+pinspect eapi_usage /usr/portage
 echo
 echo "Date generated: $(date)"



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-04-15 20:28 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-04-15 20:28 UTC (permalink / raw
  To: gentoo-commits

commit:     3521dfaf7c6d10fb6751bd66492fbc1454630785
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 10 22:53:09 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Sun Apr 10 22:53:09 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=3521dfaf

Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/qa-scripts


 genrdeps/run-genrdeps-index.sh       |    6 +
 htdocs/index.html                    |    2 +
 invalid_files/README                 |   42 +++
 invalid_files/gentoo_unused_files.pl |  385 ++++++++++++++++++++++++++++
 invalid_files/main.pl                |  455 ++++++++++++++++++++++++++++++++++
 invalid_files/make_hash.pl           |  202 +++++++++++++++
 invalid_files/source.sh              |   38 +++
 7 files changed, 1130 insertions(+), 0 deletions(-)



^ permalink raw reply	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-04-15 20:28 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-04-15 20:28 UTC (permalink / raw
  To: gentoo-commits

commit:     aef0d9809f93c171a86c94bf054f6fbb182ce63d
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 15 20:27:55 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 20:27:55 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=aef0d980

README: document current runtimes

---
 README |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/README b/README
index e216393..0e2173e 100644
--- a/README
+++ b/README
@@ -19,3 +19,14 @@ Important details:
 - Output is normally text but can be html too, must be static.
 - Must not link outside of gentoo.org for integrity purposes. It is ideal to
   maintain a closed system, output generated on the web host, etc.
+
+
+Current runtimes:
+================
+(As of 2011-04-15)
+
+- emerge --sync: hourly. Assume PORTDIR=/usr/portage (may change in future)
+- genrdeps, run-genrdeps-index.sh: hourly
+- eapi_usage.sh: 2x daily
+- check_eclasses_eapis.sh: 4x daily
+- mask_check.py: daily



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-04-21  3:51 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-04-21  3:51 UTC (permalink / raw
  To: gentoo-commits

commit:     c2a9404f2c2c874f3ceac1de9f4893ecdd4b5007
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 21 03:50:43 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 03:50:43 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=c2a9404f

check_eclasses_eapis.sh: Add README.html file

---
 check_eclasses_eapis.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 1c963dd..380b131 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -33,6 +33,7 @@ for x in ${ECLASSES}; do
 		tmpval=$(wc -l "${y}.txt" |cut -d' ' -f1)
 		echo "EAPI=${y} count: ${tmpval}" >> "STATS.txt"
 	done
+	sed -e 's/$/<br>/' STATS.txt > README.html
 	popd > /dev/null
 done
 popd > /dev/null



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-04-21  3:51 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2011-04-21  3:51 UTC (permalink / raw
  To: gentoo-commits

commit:     8f48ed18459e96c6824457ca9b70da872f39aa6e
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 21 03:51:14 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 03:51:14 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=8f48ed18

gitignore: ignore .htaccess file

---
 .gitignore |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 85a166b..97ba609 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 htdocs/output
+htdocs/.htaccess



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-05-06 18:22 Christoph Mende
  0 siblings, 0 replies; 316+ messages in thread
From: Christoph Mende @ 2011-05-06 18:22 UTC (permalink / raw
  To: gentoo-commits

commit:     0500eaa203e255a71cb55e6332bf8d6e6eb3a166
Author:     Christoph Mende <angelos <AT> unkreativ <DOT> org>
AuthorDate: Fri May  6 18:22:15 2011 +0000
Commit:     Christoph Mende <angelos <AT> gentoo <DOT> org>
CommitDate: Fri May  6 18:22:15 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=0500eaa2

Minor improvements to filesdur-usage.sh
Use pushd/popd instead of cd.
Don't rely on portdir being in /usr/portage

---
 filesdir-usage.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/filesdir-usage.sh b/filesdir-usage.sh
index 4677277..920b5af 100755
--- a/filesdir-usage.sh
+++ b/filesdir-usage.sh
@@ -3,11 +3,12 @@
 # $1 is a number, N. The top N directories that are consuming space. Defaults to
 # all.
 
-cd /usr/portage/
+pushd $(portageq portdir) >/dev/null
 if [[ -z $1 ]]; then
 	du -h */*/files | sort -nr
 else
 	du -h */*/files | sort -nr | head -n $1
 fi
+popd >/dev/null
 echo
 echo $(emerge --info | grep Timestamp)



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-06-14 20:31 Matt Turner
  0 siblings, 0 replies; 316+ messages in thread
From: Matt Turner @ 2011-06-14 20:31 UTC (permalink / raw
  To: gentoo-commits

commit:     6057455d53b08d85883d80e83578940cc821bb43
Author:     Matt Turner <mattst88 <AT> gmail <DOT> com>
AuthorDate: Tue Jun 14 20:08:13 2011 +0000
Commit:     Matt Turner <mattst88 <AT> gmail <DOT> com>
CommitDate: Tue Jun 14 20:31:14 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=6057455d

add a script to find binary and empty files in portage

---
 find-binary-files.pl |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/find-binary-files.pl b/find-binary-files.pl
new file mode 100755
index 0000000..0d32c9e
--- /dev/null
+++ b/find-binary-files.pl
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+
+# Matt Turner <mattst88@gentoo.org/gmail.com>
+# June 2010. For qa-reports.gentoo.org.
+
+use strict;
+use warnings;
+
+use File::Find;
+
+sub wanted {
+	!-d && ((-z && print "empty  file: $File::Find::name\n")
+		 || (-B && print "binary file: $File::Find::name\n"));
+}
+
+finddepth(\&wanted,  @ARGV);



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-06-21 17:33 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2011-06-21 17:33 UTC (permalink / raw
  To: gentoo-commits

commit:     d685925b2aec1969e159becadc946298dd47850d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 21 17:31:42 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun 21 17:33:48 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=d685925b

Add a script to list packages which use a particular eclass.

---
 packages-inheriting-eclasses.py |   56 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
new file mode 100755
index 0000000..900426b
--- /dev/null
+++ b/packages-inheriting-eclasses.py
@@ -0,0 +1,56 @@
+#!/usr/bin/python
+
+import collections, os, os.path, sys
+import pkgcore.config # tested with pkgcore-0.6.4
+
+def main(argv):
+	try:
+		outputdir = argv[1]
+	except IndexError:
+		print('Usage: %s output-directory/' % argv[0])
+		return 1
+
+	c = pkgcore.config.load_config()
+	portdir = c.repo['portdir']
+
+	output = collections.defaultdict(set)
+
+	for p in portdir:
+		for eclass in p.data['_eclasses_']:
+			output[eclass].add('%s/%s\n' % (p.category, p.PN))
+
+	try:
+		os.mkdir(outputdir)
+	except OSError:
+		pass # XXX: removing old eclasses?
+
+	os.chdir(outputdir)
+	for eclass in output:
+		f = open('%s.txt' % eclass, 'w')
+		f.writelines(sorted(output[eclass]))
+		f.close()
+
+	f = open('index.html', 'w')
+	f.write('''<!DOCTYPE html>
+<html>
+	<head>
+		<style type="text/css">
+			li a { font-family: monospace; display: block; float: left; min-width: %dem; }
+		</style>
+		<title>Packages inheriting eclasses</title>
+	</head>
+	<body>
+		<h1>Packages inheriting eclasses</h1>
+
+		<ul>
+			%s
+			<li><a href="../">../ (go back)</a></li>
+		</ul>
+	</body>
+</html>''' % (max([len(e) for e in output]), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
+	f.close()
+
+	return 0
+
+if __name__ == '__main__':
+	sys.exit(main(sys.argv))



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-06-22 16:16 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2011-06-22 16:16 UTC (permalink / raw
  To: gentoo-commits

commit:     0adf34740763b8aaf5298ea6500016c615016c7f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 22 16:16:18 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 22 16:16:31 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=0adf3474

p-i-e.py: Fix the index link.

---
 packages-inheriting-eclasses.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index 900426b..cc9705b 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -44,7 +44,7 @@ def main(argv):
 
 		<ul>
 			%s
-			<li><a href="../">../ (go back)</a></li>
+			<li><a href="/">/ (go back)</a></li>
 		</ul>
 	</body>
 </html>''' % (max([len(e) for e in output]), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2011-06-22 19:31 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2011-06-22 19:31 UTC (permalink / raw
  To: gentoo-commits

commit:     5502d3eb3b860b42778597b99c3a15b4633e9a83
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 22 19:31:23 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 22 19:31:23 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=5502d3eb

p-i-e.py: write sync time in index.html.

---
 packages-inheriting-eclasses.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index cc9705b..29770b7 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 
-import collections, os, os.path, sys
+import collections, datetime, os, os.path, sys
 import pkgcore.config # tested with pkgcore-0.6.4
 
 def main(argv):
@@ -42,12 +42,14 @@ def main(argv):
 	<body>
 		<h1>Packages inheriting eclasses</h1>
 
+		<p>(tree synced at %s UTC)</p>
+
 		<ul>
 			%s
 			<li><a href="/">/ (go back)</a></li>
 		</ul>
 	</body>
-</html>''' % (max([len(e) for e in output]), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
+</html>''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(c.syncer['%s syncer' % portdir.location].current_timestamp()), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
 	f.close()
 
 	return 0



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2012-02-03 22:51 Ulrich Mueller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Mueller @ 2012-02-03 22:51 UTC (permalink / raw
  To: gentoo-commits

commit:     ed4fa2c54dffce108bfd0e2d485e4c83c32d6462
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  3 22:47:23 2012 +0000
Commit:     Ulrich Mueller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Feb  3 22:51:19 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=ed4fa2c5

check_eclasses_eapis.sh: Fix awk syntax.

This avoids false positives for eclasses whose name is a substring
of another eclass's name. (Same for EAPIs.)

---
 check_eclasses_eapis.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 380b131..a5eb736 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -25,11 +25,11 @@ for x in ${ECLASSES}; do
 	echo "Processing eclass \"${x}\""
 	rm -rf "${x}"
 	mkdir "${x}"
-	awk -F'=' '$3 ~ /'"${x%.eclass}"'[ "]/ {print $1" "$2}' "${TMPEAPIS}" > "${TMPECLASS}"
+	awk -F'=' '$3 ~ /[ "]'"${x%.eclass}"'[ "]/ {print $1" "$2}' "${TMPEAPIS}" > "${TMPECLASS}"
 	pushd "${x}" > /dev/null
 	echo "Overall statistic for eclass \"${x}\":" > "STATS.txt"
 	for y in ${KNOWN_EAPIS}; do
-		awk -F ' ' '$3 ~ /'"${y}"'/ {print $1}' "${TMPECLASS}" > "${y}.txt"
+		awk -F ' ' '$3 ~ /"'"${y}"'"/ {print $1}' "${TMPECLASS}" > "${y}.txt"
 		tmpval=$(wc -l "${y}.txt" |cut -d' ' -f1)
 		echo "EAPI=${y} count: ${tmpval}" >> "STATS.txt"
 	done



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2012-04-10  7:56 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2012-04-10  7:56 UTC (permalink / raw
  To: gentoo-commits

commit:     bec63d2692577a57c72d3d93ecf10007f96b2233
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 10 07:56:16 2012 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Apr 10 07:56:16 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=bec63d26

Update for pkgcore API changes.

---
 packages-inheriting-eclasses.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index 29770b7..0e88c42 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -1,7 +1,7 @@
 #!/usr/bin/python
 
 import collections, datetime, os, os.path, sys
-import pkgcore.config # tested with pkgcore-0.6.4
+import pkgcore.config # tested with pkgcore-0.7.7.8
 
 def main(argv):
 	try:
@@ -49,7 +49,7 @@ def main(argv):
 			<li><a href="/">/ (go back)</a></li>
 		</ul>
 	</body>
-</html>''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(c.syncer['%s syncer' % portdir.location].current_timestamp()), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
+</html>''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(c.syncer['sync:%s' % portdir.location].current_timestamp()), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
 	f.close()
 
 	return 0



^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2012-08-01 19:25 Christoph Mende
  0 siblings, 0 replies; 316+ messages in thread
From: Christoph Mende @ 2012-08-01 19:25 UTC (permalink / raw
  To: gentoo-commits

commit:     7856ac0d476d1773991772bbce26a0367dbf689b
Author:     Christoph Mende <angelos <AT> gentoo <DOT> org>
AuthorDate: Wed Aug  1 19:25:27 2012 +0000
Commit:     Christoph Mende <angelos <AT> gentoo <DOT> org>
CommitDate: Wed Aug  1 19:25:27 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=7856ac0d

portqa: Allow email addresses to be passed as argument and assume --maintainer instead of --herd in that case

---
 portqa |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/portqa b/portqa
index 3638055..d617a41 100755
--- a/portqa
+++ b/portqa
@@ -5,12 +5,19 @@
 [[ -z $1 ]] && exit 1
 
 if [[ $1 == help || $1 == --help ]]; then
-	echo "Usage: $0 herd-to-checkup"
+	echo "Usage: $0 herd-or-maintainer-to-checkup"
 	exit 0
 fi
+
+if [[ $1 = *@* ]]; then
+	target="--maintainer=$1"
+else
+	target="--herd=$1"
+fi
+
 #-c pkgcore_checks.imlate \
 pushd "$(portageq portdir)" > /dev/null
-package=$(pquery --herd=$1 --repo=portdir --no-version | tr '\n' ' ')
+package=$(pquery ${target} --repo=portdir --no-version | tr '\n' ' ')
 pcheck -c pkgcore_checks.deprecated \
 	-c pkgcore_checks.whitespace \
 	-c pkgcore_checks.pkgdir_checks \


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2012-10-17 13:03 Dane Smith
  0 siblings, 0 replies; 316+ messages in thread
From: Dane Smith @ 2012-10-17 13:03 UTC (permalink / raw
  To: gentoo-commits

commit:     a2abfee1fa404d1bc711eeca2335433a6037129b
Author:     Dane Smith <c1pher <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 17 13:01:47 2012 +0000
Commit:     Dane Smith <c1pher <AT> gentoo <DOT> org>
CommitDate: Wed Oct 17 13:01:47 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=a2abfee1

Add patch from Michał Górny for packages-inheriting-eclasses. Closes
Bug 438506.

---
 packages-inheriting-eclasses.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index 0e88c42..c2ae5ae 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -16,7 +16,7 @@ def main(argv):
 	output = collections.defaultdict(set)
 
 	for p in portdir:
-		for eclass in p.data['_eclasses_']:
+		for eclass in p.data.get('_eclasses_', ()):
 			output[eclass].add('%s/%s\n' % (p.category, p.PN))
 
 	try:


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2012-11-28 12:15 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2012-11-28 12:15 UTC (permalink / raw
  To: gentoo-commits

commit:     9e65527ce1c23d922c217657a7f63c19d85d4809
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 28 00:26:22 2012 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Wed Nov 28 00:26:22 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=9e65527c

add new gen-dev-wot.sh

Signed-off-by: Jeremy Olexa <darkside <AT> gentoo.org>

---
 README         |    3 ++-
 gen-dev-wot.sh |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/README b/README
index 28f3861..f6f91f9 100644
--- a/README
+++ b/README
@@ -23,7 +23,7 @@ Important details:
 
 Current runtimes:
 ================
-(As of 2011-06-14)
+(As of 201-11-28)
 
 - emerge --sync: hourly. Assume PORTDIR=/usr/portage (may change in future)
 - check_eclasses_eapis.sh: 4x daily
@@ -33,3 +33,4 @@ Current runtimes:
 - genrdeps, run-genrdeps-index.sh: hourly
 - mask_check.py: daily
 - packages-inheriting-eclasses.py: daily
+- gen-dev-wot.sh: weekly

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
new file mode 100755
index 0000000..6ded25e
--- /dev/null
+++ b/gen-dev-wot.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# intentionally quiet script
+
+if [[ -z "$1" ]]; then
+	echo "Usage: $0 </path/to/output/>"
+	exit 1
+fi
+if [[ ! -e /usr/bin/sig2dot ]]; then
+	echo "install signing-party"; exit 1
+fi
+if [[ ! -e /usr/bin/neato ]]; then
+	echo "install graphviz"; exit 1
+fi
+
+export GNUPGHOME=$(mktemp -d --suffix=$(basename $0))
+cd $GNUPGHOME || exit 1
+
+wget -q -O -  http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml | \
+	egrep -o 0x[A-Z0-9]\{8\} | egrep [A-Z0-9]\{8\} > keys.txt
+
+/usr/bin/gpg -q --keyserver hkp://pool.sks-keyservers.net --recv-keys \
+	`cat keys.txt` &> /dev/null
+
+/usr/bin/gpg -q --export `cat keys.txt` > keys.gpg
+
+/usr/bin/gpg -q --no-default-keyring  --keyring ./keys.gpg --list-sigs | \
+	/usr/bin/sig2dot -q -a -t "Gentoo Dev WoT" -s stats.html 2> /dev/null | \
+	/usr/bin/neato -Gcharset=latin1 -Tpng > "${1}/graph.png"
+
+mv stats.html "${1}"
+rm -rf $GNUPGHOME


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2012-11-28 13:33 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2012-11-28 13:33 UTC (permalink / raw
  To: gentoo-commits

commit:     5b97645694cc7ea33c5f30f51cbc54f9985b4783
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 28 13:33:47 2012 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Wed Nov 28 13:33:47 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=5b976456

remove erroneous command

Signed-off-by: Jeremy Olexa <darkside <AT> gentoo.org>

---
 gen-dev-wot.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
index 6ded25e..ab20c2d 100755
--- a/gen-dev-wot.sh
+++ b/gen-dev-wot.sh
@@ -17,7 +17,7 @@ export GNUPGHOME=$(mktemp -d --suffix=$(basename $0))
 cd $GNUPGHOME || exit 1
 
 wget -q -O -  http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml | \
-	egrep -o 0x[A-Z0-9]\{8\} | egrep [A-Z0-9]\{8\} > keys.txt
+	egrep -o 0x[A-Z0-9]\{8\} > keys.txt
 
 /usr/bin/gpg -q --keyserver hkp://pool.sks-keyservers.net --recv-keys \
 	`cat keys.txt` &> /dev/null


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2012-11-29 15:31 Tomas Chvatal
  0 siblings, 0 replies; 316+ messages in thread
From: Tomas Chvatal @ 2012-11-29 15:31 UTC (permalink / raw
  To: gentoo-commits

commit:     83dd97e3b10170cbc3939595b36e101b92d1c588
Author:     Tomas Chvatal <tchvatal <AT> suse <DOT> cz>
AuthorDate: Thu Nov 29 15:31:24 2012 +0000
Commit:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
CommitDate: Thu Nov 29 15:31:24 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=83dd97e3

Learn about eapi5.

---
 check_eclasses_eapis.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index a5eb736..6ae63d2 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -11,7 +11,7 @@ fi
 
 [[ $(type pquery 2> /dev/null) ]] || exit 1
 
-KNOWN_EAPIS="0 1 2 3 4"
+KNOWN_EAPIS="0 1 2 3 4 5"
 TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
 TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
 pushd "$(portageq portdir)/eclass" > /dev/null


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2012-12-11 22:55 Jeremy Olexa
  0 siblings, 0 replies; 316+ messages in thread
From: Jeremy Olexa @ 2012-12-11 22:55 UTC (permalink / raw
  To: gentoo-commits

commit:     bc53f3c82f37f7940e17d22decf0eca978fb6e23
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 11 22:54:47 2012 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Tue Dec 11 22:54:47 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=bc53f3c8

use dot instead of neato, small touchups

Signed-off-by: Jeremy Olexa <darkside <AT> gentoo.org>

---
 gen-dev-wot.sh |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
index 81e70b0..a82541b 100755
--- a/gen-dev-wot.sh
+++ b/gen-dev-wot.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-# intentionally quiet script
+# silence the script by '&> /dev/null'
 
 if [[ -z "$1" ]]; then
 	echo "Usage: $0 </path/to/output/>"
@@ -20,13 +20,13 @@ wget -q -O -  http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml | \
 	egrep -o 0x[A-Z0-9]\{8\} > keys.txt
 
 /usr/bin/gpg -q --keyserver hkp://pool.sks-keyservers.net --recv-keys \
-	`cat keys.txt` &> /dev/null
+	`cat keys.txt`
 
-/usr/bin/gpg -q --export `cat keys.txt` > keys.gpg
+/usr/bin/gpg -q --no-default-keyring --list-sigs | \
+	/usr/bin/sig2dot -q -t "Gentoo Dev WoT" -s wot-stats.html \
+	> keys.dot
 
-/usr/bin/gpg -q --no-default-keyring  --keyring ./keys.gpg --list-sigs | \
-	/usr/bin/sig2dot -q -a -t "Gentoo Dev WoT" -s wot-stats.html 2> /dev/null | \
-	/usr/bin/neato -Gcharset=latin1 -Tpng > "${1}/wot-graph.png"
+/usr/bin/dot -Gcharset=latin1 -Tpng keys.dot > "${1}/wot-graph.png"
 
 mv wot-stats.html "${1}"
 rm -rf $GNUPGHOME


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2013-01-12 15:57 Tomas Chvatal
  0 siblings, 0 replies; 316+ messages in thread
From: Tomas Chvatal @ 2013-01-12 15:57 UTC (permalink / raw
  To: gentoo-commits

commit:     e9380a6851e07e910302b56fe5d5cdb646592448
Author:     Tomas Chvatal <tchvatal <AT> suse <DOT> cz>
AuthorDate: Sat Jan 12 15:57:08 2013 +0000
Commit:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
CommitDate: Sat Jan 12 15:57:08 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=e9380a68

Add also unsupported string for insanely fresh eapis.

---
 check_eclasses_eapis.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 6ae63d2..ba85db6 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -11,7 +11,7 @@ fi
 
 [[ $(type pquery 2> /dev/null) ]] || exit 1
 
-KNOWN_EAPIS="0 1 2 3 4 5"
+KNOWN_EAPIS="unsupported 0 1 2 3 4 5"
 TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
 TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
 pushd "$(portageq portdir)/eclass" > /dev/null


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2013-11-02 13:03 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2013-11-02 13:03 UTC (permalink / raw
  To: gentoo-commits

commit:     020c6e4b79cb0f612c99f8321c484b10d005a16c
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  2 13:03:36 2013 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Nov  2 13:03:36 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=020c6e4b

Replace pinspect by manual scanning of md5-cache.

Previous version can be restored when pkgcore will catch up on EAPI 5.

---
 eapi_usage.sh | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/eapi_usage.sh b/eapi_usage.sh
index 5b6a4c8..1e8b5f0 100755
--- a/eapi_usage.sh
+++ b/eapi_usage.sh
@@ -3,8 +3,25 @@
 # Boring 'script' that just uses pkgcore's pinspect command. Someday it would be
 # nice to graph this output, or maybe keep some running history?
 
-[[ $(type pinspect 2> /dev/null) ]] || exit 1
+#[[ $(type pinspect 2> /dev/null) ]] || exit 1
+#
+#pinspect eapi_usage /usr/portage
+
+find /usr/portage/metadata/md5-cache -type f -exec awk '
+    BEGINFILE { found=0 }
+    /^EAPI=/ { sub("EAPI=",""); eapi[$1]++; found=1; nextfile }
+    ENDFILE { if (!found) eapi[0]++ }
+    END { for (i in eapi) print i,eapi[i] }
+  ' '{}' '+' | awk '
+    { eapi[$1]+=$2; total+=$2 }
+    END {
+      for (i in eapi) {
+        s=""; for (j=1; j<eapi[i]*50./total+0.5; j++) s=s"#"
+        printf "EAPI %s: %7d ebuilds (%5.02f%%)  %s\n",
+               i, eapi[i], eapi[i]*100.0/total, s
+       }
+       printf "total:  %7d ebuilds\n", total
+    }'
 
-pinspect eapi_usage /usr/portage
 echo
 echo "Date generated: $(date)"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2013-11-02 14:06 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2013-11-02 14:06 UTC (permalink / raw
  To: gentoo-commits

commit:     d933c212232aee8086cc8aa1ef0904a5ed841f1b
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  2 14:07:57 2013 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Nov  2 14:07:57 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=d933c212

Sort output by EAPI usage.

---
 eapi_usage.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eapi_usage.sh b/eapi_usage.sh
index 1e8b5f0..3e72883 100755
--- a/eapi_usage.sh
+++ b/eapi_usage.sh
@@ -15,6 +15,7 @@ find /usr/portage/metadata/md5-cache -type f -exec awk '
   ' '{}' '+' | awk '
     { eapi[$1]+=$2; total+=$2 }
     END {
+      PROCINFO["sorted_in"]="@val_num_desc"
       for (i in eapi) {
         s=""; for (j=1; j<eapi[i]*50./total+0.5; j++) s=s"#"
         printf "EAPI %s: %7d ebuilds (%5.02f%%)  %s\n",


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-02-08 16:30 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2014-02-08 16:30 UTC (permalink / raw
  To: gentoo-commits

commit:     9b2496f2a230e8f29feda04e141ccd574858cb24
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  8 16:35:15 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb  8 16:35:15 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=9b2496f2

New script to find binary files based on file -i magic.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

---
 find-binary-files.sh | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/find-binary-files.sh b/find-binary-files.sh
new file mode 100755
index 0000000..17bdc0a
--- /dev/null
+++ b/find-binary-files.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+# Copyright 2014 Gentoo Foundation
+# Distributed under the terms of the GNU GPL version 2 or later
+# Author: Ulrich Müller <ulm@gentoo.org>
+
+shopt -s extglob
+
+portdir=$(portageq get_repo_path / gentoo)
+cd "${portdir}" || exit 1
+
+find . \( -path ./distfiles -o -path ./local -o -path ./metadata \) -prune \
+    -o ! -type d -exec file -ih '{}' + \
+| while read line; do
+    path=${line%:*}
+    type=${line##*:*( )}
+    case ${type} in
+        "application/octet-stream; charset=unknown" \
+        | "binary; charset=binary")
+            # GNU Info files (or patches to them) can contain the following
+            # control characters that produce false positives:
+            # - 0x1f, followed by LF or FF
+            # - 0x7f (DEL), preceded by "Node:" in the same line
+            # Filter such characters and reiterate
+            line=$(sed -e 's/\x1f\f\?$//;/Node:/s/\x7f//' "${path}" | file -i -)
+            type=${line##*:*( )}
+            ;;
+    esac
+    case ${type} in
+        text/*) ;;                            # text file
+        application/*"; charset=us-ascii") ;;
+        application/*"; charset=utf-8") ;;
+        "image/svg+xml; charset=us-ascii") ;; # SVG image
+        "image/x-xpmi; charset=us-ascii") ;;  # XPM image
+        *) echo "${path#./}: ${type}" ;;
+    esac
+done \
+| sort 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-02-08 21:30 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2014-02-08 21:30 UTC (permalink / raw
  To: gentoo-commits

commit:     047e530f5fafc660274b762754663ceaf111df13
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  8 21:34:59 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb  8 21:34:59 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=047e530f

Also exclude ./packages from find.

---
 find-binary-files.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index 17bdc0a..2bf73ab 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -8,7 +8,8 @@ shopt -s extglob
 portdir=$(portageq get_repo_path / gentoo)
 cd "${portdir}" || exit 1
 
-find . \( -path ./distfiles -o -path ./local -o -path ./metadata \) -prune \
+find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
+    -o -path ./packages \) -prune \
     -o ! -type d -exec file -ih '{}' + \
 | while read line; do
     path=${line%:*}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-02-08 21:34 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2014-02-08 21:34 UTC (permalink / raw
  To: gentoo-commits

commit:     f952955e1ba8375225731b7cda50258ef9b7b0bd
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  8 16:48:44 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb  8 21:38:01 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=f952955e

Fix a typo.

---
 README | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README b/README
index 5d85edf..025fd8f 100644
--- a/README
+++ b/README
@@ -23,7 +23,7 @@ Important details:
 
 Current runtimes:
 ================
-(As of 201-11-28)
+(As of 2012-11-28)
 
 - emerge --sync: hourly. Assume PORTDIR=/usr/portage (may change in future)
 - check_eclasses_eapis.sh: 4x daily


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-02-08 21:34 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2014-02-08 21:34 UTC (permalink / raw
  To: gentoo-commits

commit:     1ef6e31646c9aa064aa9233bf778c0ff18bfffb6
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  8 16:40:28 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb  8 21:38:01 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=1ef6e316

Delete find-binary-files.pl (replaced by shell script) and update README.

---
 README               |  2 +-
 find-binary-files.pl | 16 ----------------
 2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/README b/README
index f6f91f9..5d85edf 100644
--- a/README
+++ b/README
@@ -29,7 +29,7 @@ Current runtimes:
 - check_eclasses_eapis.sh: 4x daily
 - eapi_usage.sh: 2x daily
 - filesdir-usage.sh: daily
-- find-binary-files.pl: daily
+- find-binary-files.sh: daily
 - genrdeps, run-genrdeps-index.sh: hourly
 - mask_check.py: daily
 - packages-inheriting-eclasses.py: daily

diff --git a/find-binary-files.pl b/find-binary-files.pl
deleted file mode 100755
index 0d32c9e..0000000
--- a/find-binary-files.pl
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/perl
-
-# Matt Turner <mattst88@gentoo.org/gmail.com>
-# June 2010. For qa-reports.gentoo.org.
-
-use strict;
-use warnings;
-
-use File::Find;
-
-sub wanted {
-	!-d && ((-z && print "empty  file: $File::Find::name\n")
-		 || (-B && print "binary file: $File::Find::name\n"));
-}
-
-finddepth(\&wanted,  @ARGV);


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-02-24 16:17 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2014-02-24 16:17 UTC (permalink / raw
  To: gentoo-commits

commit:     722dde01e47da29dcb7894de3355e1787dd72a4e
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 24 16:23:06 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Feb 24 16:23:06 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=722dde01

find-binary-files.sh: Also report file size.

---
 find-binary-files.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index 2bf73ab..791649e 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -32,7 +32,10 @@ find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
         application/*"; charset=utf-8") ;;
         "image/svg+xml; charset=us-ascii") ;; # SVG image
         "image/x-xpmi; charset=us-ascii") ;;  # XPM image
-        *) echo "${path#./}: ${type}" ;;
+        *)
+            size=$(stat -c "%s" "${path}")
+            echo "${path#./}: ${type} (size=${size})"
+            ;;
     esac
 done \
 | sort 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-06-08 16:23 Michael Palimaka
  0 siblings, 0 replies; 316+ messages in thread
From: Michael Palimaka @ 2014-06-08 16:23 UTC (permalink / raw
  To: gentoo-commits

commit:     29ece55c0c90b5bbe8ab21ddd6e0363ea9bd053a
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  8 16:23:26 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Jun  8 16:23:26 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=29ece55c

depcheck: add script for checking binary runtime dependencies.

---
 depcheck | 258 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 258 insertions(+)

diff --git a/depcheck b/depcheck
new file mode 100755
index 0000000..15e171e
--- /dev/null
+++ b/depcheck
@@ -0,0 +1,258 @@
+#!/bin/bash
+#
+# Copyright (c) 2014 Michael Palimaka <kensington@gentoo.org>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#
+# A tool to report both undeclared and potentially-unused runtime dependencies.
+#
+# Depends on app-misc/pax-utils, app-portage/portage-utils and
+# sys-apps/gentoo-functions.
+
+DEBUG=FALSE
+IGNORE_DEPS=( "sys-libs/glibc" "sys-devel/gcc" )
+IGNORE_LINKS=( "/lib64/libgcc_s.so.1" )
+PKG_DIR="/var/db/pkg/"
+
+. /lib/gentoo/functions.sh
+
+bold() {
+	echo $@
+	return
+	local bold=$(tput bold)
+	local normal=$(tput sgr0)
+	echo "${bold}${@}${normal}"
+}
+
+debug() {
+	if [ $DEBUG = TRUE ]; then
+		# write to stderr so as not to interfere with function returns
+		echo "$@" 1>&2
+	fi
+}
+
+# app-foo/bar-1.2.3-r1 -> app-foo/bar
+remove_atom_version() {
+	local atom=`qatom "${1}" | cut -d " " -f 1-2 | tr " " /`
+	echo $atom
+}
+
+check_atom() {
+
+	local errors=0
+	local atom=$1
+	local checked=()
+	local rdepends=()
+
+	local objects=`qlist -qo ${atom}`
+
+	if [ ! "${objects}" ]; then
+		einfo ${atom} does not have any objects installed, skipping...
+		echo
+		return
+	fi
+
+	einfo Checking ${atom} for undeclared dependencies
+	eindent
+
+	local obj
+	for obj in $objects
+	do
+		debug "Checking ${obj}"
+
+		readelf -h ${obj} > /dev/null 2>&1
+
+		# can it have stuff linked to it?
+		if [ $? -ne 0 ]; then
+			debug "It can't have links, skipping"
+			continue
+		fi
+
+		local elf=`scanelf --format "#f%n" --nobanner --use-ldpath ${obj} 2>&1`
+		local links=`echo ${elf} | tr "," " "`
+
+		# get a list of everything that it's linked to
+		local link
+		for link in $links
+		do
+			local ignore
+			for ignore in "${IGNORE_LINKS[@]}"; do
+				if [ "${ignore}" = "${link}" ]; then
+					debug "Ignoring ${link} due to blacklist"
+					continue 2
+				fi
+			done
+
+			# only check a library once per atom for performance reasons
+			local check
+			for check in "${checked[@]}"; do
+				if [ "${check}" = "${link}" ]; then
+					debug "Already checked ${link} for this atom, skipping"
+					continue 2
+				fi
+			done
+
+			checked=( "${checked[@]}" "${link}" )
+
+			debug "Found ${link}"
+
+			local libowner=`qfile -vqC ${link} | uniq`
+
+			if [ ! "${libowner}" ]; then
+				ewarn "No package claims ${link} (${obj})"
+				continue
+			fi
+
+			debug "Owning package for ${link} is ${libowner}"
+
+			local libowner_pn=$(remove_atom_version ${libowner})
+			local my_pn=$(remove_atom_version ${atom})
+
+			rdepends+=( "${libowner_pn}" )
+
+			if [ "${libowner_pn}" = "${my_pn}" ]; then
+				debug "Owning package is self, ignoring"
+				continue
+			fi
+
+			local ignorelib
+			for ignorelib in "${IGNORE_DEPS[@]}"
+			do
+				if [ "${libowner_pn}" = "${ignorelib}" ]; then
+					debug "Ignoring objects belonging to ${ignorelib}"
+					continue 2
+				fi
+			done
+
+			debug "Checking if ${libowner_pn} is in the RDEPEND list of ${atom}"
+
+			local isdep
+			isdep=`qdepends -r ${atom} | grep ${libowner_pn}`
+
+			if [ $? -ne 0 ]; then
+				eerror "${obj} links to ${link}"
+				eindent
+				eerror Missing dependency on $(bold ${libowner_pn})
+				eoutdent
+				errors=1
+			fi
+
+
+		done
+
+	done
+
+	local ebuild_rdepends=()
+	for rdepend in $(qdepends --nocolor --quiet --rdepend ${atom} | sed -e "s/\[[^]]*\]//g" | cut -d : -f 2-)
+	do
+		ebuild_rdepends+=( $(remove_atom_version $rdepend) )
+	done
+
+	debug "Ebuild RDEPENDS: ${ebuild_rdepends[@]}"
+	debug "Linked RDEPENDS: ${rdepends[@]}"
+
+	local suspect_rdepends=$(comm -13 <(echo ${rdepends[@]} | sed 's/ /\n/g' | sort -u) <(echo ${ebuild_rdepends[@]} | sed 's/ /\n/g' | sort -u))
+	if [ "${suspect_rdepends}" ]; then
+		ewarn "Suspect RDEPEND: $(bold ${suspect_rdepends})"
+	fi
+
+	echo
+	eoutdent
+
+	return $errors
+
+}
+
+check_package() {
+
+	local package=$1
+	local atoms=`qlist -IcCS ${package} | tr ' ' '-' | cut -d : -f1`
+
+	debug Package ${package} own atoms: ${atoms}
+
+	if [ ! "${atoms}" ]; then
+		eerror ERROR: ${package} is not a valid atom
+		exit 1
+	fi
+
+	for atom in ${atoms}; do
+		check_atom ${atom}
+	done
+
+}
+
+check_category() {
+
+	local errors=0
+	
+	for package in `ls "${PKG_DIR}/${1}"`; do
+	
+		check_package "${1}/${package}"
+		
+		if [ $? -ne 0 ]; then
+			errors=1
+		fi
+		
+	done;
+	
+	return $errors
+	
+}
+
+BINNAME=`basename ${0}`
+if [ -z $1 ]; then
+	echo "Checks emerged package(s) for undeclared depedencies"
+	echo
+        echo "Usage: ${BINNAME} [ atom | -c category | -a ]"
+	echo
+        echo "Examples:"
+	echo "Check a single package: ${BINNAME} app-foo/bar-1.2.3"
+	echo "Check a category: ${BINNAME} -c app-foo"
+	echo "Check everything: ${BINNAME} -a"
+	exit 1
+fi
+
+# check a particular category
+if [ "$1" = "-c" ]; then
+
+	CAT=$2
+
+	if [ ! -d "${PKG_DIR}/${CAT}" ]; then
+		eerror ERROR: No packages from the category ${CAT} have been emerged yet
+		exit 1
+	fi
+
+	check_category $CAT
+
+# check everything
+elif [ "$1" = "-a" ]; then
+
+	for category in `ls ${PKG_DIR}`; do
+		check_category $category
+	done;
+
+else
+	check_package $1
+fi
+
+if [ $? -eq 0 ]; then
+	einfo Checking complete, no errors found
+else
+	eerror Checking complete, errors found
+fi


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-06-16 12:17 Michael Palimaka
  0 siblings, 0 replies; 316+ messages in thread
From: Michael Palimaka @ 2014-06-16 12:17 UTC (permalink / raw
  To: gentoo-commits

commit:     1e38d7db59f0ead969465ce01b2f894f96be447a
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 16 12:15:56 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Mon Jun 16 12:15:56 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=1e38d7db

depcheck: don't report blockers in RDEPEND check.

---
 depcheck | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/depcheck b/depcheck
index 15e171e..39cd29c 100755
--- a/depcheck
+++ b/depcheck
@@ -161,6 +161,10 @@ check_atom() {
 	local ebuild_rdepends=()
 	for rdepend in $(qdepends --nocolor --quiet --rdepend ${atom} | sed -e "s/\[[^]]*\]//g" | cut -d : -f 2-)
 	do
+		if [[ ${rdepend} = !* ]] ; then
+			debug Skipping blocker: ${rdepend}
+			continue
+		fi
 		ebuild_rdepends+=( $(remove_atom_version $rdepend) )
 	done
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-06-28 22:49 Jorge Manuel B. S. Vicetto
  0 siblings, 0 replies; 316+ messages in thread
From: Jorge Manuel B. S. Vicetto @ 2014-06-28 22:49 UTC (permalink / raw
  To: gentoo-commits

commit:     46ccbab9e840af610068c3fe15a2105c2871de89
Author:     Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 28 22:45:34 2014 +0000
Commit:     Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Sat Jun 28 22:45:34 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=46ccbab9

Replace the call of "portageq portdir" with "portageq get_repo_path / gentoo".

Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo.org>

---
 check_eclasses_eapis.sh | 2 +-
 filesdir-usage.sh       | 2 +-
 portqa                  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index ba85db6..86aa083 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -14,7 +14,7 @@ fi
 KNOWN_EAPIS="unsupported 0 1 2 3 4 5"
 TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
 TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
-pushd "$(portageq portdir)/eclass" > /dev/null
+pushd "$(portageq get_repo_path / gentoo)/eclass" > /dev/null
 ECLASSES=$(echo *.eclass)
 popd > /dev/null
 pquery --attr eapi --attr inherited --raw --all --repo portdir > "${TMPEAPIS}"

diff --git a/filesdir-usage.sh b/filesdir-usage.sh
index 920b5af..d3ecd9b 100755
--- a/filesdir-usage.sh
+++ b/filesdir-usage.sh
@@ -3,7 +3,7 @@
 # $1 is a number, N. The top N directories that are consuming space. Defaults to
 # all.
 
-pushd $(portageq portdir) >/dev/null
+pushd $(portageq get_repo_path / gentoo) >/dev/null
 if [[ -z $1 ]]; then
 	du -h */*/files | sort -nr
 else

diff --git a/portqa b/portqa
index d617a41..5bf48e2 100755
--- a/portqa
+++ b/portqa
@@ -16,7 +16,7 @@ else
 fi
 
 #-c pkgcore_checks.imlate \
-pushd "$(portageq portdir)" > /dev/null
+pushd "$(portageq get_repo_path / gentoo)" > /dev/null
 package=$(pquery ${target} --repo=portdir --no-version | tr '\n' ' ')
 pcheck -c pkgcore_checks.deprecated \
 	-c pkgcore_checks.whitespace \


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-08-23 22:05 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2014-08-23 22:05 UTC (permalink / raw
  To: gentoo-commits

commit:     2b7a91d4d00e483594b9b2561ba97ec131d036ae
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 23 22:05:47 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Aug 23 22:05:47 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=2b7a91d4

find-binary-files.sh: Remove false positives for GNU Info files.

---
 find-binary-files.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index 791649e..ccff2d6 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -15,7 +15,8 @@ find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
     path=${line%:*}
     type=${line##*:*( )}
     case ${type} in
-        "application/octet-stream; charset=unknown" \
+        "application/octet-stream; charset=binary" \
+        | "application/octet-stream; charset=unknown" \
         | "binary; charset=binary")
             # GNU Info files (or patches to them) can contain the following
             # control characters that produce false positives:


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-08-24 10:48 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2014-08-24 10:48 UTC (permalink / raw
  To: gentoo-commits

commit:     aa858c1185dfffe26c94eea780d3ccb716723d5f
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 24 10:45:15 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 24 10:45:15 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=aa858c11

check_eclasses_eapis.sh: Replace pquery call by find/awk command.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

---
 check_eclasses_eapis.sh | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 86aa083..03349e2 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -9,15 +9,35 @@ else
 	DIR=$(pwd)
 fi
 
-[[ $(type pquery 2> /dev/null) ]] || exit 1
+#[[ $(type pquery 2> /dev/null) ]] || exit 1
 
 KNOWN_EAPIS="unsupported 0 1 2 3 4 5"
 TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
 TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
-pushd "$(portageq get_repo_path / gentoo)/eclass" > /dev/null
+REPO_PATH=$(portageq get_repo_path / gentoo)
+pushd "${REPO_PATH}/eclass" > /dev/null
 ECLASSES=$(echo *.eclass)
 popd > /dev/null
-pquery --attr eapi --attr inherited --raw --all --repo portdir > "${TMPEAPIS}"
+
+#pquery --attr eapi --attr inherited --raw --all --repo portdir > "${TMPEAPIS}"
+find "${REPO_PATH}/metadata/md5-cache" -type f -exec awk -F= '
+	BEGINFILE {
+		n = split(FILENAME, f, "/")
+		file = f[n-1] "/" f[n]
+		eapi = "0"
+		n_eclasses = 0
+	}
+	$1 == "EAPI" { eapi = $2 }
+	$1 == "_eclasses_" { n_eclasses = split($2, eclasses, "\t") }
+	ENDFILE {
+		printf "%s eapi=\"%s\" inherited=\"", file, eapi
+		for (i = 1; i <= n_eclasses; i += 2) {
+			if (i != 1) printf " "
+			printf "%s", eclasses[i]
+		}
+		printf "\"\n"
+	}
+	' '{}' \+ > "${TMPEAPIS}"
 
 pushd ${DIR} > /dev/null
 rm -rf *.eclass


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-08-24 10:58 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2014-08-24 10:58 UTC (permalink / raw
  To: gentoo-commits

commit:     7c8b2541c46dd10689b4414e71c2c44ff26fcf4a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 24 10:58:32 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 24 10:58:32 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=7c8b2541

check_eclasses_eapis.sh: There is no "unsupported" EAPI.

---
 check_eclasses_eapis.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 03349e2..97230f0 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -11,7 +11,7 @@ fi
 
 #[[ $(type pquery 2> /dev/null) ]] || exit 1
 
-KNOWN_EAPIS="unsupported 0 1 2 3 4 5"
+KNOWN_EAPIS="0 1 2 3 4 5"
 TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
 TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
 REPO_PATH=$(portageq get_repo_path / gentoo)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-08-24 12:09 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2014-08-24 12:09 UTC (permalink / raw
  To: gentoo-commits

commit:     6ed8b919cbe7a41804a84ca2c5a5c0b20ac8a3c7
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 24 12:09:43 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 24 12:09:43 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=6ed8b919

gen-dev-wot.sh: Accept keys with 8 or 16 hex digits.

---
 gen-dev-wot.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
index a82541b..fc66d30 100755
--- a/gen-dev-wot.sh
+++ b/gen-dev-wot.sh
@@ -17,7 +17,7 @@ export GNUPGHOME=$(mktemp -d --suffix=$(basename $0))
 cd $GNUPGHOME || exit 1
 
 wget -q -O -  http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml | \
-	egrep -o 0x[A-Z0-9]\{8\} > keys.txt
+	egrep -o '0x([A-Z0-9]{8}){1,2}' > keys.txt
 
 /usr/bin/gpg -q --keyserver hkp://pool.sks-keyservers.net --recv-keys \
 	`cat keys.txt`


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-08-28  3:48 Michael Palimaka
  0 siblings, 0 replies; 316+ messages in thread
From: Michael Palimaka @ 2014-08-28  3:48 UTC (permalink / raw
  To: gentoo-commits

commit:     b37f1aec13985ec672e5eccd3447491fae202bcf
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 28 03:47:48 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Aug 28 03:47:48 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=b37f1aec

depcheck: use simple virtual resolution in suspect RDEPEND check too.

---
 depcheck | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/depcheck b/depcheck
index 549fe52..e715e81 100755
--- a/depcheck
+++ b/depcheck
@@ -59,6 +59,7 @@ check_atom() {
 	local atom=$1
 	local checked=()
 	local rdepends=()
+	local used_virtuals=()
 
 	local objects=`qlist -qo ${atom}`
 
@@ -154,6 +155,7 @@ check_atom() {
 					local isvirtualdep=$(qdepends -r ${atom} | grep ${virtual})
 
 					if [ $? -eq 0 ]; then
+						used_virtuals+=( ${virtual} )
 						continue 2
 					fi
 				done
@@ -176,6 +178,14 @@ check_atom() {
 		if [[ ${rdepend} = !* ]] ; then
 			debug Skipping blocker: ${rdepend}
 			continue
+		elif [[ ${rdepend} = virtual/* ]] ; then
+			for virtual in "${used_virtuals[@]}"
+			do
+				if [[ ${virtual} == $(remove_atom_version ${rdepend}) ]]; then
+					debug Skipping virtual: ${rdepend}
+					continue 2
+				fi
+			done
 		fi
 		ebuild_rdepends+=( $(remove_atom_version $rdepend) )
 	done


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-08-28  3:48 Michael Palimaka
  0 siblings, 0 replies; 316+ messages in thread
From: Michael Palimaka @ 2014-08-28  3:48 UTC (permalink / raw
  To: gentoo-commits

commit:     d23d93380b5e9beccde37b016e4490a32de7db04
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 28 03:19:40 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Aug 28 03:19:40 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=d23d9338

depcheck: add simple virtual resolution.

---
 depcheck | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/depcheck b/depcheck
index 39cd29c..549fe52 100755
--- a/depcheck
+++ b/depcheck
@@ -146,6 +146,18 @@ check_atom() {
 			isdep=`qdepends -r ${atom} | grep ${libowner_pn}`
 
 			if [ $? -ne 0 ]; then
+
+				debug Checking if ${libowner_pn} is provided by a virtual
+				for virtual in $(qdepends --nocolor --name-only --rdepend --query ${libowner_pn} | grep ^virtual/)
+				do
+					debug Checking if ${virtual} is in dependencies
+					local isvirtualdep=$(qdepends -r ${atom} | grep ${virtual})
+
+					if [ $? -eq 0 ]; then
+						continue 2
+					fi
+				done
+
 				eerror "${obj} links to ${link}"
 				eindent
 				eerror Missing dependency on $(bold ${libowner_pn})


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-08-28 13:54 Richard Farina
  0 siblings, 0 replies; 316+ messages in thread
From: Richard Farina @ 2014-08-28 13:54 UTC (permalink / raw
  To: gentoo-commits

commit:     686c9b28adc4727315aee66cd4743313db525a8c
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 28 13:54:37 2014 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Thu Aug 28 13:54:37 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=686c9b28

whitespace fixes so my hilighting looks normal

---
 depcheck | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/depcheck b/depcheck
index e715e81..a0b022b 100755
--- a/depcheck
+++ b/depcheck
@@ -226,19 +226,19 @@ check_package() {
 check_category() {
 
 	local errors=0
-	
+
 	for package in `ls "${PKG_DIR}/${1}"`; do
-	
+
 		check_package "${1}/${package}"
-		
+
 		if [ $? -ne 0 ]; then
 			errors=1
 		fi
-		
+
 	done;
-	
+
 	return $errors
-	
+
 }
 
 BINNAME=`basename ${0}`


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-08-28 18:12 Richard Farina
  0 siblings, 0 replies; 316+ messages in thread
From: Richard Farina @ 2014-08-28 18:12 UTC (permalink / raw
  To: gentoo-commits

commit:     d42fd5d52857b10afaf0abc4a9a0f5fff20dde04
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 28 18:11:24 2014 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Thu Aug 28 18:11:24 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=d42fd5d5

cleanup logic from b90b4fb30b9f9b0b37c8804d770dcc4

---
 depcheck | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/depcheck b/depcheck
index 87fdacb..3e881c4 100755
--- a/depcheck
+++ b/depcheck
@@ -200,9 +200,11 @@ check_atom() {
 		ewarn "Suspect RDEPEND: $(bold ${suspect_rdepends})"
 	fi
 
-	if [ -n "${CAT}" ]; then
+	if [ -z "${INSIDE_PORTAGE}" ]; then
 		eoutdent
-		echo
+		if [ -n "${CAT}" ]; then
+			echo
+		fi
 	fi
 
 	return $errors


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-09-05 19:02 Richard Farina
  0 siblings, 0 replies; 316+ messages in thread
From: Richard Farina @ 2014-09-05 19:02 UTC (permalink / raw
  To: gentoo-commits

commit:     e88f209f5a7e1f634bbe1722d0260bb495d8c845
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  5 19:03:12 2014 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Fri Sep  5 19:03:12 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=e88f209f

make unpackaged missing dep a bit prettier

---
 depcheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/depcheck b/depcheck
index 3e881c4..64e6074 100755
--- a/depcheck
+++ b/depcheck
@@ -118,7 +118,7 @@ check_atom() {
 			local libowner=`qfile -vqC ${link} | uniq`
 
 			if [ ! "${libowner}" ]; then
-				ewarn "No package claims ${link} (${obj})"
+				ewarn "Warning: installed file ${obj} is linked to ${link} which is not owned by any installed atom."
 				continue
 			fi
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-09-08 21:09 Richard Farina
  0 siblings, 0 replies; 316+ messages in thread
From: Richard Farina @ 2014-09-08 21:09 UTC (permalink / raw
  To: gentoo-commits

commit:     3676bd601c6944580046747974276367a80e66b2
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  8 21:09:49 2014 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Mon Sep  8 21:09:49 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=3676bd60

reword "Missing depend" message.

we are actually checking rdeps here, so fix the message to not confuse.

---
 depcheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/depcheck b/depcheck
index 64e6074..e521c66 100755
--- a/depcheck
+++ b/depcheck
@@ -164,7 +164,7 @@ check_atom() {
 
 				eerror "${obj} links to ${link}"
 				eindent
-				eerror Missing dependency on $(bold ${libowner_pn})
+				eerror Missing RDEPEND on $(bold ${libowner_pn})
 				eoutdent
 				errors=1
 			fi


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-09-23 17:37 Richard Farina
  0 siblings, 0 replies; 316+ messages in thread
From: Richard Farina @ 2014-09-23 17:37 UTC (permalink / raw
  To: gentoo-commits

commit:     dc6fbcd2f651e66195a5fe2ae7092bb53b06c5bc
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 23 17:37:34 2014 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Tue Sep 23 17:37:34 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=dc6fbcd2

add explicit dep check

previously we were checking only rdeps, but this was confusing since
sometimes rdeps are missing, sometimes deps are missing, and sometimes
both are missing. Explicit is best, so let's call things what they are.
If the user wants less output, they could always fix their ebuilds.

---
 depcheck | 50 ++++++++++++++++++++++++++++++--------------------
 1 file changed, 30 insertions(+), 20 deletions(-)

diff --git a/depcheck b/depcheck
index e521c66..dae0cd9 100755
--- a/depcheck
+++ b/depcheck
@@ -53,6 +53,28 @@ remove_atom_version() {
 	echo $atom
 }
 
+virtualcheck() {
+	debug Checking if ${libowner_pn} is provided by a virtual
+	for virtual in $(qdepends --nocolor --name-only --${1} --query ${libowner_pn} | grep ^virtual/)
+	do
+		debug Checking if ${virtual} is in dependencies
+		local isvirtualdep=$(qdepends --${1} ${atom} | grep ${virtual})
+
+		if [ $? -eq 0 ]; then
+			used_virtuals+=( ${virtual} )
+			continue 2
+		fi
+	done
+
+	if [ "${1}" = "depend" ]; then
+		eerror "${obj} links to ${link}"
+	fi
+	eindent
+	eerror Missing ${1^^} on $(bold ${libowner_pn})
+	eoutdent
+	errors=1
+}
+
 check_atom() {
 
 	local errors=0
@@ -143,30 +165,18 @@ check_atom() {
 				fi
 			done
 
-			debug "Checking if ${libowner_pn} is in the RDEPEND list of ${atom}"
+			debug "Checking if ${libowner_pn} is in the [R]DEPEND list of ${atom}"
 
 			local isdep
-			isdep=`qdepends -r ${atom} | grep ${libowner_pn}`
-
+			isdep=`qdepends -d ${atom} | grep ${libowner_pn}`
 			if [ $? -ne 0 ]; then
+				virtualcheck depend
+			fi
 
-				debug Checking if ${libowner_pn} is provided by a virtual
-				for virtual in $(qdepends --nocolor --name-only --rdepend --query ${libowner_pn} | grep ^virtual/)
-				do
-					debug Checking if ${virtual} is in dependencies
-					local isvirtualdep=$(qdepends -r ${atom} | grep ${virtual})
-
-					if [ $? -eq 0 ]; then
-						used_virtuals+=( ${virtual} )
-						continue 2
-					fi
-				done
-
-				eerror "${obj} links to ${link}"
-				eindent
-				eerror Missing RDEPEND on $(bold ${libowner_pn})
-				eoutdent
-				errors=1
+			local isrdep
+			isrdep=`qdepends -r ${atom} | grep ${libowner_pn}`
+			if [ $? -ne 0 ]; then
+				virtualcheck rdepend
 			fi
 
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-09-24 16:43 Michael Palimaka
  0 siblings, 0 replies; 316+ messages in thread
From: Michael Palimaka @ 2014-09-24 16:43 UTC (permalink / raw
  To: gentoo-commits

commit:     bf90e71df4e003dada5464a941a20f4c70a4c755
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 24 16:40:19 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Sep 24 16:43:21 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=bf90e71d

depcheck: ensure that missing RDEPEND is also reported during a virtual check

It was failing due to a difference in return code handling:
	a() {
        	local x=$(false)
	        echo $?
	}

	b() {
        	local x
	        x=$(false)
        	echo $?
	}
	a
	b

returning:
	0
	1

---
 depcheck | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/depcheck b/depcheck
index dae0cd9..93abeb1 100755
--- a/depcheck
+++ b/depcheck
@@ -58,7 +58,8 @@ virtualcheck() {
 	for virtual in $(qdepends --nocolor --name-only --${1} --query ${libowner_pn} | grep ^virtual/)
 	do
 		debug Checking if ${virtual} is in dependencies
-		local isvirtualdep=$(qdepends --${1} ${atom} | grep ${virtual})
+		local isvirtualdep
+		isvirtualdep=$(qdepends --${1} ${atom} | grep ${virtual})
 
 		if [ $? -eq 0 ]; then
 			used_virtuals+=( ${virtual} )


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-09-24 17:30 Michael Palimaka
  0 siblings, 0 replies; 316+ messages in thread
From: Michael Palimaka @ 2014-09-24 17:30 UTC (permalink / raw
  To: gentoo-commits

commit:     62961bdcb071b6e00418aabbbbfcb4601196ea42
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 24 17:27:42 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Sep 24 17:27:42 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=62961bdc

depcheck: resolve an issue where missing RDEPEND is not reported.

---
 depcheck | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/depcheck b/depcheck
index 93abeb1..265615c 100755
--- a/depcheck
+++ b/depcheck
@@ -55,7 +55,7 @@ remove_atom_version() {
 
 virtualcheck() {
 	debug Checking if ${libowner_pn} is provided by a virtual
-	for virtual in $(qdepends --nocolor --name-only --${1} --query ${libowner_pn} | grep ^virtual/)
+	for virtual in $(qdepends --nocolor --name-only --rdepend --query ${libowner_pn} | grep ^virtual/)
 	do
 		debug Checking if ${virtual} is in dependencies
 		local isvirtualdep
@@ -63,16 +63,20 @@ virtualcheck() {
 
 		if [ $? -eq 0 ]; then
 			used_virtuals+=( ${virtual} )
-			continue 2
+			local resolved=true
+			break
 		fi
 	done
 
-	if [ "${1}" = "depend" ]; then
-		eerror "${obj} links to ${link}"
+	if [[ ! ${resolved} ]]; then
+		if [ "${1}" = "depend" ]; then
+			eerror "${obj} links to ${link}"
+		fi
+		eindent
+		eerror Missing ${1^^} on $(bold ${libowner_pn})
+		eoutdent
 	fi
-	eindent
-	eerror Missing ${1^^} on $(bold ${libowner_pn})
-	eoutdent
+
 	errors=1
 }
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-10-28 17:11 Richard Farina
  0 siblings, 0 replies; 316+ messages in thread
From: Richard Farina @ 2014-10-28 17:11 UTC (permalink / raw
  To: gentoo-commits

commit:     e811a9d7c4e31dbbff9eabb0d76ebb8d700d09e6
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 28 17:12:27 2014 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Tue Oct 28 17:12:27 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=e811a9d7

dereference symlinks when needed

sometimes things like eselect manipulate symlinks that packages are
linked to, we need to dereference those symlinks to find the real
package to verify the deps

---
 depcheck | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/depcheck b/depcheck
index 265615c..1f669f9 100755
--- a/depcheck
+++ b/depcheck
@@ -145,8 +145,14 @@ check_atom() {
 			local libowner=`qfile -vqC ${link} | uniq`
 
 			if [ ! "${libowner}" ]; then
-				ewarn "Warning: installed file ${obj} is linked to ${link} which is not owned by any installed atom."
-				continue
+				local dereferenced=`qfile -vqC $(readlink -f ${link}) | uniq`
+				if [ "${dereferenced}" ]; then
+					debug "Deferenced symlink and found real lib owner"
+					libowner=${dereferenced}
+				else
+					ewarn "Warning: installed file ${obj} is linked to ${link} which is not owned by any installed atom."
+					continue
+				fi
 			fi
 
 			debug "Owning package for ${link} is ${libowner}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2014-11-24 17:10 Pavlos Ratis
  0 siblings, 0 replies; 316+ messages in thread
From: Pavlos Ratis @ 2014-11-24 17:10 UTC (permalink / raw
  To: gentoo-commits

commit:     6be76dbe08c507fc54079ddbc26866bde80fc936
Author:     Pavlos Ratis <dastergon <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 24 13:11:07 2014 +0000
Commit:     Pavlos Ratis <dastergon <AT> gentoo <DOT> org>
CommitDate: Mon Nov 24 13:15:39 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=6be76dbe

fix packages-inheriting-eclasses script from failing getting timestamp

Pkgcore doesn't support repos.conf yet. As a result it fails
to get the timestamp from syncer.
I switched timestamp handling from pkgcore to os.path.getmtime.

Signed-off-by: Pavlos Ratis <dastergon <AT> gentoo.org>

---
 packages-inheriting-eclasses.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index c2ae5ae..eace643 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -49,7 +49,7 @@ def main(argv):
 			<li><a href="/">/ (go back)</a></li>
 		</ul>
 	</body>
-</html>''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(c.syncer['sync:%s' % portdir.location].current_timestamp()), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
+</html>''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(os.path.getmtime(portdir.location)).strftime("%a %b %d %Y %H:%M:%S"), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
 	f.close()
 
 	return 0


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-04-24 16:38 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2015-04-24 16:38 UTC (permalink / raw
  To: gentoo-commits

commit:     87f00cc87400b9d0621d547f48911d0af6285596
Author:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 18 10:41:25 2015 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Apr 24 16:37:48 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=87f00cc8

maintainer-needed.sh: Add script to list maintainer-needed packages

Replacement for
https://wwwold.gentoo.org/proj/en/qa/treecleaners/maintainer-needed.xml

 maintainer-needed.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/maintainer-needed.sh b/maintainer-needed.sh
new file mode 100755
index 0000000..e2c189b
--- /dev/null
+++ b/maintainer-needed.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+# Copyright 2015 Gentoo Foundation
+# Distributed under the terms of the GNU GPL version 2 or later
+# Author: Markos Chandras <hwoarang@gentoo.org>
+
+tmpfile="/tmp/mn-pkglist$$.tmp"
+
+cleanup () {
+	[[ -e ${tmpfile} ]] && rm ${tmpfile}
+}
+
+portageq --maintainer-email=maintainer-needed@gentoo.org -n > ${tmpfile} || { cleanup; exit 1; }
+
+echo """
+<html>
+	<head>
+		<style type=\"text/css\"> li a { font-family: monospace; display: block; float: left; }</style>
+		<title>Orphan packages</title>
+	</head>
+	<body>
+		List generated on $(date)<br/>
+		Total packages: <b>$(wc -l ${tmpfile} | cut -d ' '  -f1)</b><br/><br/>
+		<table>
+			<tr>
+				<th>Package Name</th>
+				<th>Description</th>
+				<th>Open bugs</th>
+			</tr>
+"""
+
+while read pkg; do
+	echo """
+			<tr>
+				<td>${pkg}</td>
+				<td>$(pquery --one-attr description ${pkg} | tail -n 1)</td>
+				<td><a href=\"https://bugs.gentoo.org/buglist.cgi?quicksearch=${pkg}\">Open Bugs</a></td>
+			</tr>
+	"""
+done < ${tmpfile}
+
+echo """
+		</table>
+	</body>
+</html>
+"""
+
+cleanup
+
+exit 0


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-04-24 16:46 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2015-04-24 16:46 UTC (permalink / raw
  To: gentoo-commits

commit:     621e45af7ca5d45225c14392c53915fcdd011927
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 24 16:46:29 2015 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Apr 24 16:46:29 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=621e45af

check_eclasses_eapis.sh: Don't hardcode known EAPIs.

 check_eclasses_eapis.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 97230f0..218f01a 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -11,7 +11,6 @@ fi
 
 #[[ $(type pquery 2> /dev/null) ]] || exit 1
 
-KNOWN_EAPIS="0 1 2 3 4 5"
 TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
 TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
 REPO_PATH=$(portageq get_repo_path / gentoo)
@@ -39,6 +38,11 @@ find "${REPO_PATH}/metadata/md5-cache" -type f -exec awk -F= '
 	}
 	' '{}' \+ > "${TMPEAPIS}"
 
+KNOWN_EAPIS=$(awk '
+	{ e = gensub(/eapi="(.*)"/, "\\1", "", $2); eapi[e] = e }
+	END { PROCINFO["sorted_in"]="@ind_num_asc"; for (e in eapi) print e }
+	' "${TMPEAPIS}")
+
 pushd ${DIR} > /dev/null
 rm -rf *.eclass
 for x in ${ECLASSES}; do


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-04-25 12:29 Markos Chandras
  0 siblings, 0 replies; 316+ messages in thread
From: Markos Chandras @ 2015-04-25 12:29 UTC (permalink / raw
  To: gentoo-commits

commit:     96a8ba192b5157dbc1af08b245587cd46f757074
Author:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 25 12:04:41 2015 +0000
Commit:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
CommitDate: Sat Apr 25 12:29:15 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=96a8ba19

maintainer-needed.sh: Pass --no-filters to portageq

Pass --no-filters to portageq in order to ignore
ACCEPT_{KEYWORDS,LICENSE}, package.mask files etc.

 maintainer-needed.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maintainer-needed.sh b/maintainer-needed.sh
index e2c189b..1488e0b 100755
--- a/maintainer-needed.sh
+++ b/maintainer-needed.sh
@@ -9,7 +9,7 @@ cleanup () {
 	[[ -e ${tmpfile} ]] && rm ${tmpfile}
 }
 
-portageq --maintainer-email=maintainer-needed@gentoo.org -n > ${tmpfile} || { cleanup; exit 1; }
+portageq --no-filters --maintainer-email=maintainer-needed@gentoo.org -n > ${tmpfile} || { cleanup; exit 1; }
 
 echo """
 <html>


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-04-25 12:29 Markos Chandras
  0 siblings, 0 replies; 316+ messages in thread
From: Markos Chandras @ 2015-04-25 12:29 UTC (permalink / raw
  To: gentoo-commits

commit:     d772bce157c85caa776b254ed6ce74a86b6c459f
Author:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 25 12:05:48 2015 +0000
Commit:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
CommitDate: Sat Apr 25 12:29:15 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d772bce1

maintainer-needed.sh: Pass --no-version to pquery

Use --no-version with pquery in order to avoid the extra 'tail' call.

 maintainer-needed.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maintainer-needed.sh b/maintainer-needed.sh
index 1488e0b..b883614 100755
--- a/maintainer-needed.sh
+++ b/maintainer-needed.sh
@@ -32,7 +32,7 @@ while read pkg; do
 	echo """
 			<tr>
 				<td>${pkg}</td>
-				<td>$(pquery --one-attr description ${pkg} | tail -n 1)</td>
+				<td>$(pquery --no-version --one-attr description ${pkg})</td>
 				<td><a href=\"https://bugs.gentoo.org/buglist.cgi?quicksearch=${pkg}\">Open Bugs</a></td>
 			</tr>
 	"""


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-05-10 12:07 Alexey Lapitsky
  0 siblings, 0 replies; 316+ messages in thread
From: Alexey Lapitsky @ 2015-05-10 12:07 UTC (permalink / raw
  To: gentoo-commits

commit:     9215c9140379b16e93179bc151a149b2ef8bea5d
Author:     Alexey Lapitsky <vzctl <AT> gentoo <DOT> org>
AuthorDate: Sun May 10 12:06:13 2015 +0000
Commit:     Alexey Lapitsky <vzctl <AT> gentoo <DOT> org>
CommitDate: Sun May 10 12:06:13 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=9215c914

firewalls workaround for gen-dev-wot.sh

 gen-dev-wot.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
index fc66d30..dd3d88a 100755
--- a/gen-dev-wot.sh
+++ b/gen-dev-wot.sh
@@ -19,7 +19,8 @@ cd $GNUPGHOME || exit 1
 wget -q -O -  http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml | \
 	egrep -o '0x([A-Z0-9]{8}){1,2}' > keys.txt
 
-/usr/bin/gpg -q --keyserver hkp://pool.sks-keyservers.net --recv-keys \
+# Looks like all the outgoing connections to port 11371 are blocked from scrubfowl
+/usr/bin/gpg -q --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys \
 	`cat keys.txt`
 
 /usr/bin/gpg -q --no-default-keyring --list-sigs | \


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-08-23  9:01 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2015-08-23  9:01 UTC (permalink / raw
  To: gentoo-commits

commit:     95c45bc28b70b340a284f9b81f4bd66e05d88dcb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 23 09:01:16 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 23 09:01:16 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=95c45bc2

packages-inheriting-eclasses.py: Update for pkgcore-0.9.1

 packages-inheriting-eclasses.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index eace643..13d72bc 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -1,7 +1,7 @@
 #!/usr/bin/python
 
 import collections, datetime, os, os.path, sys
-import pkgcore.config # tested with pkgcore-0.7.7.8
+import pkgcore.config # tested with pkgcore-0.9.1
 
 def main(argv):
 	try:
@@ -11,7 +11,7 @@ def main(argv):
 		return 1
 
 	c = pkgcore.config.load_config()
-	portdir = c.repo['portdir']
+	portdir = c.repo['/usr/portage']
 
 	output = collections.defaultdict(set)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-09-05 15:06 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2015-09-05 15:06 UTC (permalink / raw
  To: gentoo-commits

commit:     f87fb73d14dd0a7d3099ad235b826c793b16fecf
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  5 15:04:45 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep  5 15:04:45 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f87fb73d

Add a script to fetch remote check reports from git repos

 fetch-git-reports.sh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/fetch-git-reports.sh b/fetch-git-reports.sh
new file mode 100755
index 0000000..892b5ac
--- /dev/null
+++ b/fetch-git-reports.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# (c) 2015 Michał Górny
+# 2-clause BSD licensed
+
+set -e -x
+
+outputdir=${1}
+
+[[ ${outputdir} ]]
+cd "${outputdir}"
+
+for repo in gentoo-ci gpyutils repos; do
+	[[ -d ${repo} ]] || git clone --depth=1 "git://anongit.gentoo.org/report/${repo}.git"
+
+	cd "${repo}"
+	git pull
+	cd - >/dev/null
+done


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-09-07 16:01 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2015-09-07 16:01 UTC (permalink / raw
  To: gentoo-commits

commit:     1f34c2671462eca729ab91b10308b399cb072d42
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  7 16:01:31 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep  7 16:01:31 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1f34c267

fetch-git-reports: Fetch all branches

 fetch-git-reports.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fetch-git-reports.sh b/fetch-git-reports.sh
index 892b5ac..ae1bc27 100755
--- a/fetch-git-reports.sh
+++ b/fetch-git-reports.sh
@@ -13,6 +13,7 @@ for repo in gentoo-ci gpyutils repos; do
 	[[ -d ${repo} ]] || git clone --depth=1 "git://anongit.gentoo.org/report/${repo}.git"
 
 	cd "${repo}"
+	git fetch origin '+refs/heads/*:refs/remotes/origin/*'
 	git pull
 	cd - >/dev/null
 done


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-10-10 22:19 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2015-10-10 22:19 UTC (permalink / raw
  To: gentoo-commits

commit:     c77e06ffac4dcc221b9cf8b6219d945ec0ae6ffa
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 10 22:17:15 2015 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Oct 10 22:17:15 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c77e06ff

find-binary-files.sh: More false positives for GNU Info files.

 find-binary-files.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index ccff2d6..98346de 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 2014 Gentoo Foundation
+# Copyright 2014-2015 Gentoo Foundation
 # Distributed under the terms of the GNU GPL version 2 or later
 # Author: Ulrich Müller <ulm@gentoo.org>
 
@@ -21,9 +21,10 @@ find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
             # GNU Info files (or patches to them) can contain the following
             # control characters that produce false positives:
             # - 0x1f, followed by LF or FF
-            # - 0x7f (DEL), preceded by "Node:" in the same line
+            # - 0x7f (DEL), preceded by "Node:" or "Ref:" in the same line
             # Filter such characters and reiterate
-            line=$(sed -e 's/\x1f\f\?$//;/Node:/s/\x7f//' "${path}" | file -i -)
+            line=$(sed -e 's/\x1f\f\?$//;/\(Node\|Ref\):/s/\x7f//' "${path}" \
+			| file -i -)
             type=${line##*:*( )}
             ;;
     esac


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2015-10-10 22:23 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2015-10-10 22:23 UTC (permalink / raw
  To: gentoo-commits

commit:     ec276196b251177f35775f485b15995496266bc1
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 10 22:22:53 2015 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Oct 10 22:22:53 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ec276196

find-binary-files.sh: Fix whitespace.

 find-binary-files.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index 98346de..367cc75 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -24,7 +24,7 @@ find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
             # - 0x7f (DEL), preceded by "Node:" or "Ref:" in the same line
             # Filter such characters and reiterate
             line=$(sed -e 's/\x1f\f\?$//;/\(Node\|Ref\):/s/\x7f//' "${path}" \
-			| file -i -)
+                | file -i -)
             type=${line##*:*( )}
             ;;
     esac


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2016-01-27 22:16 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2016-01-27 22:16 UTC (permalink / raw
  To: gentoo-commits

commit:     e7b92f629b09c022fdad6f97870f7fd270fc5c83
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 22:15:54 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 27 22:15:54 2016 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e7b92f62

packages-inheriting-eclasses: update for pkgcore-0.9.2 API

 packages-inheriting-eclasses.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index 13d72bc..f9636b6 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -1,7 +1,7 @@
 #!/usr/bin/python
 
 import collections, datetime, os, os.path, sys
-import pkgcore.config # tested with pkgcore-0.9.1
+import pkgcore.config # tested with pkgcore-0.9.2
 
 def main(argv):
 	try:
@@ -11,7 +11,7 @@ def main(argv):
 		return 1
 
 	c = pkgcore.config.load_config()
-	portdir = c.repo['/usr/portage']
+	portdir = c.repo['gentoo']
 
 	output = collections.defaultdict(set)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2016-02-12  7:56 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2016-02-12  7:56 UTC (permalink / raw
  To: gentoo-commits

commit:     d3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 12 07:55:56 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 12 07:55:56 2016 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d3dc416d

fetch-git-reports: Clean up repository before pulling

 fetch-git-reports.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fetch-git-reports.sh b/fetch-git-reports.sh
index ae1bc27..0d0a2d9 100755
--- a/fetch-git-reports.sh
+++ b/fetch-git-reports.sh
@@ -13,6 +13,8 @@ for repo in gentoo-ci gpyutils repos; do
 	[[ -d ${repo} ]] || git clone --depth=1 "git://anongit.gentoo.org/report/${repo}.git"
 
 	cd "${repo}"
+	git reset --hard
+	git clean -df
 	git fetch origin '+refs/heads/*:refs/remotes/origin/*'
 	git pull
 	cd - >/dev/null


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2016-05-14 21:41 Jorge Manuel B. S. Vicetto
  0 siblings, 0 replies; 316+ messages in thread
From: Jorge Manuel B. S. Vicetto @ 2016-05-14 21:41 UTC (permalink / raw
  To: gentoo-commits

commit:     eff6ba6bff0523408fe7dd99136a35c23e998d52
Author:     Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
AuthorDate: Sat May 14 21:36:08 2016 +0000
Commit:     Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Sat May 14 21:37:40 2016 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=eff6ba6b

Add fix for maintainer-needed.sh from Göktürk Yüksek (gokturk AT binghamton DOT edu) - fixes bug 574220.

Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo.org>

 maintainer-needed.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maintainer-needed.sh b/maintainer-needed.sh
index b883614..05b5e42 100755
--- a/maintainer-needed.sh
+++ b/maintainer-needed.sh
@@ -9,7 +9,7 @@ cleanup () {
 	[[ -e ${tmpfile} ]] && rm ${tmpfile}
 }
 
-portageq --no-filters --maintainer-email=maintainer-needed@gentoo.org -n > ${tmpfile} || { cleanup; exit 1; }
+portageq --no-filters --orphaned -n > ${tmpfile} || { cleanup; exit 1; }
 
 echo """
 <html>


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2016-08-15 15:10 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2016-08-15 15:10 UTC (permalink / raw
  To: gentoo-commits

commit:     1b8b6b120df956f19d0d2dc06e833368e92b632a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 15 15:10:36 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug 15 15:10:36 2016 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1b8b6b12

eclass-usage: Kill wrong timestamp

 packages-inheriting-eclasses.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index f9636b6..61b4ab0 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -42,14 +42,12 @@ def main(argv):
 	<body>
 		<h1>Packages inheriting eclasses</h1>
 
-		<p>(tree synced at %s UTC)</p>
-
 		<ul>
 			%s
 			<li><a href="/">/ (go back)</a></li>
 		</ul>
 	</body>
-</html>''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(os.path.getmtime(portdir.location)).strftime("%a %b %d %Y %H:%M:%S"), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
+</html>''' % (max([len(e) for e in output]), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
 	f.close()
 
 	return 0


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2016-12-22 11:10 Göktürk Yüksek
  0 siblings, 0 replies; 316+ messages in thread
From: Göktürk Yüksek @ 2016-12-22 11:10 UTC (permalink / raw
  To: gentoo-commits

commit:     f18ee744d1c50418e97aad24fd28d89c66a6cb95
Author:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 22 11:07:55 2016 +0000
Commit:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Thu Dec 22 11:07:55 2016 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f18ee744

maintainer-needed.sh: improve readability with table frames and rules

 maintainer-needed.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maintainer-needed.sh b/maintainer-needed.sh
index 05b5e42..f86f6ea 100755
--- a/maintainer-needed.sh
+++ b/maintainer-needed.sh
@@ -20,7 +20,7 @@ echo """
 	<body>
 		List generated on $(date)<br/>
 		Total packages: <b>$(wc -l ${tmpfile} | cut -d ' '  -f1)</b><br/><br/>
-		<table>
+		<table frame="box" rules="all">
 			<tr>
 				<th>Package Name</th>
 				<th>Description</th>


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2017-02-17 11:15 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2017-02-17 11:15 UTC (permalink / raw
  To: gentoo-commits

commit:     4b1b7cc4a85c87c14a9835177b4be5f063c5f9db
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 17 11:14:36 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 17 11:14:36 2017 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4b1b7cc4

packages-inheriting-eclasses: Remove stale output files

 packages-inheriting-eclasses.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index 61b4ab0..082af8d 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -22,7 +22,10 @@ def main(argv):
 	try:
 		os.mkdir(outputdir)
 	except OSError:
-		pass # XXX: removing old eclasses?
+		# remove stale output files
+		for f in os.listdir(outputdir):
+			if f.endswith('.txt') and f[:-4] not in output:
+				os.remove(os.path.join(outputdir, f))
 
 	os.chdir(outputdir)
 	for eclass in output:


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2017-02-22 17:08 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2017-02-22 17:08 UTC (permalink / raw
  To: gentoo-commits

commit:     0b07d8e0ad219985d17dafd3a71cb7eb44bd0e20
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 22 17:08:11 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb 22 17:08:11 2017 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0b07d8e0

packages-inheriting-eclasses: Include unused eclasses

 packages-inheriting-eclasses.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index 082af8d..35ec59e 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 
-import collections, datetime, os, os.path, sys
+import datetime, os, os.path, sys
 import pkgcore.config # tested with pkgcore-0.9.2
 
 def main(argv):
@@ -13,7 +13,11 @@ def main(argv):
 	c = pkgcore.config.load_config()
 	portdir = c.repo['gentoo']
 
-	output = collections.defaultdict(set)
+	output = {}
+	# initiate with all eclasses
+	# (this also ensures we know eclasses that have no packages)
+	for k in portdir.eclass_cache.eclasses:
+		output[k] = set()
 
 	for p in portdir:
 		for eclass in p.data.get('_eclasses_', ()):


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2017-06-04 17:13 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2017-06-04 17:13 UTC (permalink / raw
  To: gentoo-commits

commit:     30f6e1692d5182a8084e1a20054c5f61471574de
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  4 17:13:04 2017 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jun  4 17:13:04 2017 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=30f6e169

find-binary-files.sh: Suppress false positives.

 find-binary-files.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index 367cc75..a3b1415 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 2014-2015 Gentoo Foundation
+# Copyright 2014-2017 Gentoo Foundation
 # Distributed under the terms of the GNU GPL version 2 or later
 # Author: Ulrich Müller <ulm@gentoo.org>
 
@@ -34,6 +34,7 @@ find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
         application/*"; charset=utf-8") ;;
         "image/svg+xml; charset=us-ascii") ;; # SVG image
         "image/x-xpmi; charset=us-ascii") ;;  # XPM image
+        "message/rfc822; charset=us-ascii") ;;
         *)
             size=$(stat -c "%s" "${path}")
             echo "${path#./}: ${type} (size=${size})"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2017-12-14 17:38 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2017-12-14 17:38 UTC (permalink / raw
  To: gentoo-commits

commit:     8d32ab3922bbfbce4501d299d728eee269c9ca32
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 14 15:59:58 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Dec 14 15:59:58 2017 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8d32ab39

maintainer-needed: Include revdep counts in the list

 maintainer-needed.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/maintainer-needed.sh b/maintainer-needed.sh
index f86f6ea..221673c 100755
--- a/maintainer-needed.sh
+++ b/maintainer-needed.sh
@@ -4,6 +4,7 @@
 # Author: Markos Chandras <hwoarang@gentoo.org>
 
 tmpfile="/tmp/mn-pkglist$$.tmp"
+rdepdir=$1
 
 cleanup () {
 	[[ -e ${tmpfile} ]] && rm ${tmpfile}
@@ -25,6 +26,9 @@ echo """
 				<th>Package Name</th>
 				<th>Description</th>
 				<th>Open bugs</th>
+				<th>R-revdeps</th>
+				<th>D-revdeps</th>
+				<th>P-revdeps</th>
 			</tr>
 """
 
@@ -34,6 +38,9 @@ while read pkg; do
 				<td>${pkg}</td>
 				<td>$(pquery --no-version --one-attr description ${pkg})</td>
 				<td><a href=\"https://bugs.gentoo.org/buglist.cgi?quicksearch=${pkg}\">Open Bugs</a></td>
+				<td><a href=\"genrdeps/rindex/${pkg}\">$(cat ${rdepdir}/rindex/${pkg} 2>/dev/null | wc -l)</a></td>
+				<td><a href=\"genrdeps/dindex/${pkg}\">$(cat ${rdepdir}/dindex/${pkg} 2>/dev/null | wc -l)</a></td>
+				<td><a href=\"genrdeps/pindex/${pkg}\">$(cat ${rdepdir}/pindex/${pkg} 2>/dev/null | wc -l)</a></td>
 			</tr>
 	"""
 done < ${tmpfile}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-01-06 11:16 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2018-01-06 11:16 UTC (permalink / raw
  To: gentoo-commits

commit:     b78bb2a296ce8ee5944199027f7258a705229f7e
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  6 11:16:47 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Jan  6 11:16:47 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=b78bb2a2

find-binary-files.sh: Account for gzipped Manifest files.

 find-binary-files.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index a3b1415..6714422 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 2014-2017 Gentoo Foundation
+# Copyright 2014-2018 Gentoo Foundation
 # Distributed under the terms of the GNU GPL version 2 or later
 # Author: Ulrich Müller <ulm@gentoo.org>
 
@@ -10,7 +10,7 @@ cd "${portdir}" || exit 1
 
 find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
     -o -path ./packages \) -prune \
-    -o ! -type d -exec file -ih '{}' + \
+    -o ! -type d ! \( -type f -name 'Manifest*.gz' \) -exec file -ih '{}' + \
 | while read line; do
     path=${line%:*}
     type=${line##*:*( )}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-03-19 22:23 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2018-03-19 22:23 UTC (permalink / raw
  To: gentoo-commits

commit:     ac021b43e1d310ea390535c0456285e0855fd5f4
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 19 22:21:24 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 19 22:21:24 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ac021b43

eapi_usage.sh: Ignore Manifest and gzipped files.

Also EAPI should always be explicit in the md5-cache, so a default
of 0 is not necessary.

 eapi_usage.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eapi_usage.sh b/eapi_usage.sh
index 3e72883..fd5df9d 100755
--- a/eapi_usage.sh
+++ b/eapi_usage.sh
@@ -7,10 +7,10 @@
 #
 #pinspect eapi_usage /usr/portage
 
-find /usr/portage/metadata/md5-cache -type f -exec awk '
+find /usr/portage/metadata/md5-cache -type f \
+  ! -name '*.gz' ! -name 'Manifest*' -exec awk '
     BEGINFILE { found=0 }
     /^EAPI=/ { sub("EAPI=",""); eapi[$1]++; found=1; nextfile }
-    ENDFILE { if (!found) eapi[0]++ }
     END { for (i in eapi) print i,eapi[i] }
   ' '{}' '+' | awk '
     { eapi[$1]+=$2; total+=$2 }


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-03-19 22:29 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2018-03-19 22:29 UTC (permalink / raw
  To: gentoo-commits

commit:     d02922ea9d5ba04f70d116d0111cdaac85121626
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 19 22:28:49 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 19 22:28:49 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d02922ea

eapi_usage.sh: Delete unused variable.

 eapi_usage.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/eapi_usage.sh b/eapi_usage.sh
index fd5df9d..9ed0819 100755
--- a/eapi_usage.sh
+++ b/eapi_usage.sh
@@ -9,8 +9,7 @@
 
 find /usr/portage/metadata/md5-cache -type f \
   ! -name '*.gz' ! -name 'Manifest*' -exec awk '
-    BEGINFILE { found=0 }
-    /^EAPI=/ { sub("EAPI=",""); eapi[$1]++; found=1; nextfile }
+    /^EAPI=/ { sub("EAPI=",""); eapi[$1]++; nextfile }
     END { for (i in eapi) print i,eapi[i] }
   ' '{}' '+' | awk '
     { eapi[$1]+=$2; total+=$2 }


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-03-19 23:06 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2018-03-19 23:06 UTC (permalink / raw
  To: gentoo-commits

commit:     8a87de18707ceffbda8bb11bad8d3048e6a0d408
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 19 23:03:58 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 19 23:03:58 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8a87de18

eapi_usage.sh: Replace first awk by grep.

This should make it slightly more robust.
Don't exclude files names Manifest* as it may be a valid package name.

 eapi_usage.sh | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/eapi_usage.sh b/eapi_usage.sh
index 9ed0819..29c3831 100755
--- a/eapi_usage.sh
+++ b/eapi_usage.sh
@@ -7,20 +7,18 @@
 #
 #pinspect eapi_usage /usr/portage
 
-find /usr/portage/metadata/md5-cache -type f \
-  ! -name '*.gz' ! -name 'Manifest*' -exec awk '
-    /^EAPI=/ { sub("EAPI=",""); eapi[$1]++; nextfile }
-    END { for (i in eapi) print i,eapi[i] }
-  ' '{}' '+' | awk '
-    { eapi[$1]+=$2; total+=$2 }
+find /usr/portage/metadata/md5-cache -type f ! -name '*.gz' \
+  -exec grep -h '^EAPI=' '{}' + \
+  | awk '
+    { sub("EAPI=",""); eapi[$1]++ }
     END {
       PROCINFO["sorted_in"]="@val_num_desc"
       for (i in eapi) {
-        s=""; for (j=1; j<eapi[i]*50./total+0.5; j++) s=s"#"
+        s=""; for (j=1; j<eapi[i]*50./NR+0.5; j++) s=s"#"
         printf "EAPI %s: %7d ebuilds (%5.02f%%)  %s\n",
-               i, eapi[i], eapi[i]*100.0/total, s
+               i, eapi[i], eapi[i]*100.0/NR, s
        }
-       printf "total:  %7d ebuilds\n", total
+       printf "total:  %7d ebuilds\n", NR
     }'
 
 echo


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-05-08 15:13 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-05-08 15:13 UTC (permalink / raw
  To: gentoo-commits

commit:     da16f2db7690c6b34063fa3c07302f19ed7a6185
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May  8 15:12:29 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May  8 15:12:29 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=da16f2db

Add a Makefile to run gpyutils suite

 Makefile.gpyutils | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 80 insertions(+)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
new file mode 100644
index 0000000..3e8a9df
--- /dev/null
+++ b/Makefile.gpyutils
@@ -0,0 +1,80 @@
+export PACKAGE_MANAGER = pkgcore
+
+PORTDIR ?= $(shell pinspect query get_repo_path gentoo)
+timestamp = $(PORTDIR)/metadata/timestamp.commit
+# pass via make!
+outdir = /dev/null
+
+# upgrades for stable impls
+upgr_base = $(outdir)/34-to-35.txt $(outdir)/35-to-36.txt
+# related stabilizations
+upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
+# all upgrade stuff
+upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/pypy3-to-35.txt
+upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
+upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg)
+
+all = $(upgr_all) $(outdir)/cands.txt $(outdir)/missing-meta.txt
+
+all: $(all)
+
+$(outdir)/cands.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-cands > $@.new
+	mv $@.new $@
+
+$(outdir)/depcands.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-depcands > $@.new
+	mv $@.new $@
+
+$(outdir)/depcands-all.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-depcands --all > $@.new
+	mv $@.new $@
+
+$(outdir)/depcheck.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-depcheck > $@.new
+	mv $@.new $@
+
+$(outdir)/34-to-35.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl python3_4 python3_5 > $@.new
+	mv $@.new $@
+
+$(outdir)/34-to-35-stablereq.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl -s python3_4 python3_5 > $@.new
+	mv $@.new $@
+
+$(outdir)/35-to-36.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl python3_5 python3_6 > $@.new
+	mv $@.new $@
+
+$(outdir)/35-to-36-stablereq.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl -s python3_5 python3_6 > $@.new
+	mv $@.new $@
+
+$(outdir)/pypy3-to-35.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl pypy3 python3_5 > $@.new
+	mv $@.new $@
+
+$(outdir)/missing-meta.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-find-missing-meta > $@.new
+	mv $@.new $@
+
+%.dot: %.txt
+	gpy-depgraph -m python@gentoo.org $< > $@.new
+	mv $@.new $@
+
+%.svg: %.dot
+	dot -Tsvg $< > $@.new
+	mv $@.new $@
+
+.PHONY: all


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-05-08 15:15 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-05-08 15:15 UTC (permalink / raw
  To: gentoo-commits

commit:     6f4e4e6d538d3c793da69e6e06d5393eb2ca2b1a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May  8 15:14:55 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May  8 15:14:55 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6f4e4e6d

Remove gpyutils from git reports

 fetch-git-reports.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fetch-git-reports.sh b/fetch-git-reports.sh
index 0d0a2d9..1520cec 100755
--- a/fetch-git-reports.sh
+++ b/fetch-git-reports.sh
@@ -9,7 +9,7 @@ outputdir=${1}
 [[ ${outputdir} ]]
 cd "${outputdir}"
 
-for repo in gentoo-ci gpyutils repos; do
+for repo in gentoo-ci repos; do
 	[[ -d ${repo} ]] || git clone --depth=1 "git://anongit.gentoo.org/report/${repo}.git"
 
 	cd "${repo}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-07  8:48 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-07  8:48 UTC (permalink / raw
  To: gentoo-commits

commit:     08b8740bec421709995f59b1167bd2add5efef93
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  7 08:48:16 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul  7 08:48:16 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=08b8740b

Remove obsolete port* scripts

 portcommit |  6 ------
 portdel    |  7 -------
 portqa     | 31 -------------------------------
 3 files changed, 44 deletions(-)

diff --git a/portcommit b/portcommit
deleted file mode 100755
index f7b201c..0000000
--- a/portcommit
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-# Created by Tomáš Chvátal <scarabeus@gentoo.org>
-# License WTFPL-2.0
-
-echangelog $@
-repoman commit -m "$@"

diff --git a/portdel b/portdel
deleted file mode 100755
index bbfc497..0000000
--- a/portdel
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-# Created by Tomáš Chvátal <scarabeus@gentoo.org>
-# License WTFPL-2.0
-
-[[ -z $1 ]] || cvs delete -f $@ > /dev/null
-echangelog "rm old" > /dev/null
-repoman commit -m "rm old" > /dev/null

diff --git a/portqa b/portqa
deleted file mode 100755
index 5bf48e2..0000000
--- a/portqa
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-# Created by Tomáš Chvátal <scarabeus@gentoo.org>
-# License WTFPL-2.0
-
-[[ -z $1 ]] && exit 1
-
-if [[ $1 == help || $1 == --help ]]; then
-	echo "Usage: $0 herd-or-maintainer-to-checkup"
-	exit 0
-fi
-
-if [[ $1 = *@* ]]; then
-	target="--maintainer=$1"
-else
-	target="--herd=$1"
-fi
-
-#-c pkgcore_checks.imlate \
-pushd "$(portageq get_repo_path / gentoo)" > /dev/null
-package=$(pquery ${target} --repo=portdir --no-version | tr '\n' ' ')
-pcheck -c pkgcore_checks.deprecated \
-	-c pkgcore_checks.whitespace \
-	-c pkgcore_checks.pkgdir_checks \
-	-c pkgcore_checks.metadata_checks \
-	-c pkgcore_checks.codingstyle \
-	-c pkgcore_checks.visibility \
-	-c pkgcore_checks.cleanup \
-	${package} \
-	--repo=portdir \
-	--disable-arches=mips,x86-fbsd,m68k,ppc-macos
-popd > /dev/null


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-10 10:16 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-10 10:16 UTC (permalink / raw
  To: gentoo-commits

commit:     e5f943d679b6dc3fe3391f7fb7f694b7ba488aee
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 10 10:15:52 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 10 10:15:52 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e5f943d6

gpyutils: Enable reports for python3.7

 Makefile.gpyutils | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 3e8a9df..525057e 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -6,7 +6,7 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 outdir = /dev/null
 
 # upgrades for stable impls
-upgr_base = $(outdir)/34-to-35.txt $(outdir)/35-to-36.txt
+upgr_base = $(outdir)/34-to-35.txt $(outdir)/35-to-36.txt $(outdir)/36-to-37.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
@@ -59,6 +59,16 @@ $(outdir)/35-to-36-stablereq.txt: $(timestamp)
 	gpy-upgrade-impl -s python3_5 python3_6 > $@.new
 	mv $@.new $@
 
+$(outdir)/36-to-37.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl python3_6 python3_7 > $@.new
+	mv $@.new $@
+
+$(outdir)/36-to-37-stablereq.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl -s python3_6 python3_7 > $@.new
+	mv $@.new $@
+
 $(outdir)/pypy3-to-35.txt: $(timestamp)
 	mkdir -p $(outdir)
 	gpy-upgrade-impl pypy3 python3_5 > $@.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-10 13:32 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-10 13:32 UTC (permalink / raw
  To: gentoo-commits

commit:     91e7e73f8247fc09899afadf72345a54f2120d9b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 10 13:32:24 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 10 13:32:24 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=91e7e73f

gpyutils: Disable 36-to-37.svg until the graph becomes smaller

 Makefile.gpyutils | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 525057e..aa9d76d 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -79,6 +79,10 @@ $(outdir)/missing-meta.txt: $(timestamp)
 	gpy-find-missing-meta > $@.new
 	mv $@.new $@
 
+# temporarily disable it; the graph is too big
+$(outdir)/36-to-37.svg:
+	touch $@
+
 %.dot: %.txt
 	gpy-depgraph -m python@gentoo.org $< > $@.new
 	mv $@.new $@


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-17 15:45 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-17 15:45 UTC (permalink / raw
  To: gentoo-commits

commit:     246d121e4a8280e2a9123daf384ac388de4e8c02
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 17 15:45:16 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 17 15:45:16 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=246d121e

Include dev-timeline scripts

 .gitmodules  | 3 +++
 dev-timeline | 1 +
 2 files changed, 4 insertions(+)

diff --git a/.gitmodules b/.gitmodules
index 870148a..cec424b 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,6 @@
 [submodule "pkgcheck2html"]
 	path = pkgcheck2html
 	url = https://github.com/mgorny/pkgcheck-result-parser
+[submodule "dev-timeline"]
+	path = dev-timeline
+	url = https://github.com/mgorny/dev-timeline

diff --git a/dev-timeline b/dev-timeline
new file mode 160000
index 0000000..8ebb28f
--- /dev/null
+++ b/dev-timeline
@@ -0,0 +1 @@
+Subproject commit 8ebb28fa9c311112e92ff75ab9de439f1eca1778


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-17 15:52 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-17 15:52 UTC (permalink / raw
  To: gentoo-commits

commit:     7d0c60f1d86f8b3a55b5d96a3a91a6d8226ef32e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 17 15:52:17 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 17 15:52:23 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7d0c60f1

Bump dev-timeline

 dev-timeline | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-timeline b/dev-timeline
index 8ebb28f..632f347 160000
--- a/dev-timeline
+++ b/dev-timeline
@@ -1 +1 @@
-Subproject commit 8ebb28fa9c311112e92ff75ab9de439f1eca1778
+Subproject commit 632f347641c0151d156983e79a625a78df5e7b3b


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-17 15:56 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-17 15:56 UTC (permalink / raw
  To: gentoo-commits

commit:     7a5310f19980cd625c9a9888aa0dc311369a92f8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 17 15:55:50 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 17 15:55:50 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7a5310f1

Bump dev-timeline again (bare repo fix)

 dev-timeline | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-timeline b/dev-timeline
index 632f347..b46f498 160000
--- a/dev-timeline
+++ b/dev-timeline
@@ -1 +1 @@
-Subproject commit 632f347641c0151d156983e79a625a78df5e7b3b
+Subproject commit b46f4981dc73b64c10cc09a5f64207cdb7747213


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-17 22:13 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-17 22:13 UTC (permalink / raw
  To: gentoo-commits

commit:     e3117dda8d6e68ddc312298c0ffd2debacf9021a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 17 22:12:51 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 17 22:13:09 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e3117dda

Add a script to fetch OpenPGP keys

 create-dev-keyrings.bash | 61 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
new file mode 100755
index 0000000..ea31587
--- /dev/null
+++ b/create-dev-keyrings.bash
@@ -0,0 +1,61 @@
+#!/bin/bash
+
+OUTPUT_DIR=${1:-.}
+
+COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active))'
+NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
+RETIRED_RULE='(!(gentooStatus=active))'
+
+# grab_ldap_fingerprints <ldap-rule>
+grab_ldap_fingerprints() {
+	ldapsearch "${1}" -Z gpgfingerprint -LLL |
+		sed -n -e '/^gpgfingerprint: /{s/^.*://;s/ //g;p}' |
+		sort -u |
+		grep -v undefined
+}
+
+# grab_keys <fingerprint>...
+grab_keys() {
+	local retries=0
+	local missing=()
+	local remaining=( "${@}" )
+
+	while :; do
+		gpg -q --recv-keys "${remaining[@]}" || :
+		missing=()
+		for key in "${remaining[@]}"; do
+			gpg --list-public "${key}" &>/dev/null || missing+=( "${key}" )
+		done
+
+		[[ ${#missing[@]} -ne 0 ]] || break
+
+		# if we did not make progress, give it a few seconds and retry
+		if [[ ${#missing[@]} -eq ${#remaining[@]} ]]; then
+			if [[ $(( retries++ )) -gt 3 ]]; then
+				echo "Unable to fetch the following keys:"
+				printf '%s\n' "${missing[@]}"
+				exit 1
+			fi
+			sleep 5
+		fi
+
+		remaining=( "${missing[@]}" )
+	done
+}
+
+set -e
+
+COMMITTING_DEVS=( $(grab_ldap_fingerprints "${COMMIT_RULE}") )
+NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints "${NONCOMMIT_RULE}") )
+#RETIRED_DEVS=( $(grab_ldap_fingerprints "${RETIRED_RULE}") )
+
+export GNUPGHOME=$(mktemp -d)
+trap 'rm -rf "${GNUPGHOME}"' EXIT
+
+grab_keys "${COMMITTING_DEVS[@]}"
+gpg --export > "${OUTPUT_DIR}"/committing-devs.gpg
+grab_keys "${NONCOMMITTING_DEVS[@]}"
+gpg --export > "${OUTPUT_DIR}"/active-devs.gpg
+# -- not all are on keyservers
+#grab_keys "${RETIRED_DEVS[@]}"
+#gpg --export > "${OUTPUT_DIR}"/all-devs.gpg


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-18  6:09 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-18  6:09 UTC (permalink / raw
  To: gentoo-commits

commit:     3673445cc95c535f0b6698c2354244ee8d489b0c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 18 06:06:10 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 18 06:06:10 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=3673445c

gen-dev-wot: Stop using absolute paths

 gen-dev-wot.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
index dd3d88a..c5de46d 100755
--- a/gen-dev-wot.sh
+++ b/gen-dev-wot.sh
@@ -6,10 +6,10 @@ if [[ -z "$1" ]]; then
 	echo "Usage: $0 </path/to/output/>"
 	exit 1
 fi
-if [[ ! -e /usr/bin/sig2dot ]]; then
+if ! type -P sig2dot &>/dev/null; then
 	echo "install signing-party"; exit 1
 fi
-if [[ ! -e /usr/bin/neato ]]; then
+if ! type -P dot &>/dev/null; then
 	echo "install graphviz"; exit 1
 fi
 
@@ -20,14 +20,14 @@ wget -q -O -  http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml | \
 	egrep -o '0x([A-Z0-9]{8}){1,2}' > keys.txt
 
 # Looks like all the outgoing connections to port 11371 are blocked from scrubfowl
-/usr/bin/gpg -q --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys \
+gpg -q --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys \
 	`cat keys.txt`
 
-/usr/bin/gpg -q --no-default-keyring --list-sigs | \
+gpg -q --no-default-keyring --list-sigs | \
 	/usr/bin/sig2dot -q -t "Gentoo Dev WoT" -s wot-stats.html \
 	> keys.dot
 
-/usr/bin/dot -Gcharset=latin1 -Tpng keys.dot > "${1}/wot-graph.png"
+dot -Gcharset=latin1 -Tpng keys.dot > "${1}/wot-graph.png"
 
 mv wot-stats.html "${1}"
 rm -rf $GNUPGHOME


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-18  6:09 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-18  6:09 UTC (permalink / raw
  To: gentoo-commits

commit:     e8459cad26b49836b241d8bd98cfe2a6ef37e885
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 18 06:08:24 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 18 06:08:36 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e8459cad

gen-dev-wot: Use local keyrings

 gen-dev-wot.sh | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
index c5de46d..dda83a7 100755
--- a/gen-dev-wot.sh
+++ b/gen-dev-wot.sh
@@ -13,21 +13,10 @@ if ! type -P dot &>/dev/null; then
 	echo "install graphviz"; exit 1
 fi
 
-export GNUPGHOME=$(mktemp -d --suffix=$(basename $0))
-cd $GNUPGHOME || exit 1
-
-wget -q -O -  http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml | \
-	egrep -o '0x([A-Z0-9]{8}){1,2}' > keys.txt
-
-# Looks like all the outgoing connections to port 11371 are blocked from scrubfowl
-gpg -q --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys \
-	`cat keys.txt`
-
-gpg -q --no-default-keyring --list-sigs | \
+gpg -q --keyring "${1}/active-devs.gpg" --list-sigs | \
 	/usr/bin/sig2dot -q -t "Gentoo Dev WoT" -s wot-stats.html \
 	> keys.dot
 
 dot -Gcharset=latin1 -Tpng keys.dot > "${1}/wot-graph.png"
 
 mv wot-stats.html "${1}"
-rm -rf $GNUPGHOME


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-18 10:36 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-18 10:36 UTC (permalink / raw
  To: gentoo-commits

commit:     e0b05361c523f75d0cac2e037b9ecbd5aae3262d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 18 10:35:59 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 18 10:35:59 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e0b05361

gen-dev-wot: Use --keyid-format=long to workaround buggy sig2dot

 gen-dev-wot.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
index dda83a7..64b0067 100755
--- a/gen-dev-wot.sh
+++ b/gen-dev-wot.sh
@@ -13,7 +13,7 @@ if ! type -P dot &>/dev/null; then
 	echo "install graphviz"; exit 1
 fi
 
-gpg -q --keyring "${1}/active-devs.gpg" --list-sigs | \
+gpg -q --keyid-format=long --keyring "${1}/active-devs.gpg" --list-sigs | \
 	/usr/bin/sig2dot -q -t "Gentoo Dev WoT" -s wot-stats.html \
 	> keys.dot
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-18 11:06 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-18 11:06 UTC (permalink / raw
  To: gentoo-commits

commit:     1cbae2297bfd407836777717193602def7b07aa5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 18 11:06:34 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 18 11:06:34 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1cbae229

gpyutils: Reenable 3.6→3.7 graphs

 Makefile.gpyutils | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index aa9d76d..525057e 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -79,10 +79,6 @@ $(outdir)/missing-meta.txt: $(timestamp)
 	gpy-find-missing-meta > $@.new
 	mv $@.new $@
 
-# temporarily disable it; the graph is too big
-$(outdir)/36-to-37.svg:
-	touch $@
-
 %.dot: %.txt
 	gpy-depgraph -m python@gentoo.org $< > $@.new
 	mv $@.new $@


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-18 13:59 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-18 13:59 UTC (permalink / raw
  To: gentoo-commits

commit:     8c2974c140ff258a21a1f4eb78194fc72ae91ff9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 18 13:55:42 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 18 13:59:22 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8c2974c1

create-dev-keyrings: Do not dispose GNUPGHOME

Instead of disposing GNUPGHOME and fetching fresh, just keep updating
the current keyring.  Since we export only part of it, stale keys
should not cause any trouble.

 create-dev-keyrings.bash | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 4e66655..7afed08 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -49,9 +49,6 @@ COMMITTING_DEVS=( $(grab_ldap_fingerprints "${COMMIT_RULE}") )
 NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints "${NONCOMMIT_RULE}") )
 #RETIRED_DEVS=( $(grab_ldap_fingerprints "${RETIRED_RULE}") )
 
-export GNUPGHOME=$(mktemp -d)
-trap 'rm -rf "${GNUPGHOME}"' EXIT
-
 grab_keys "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}"
 gpg --export "${COMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/committing-devs.gpg
 gpg --export "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/active-devs.gpg


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-18 13:59 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-18 13:59 UTC (permalink / raw
  To: gentoo-commits

commit:     0ae03c7004b64ffc0592625baec4ac263f1778ad
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 18 13:57:44 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 18 13:59:22 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0ae03c70

create-dev-keyrings: Add timeout for gpg call

 create-dev-keyrings.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 7afed08..9190004 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -21,7 +21,7 @@ grab_keys() {
 	local remaining=( "${@}" )
 
 	while :; do
-		gpg -q --recv-keys "${remaining[@]}" || :
+		timeout 5m gpg -q --recv-keys "${remaining[@]}" || :
 		missing=()
 		for key in "${remaining[@]}"; do
 			gpg --list-public "${key}" &>/dev/null || missing+=( "${key}" )


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-18 13:59 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-18 13:59 UTC (permalink / raw
  To: gentoo-commits

commit:     fabe5d056d65ea6b2e6b79b61c1aa512d71066dd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 18 13:55:09 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 18 13:59:21 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=fabe5d05

create-dev-keyrings: Use a single 'gpg --recv-keys' call

 create-dev-keyrings.bash | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index ea31587..4e66655 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -52,10 +52,9 @@ NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints "${NONCOMMIT_RULE}") )
 export GNUPGHOME=$(mktemp -d)
 trap 'rm -rf "${GNUPGHOME}"' EXIT
 
-grab_keys "${COMMITTING_DEVS[@]}"
-gpg --export > "${OUTPUT_DIR}"/committing-devs.gpg
-grab_keys "${NONCOMMITTING_DEVS[@]}"
-gpg --export > "${OUTPUT_DIR}"/active-devs.gpg
+grab_keys "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}"
+gpg --export "${COMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/committing-devs.gpg
+gpg --export "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/active-devs.gpg
 # -- not all are on keyservers
 #grab_keys "${RETIRED_DEVS[@]}"
 #gpg --export > "${OUTPUT_DIR}"/all-devs.gpg


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-21 18:56 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-21 18:56 UTC (permalink / raw
  To: gentoo-commits

commit:     2e128d0ac18528149eabdb5d96114de480971abd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 21 18:56:41 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 21 18:56:41 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2e128d0a

create-dev-keyrings: Include separate group for system users

 create-dev-keyrings.bash | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 9190004..17bdfd4 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -2,13 +2,16 @@
 
 OUTPUT_DIR=${1:-.}
 
+DEV_BASE='ou=devs,dc=gentoo,dc=org'
+SYSTEM_BASE='ou=system,dc=gentoo,dc=org'
+
 COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active))'
 NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
 RETIRED_RULE='(!(gentooStatus=active))'
 
 # grab_ldap_fingerprints <ldap-rule>
 grab_ldap_fingerprints() {
-	ldapsearch "${1}" -Z gpgfingerprint -LLL |
+	ldapsearch "${@}" -Z gpgfingerprint -LLL |
 		sed -n -e '/^gpgfingerprint: /{s/^.*://;s/ //g;p}' |
 		sort -u |
 		grep -v undefined
@@ -45,13 +48,15 @@ grab_keys() {
 
 set -e
 
-COMMITTING_DEVS=( $(grab_ldap_fingerprints "${COMMIT_RULE}") )
-NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints "${NONCOMMIT_RULE}") )
-#RETIRED_DEVS=( $(grab_ldap_fingerprints "${RETIRED_RULE}") )
+COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
+NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
+#RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 
-grab_keys "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}"
+grab_keys "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" "${SYSTEM_KEYS[@]}"
 gpg --export "${COMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/committing-devs.gpg
 gpg --export "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/active-devs.gpg
+gpg --export "${SYSTEM_KEYS[@]}" > "${OUTPUT_DIR}"/release-keys.gpg
 # -- not all are on keyservers
 #grab_keys "${RETIRED_DEVS[@]}"
 #gpg --export > "${OUTPUT_DIR}"/all-devs.gpg


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-21 20:38 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-21 20:38 UTC (permalink / raw
  To: gentoo-commits

commit:     b7fddac251b2ddc181bfa01b8d40f362a302127c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 21 20:38:14 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 21 20:38:14 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=b7fddac2

create-dev-keyrings: release -> service keys

 create-dev-keyrings.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 17bdfd4..5d2f23c 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -56,7 +56,7 @@ SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}")
 grab_keys "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" "${SYSTEM_KEYS[@]}"
 gpg --export "${COMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/committing-devs.gpg
 gpg --export "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/active-devs.gpg
-gpg --export "${SYSTEM_KEYS[@]}" > "${OUTPUT_DIR}"/release-keys.gpg
+gpg --export "${SYSTEM_KEYS[@]}" > "${OUTPUT_DIR}"/service-keys.gpg
 # -- not all are on keyservers
 #grab_keys "${RETIRED_DEVS[@]}"
 #gpg --export > "${OUTPUT_DIR}"/all-devs.gpg


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-21 21:57 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-21 21:57 UTC (permalink / raw
  To: gentoo-commits

commit:     b36477a3568b4f3df6da10049fdedb5a0138fd85
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 21 21:57:10 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 21 21:57:10 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=b36477a3

Update dev-timeline to fix active-devs filtering

 dev-timeline | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-timeline b/dev-timeline
index b46f498..3a77265 160000
--- a/dev-timeline
+++ b/dev-timeline
@@ -1 +1 @@
-Subproject commit b46f4981dc73b64c10cc09a5f64207cdb7747213
+Subproject commit 3a77265aabd909220b829c0fa2623473bf5bc849


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-07-29 11:50 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-07-29 11:50 UTC (permalink / raw
  To: gentoo-commits

commit:     41ada5fca2a464dde3602c8486fe238ba12c1dd7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 29 11:49:29 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 29 11:49:29 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=41ada5fc

create-dev-keyrings: Increase gpg refresh timeout

 create-dev-keyrings.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 5d2f23c..0afe352 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -24,7 +24,7 @@ grab_keys() {
 	local remaining=( "${@}" )
 
 	while :; do
-		timeout 5m gpg -q --recv-keys "${remaining[@]}" || :
+		timeout 20m gpg -q --recv-keys "${remaining[@]}" || :
 		missing=()
 		for key in "${remaining[@]}"; do
 			gpg --list-public "${key}" &>/dev/null || missing+=( "${key}" )


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-08-12  9:59 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-08-12  9:59 UTC (permalink / raw
  To: gentoo-commits

commit:     6efec1a122a2806b093df4ca99771c3a7a95b925
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 12 09:58:34 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 12 09:58:57 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6efec1a1

check_eclasses_eapis: Include supported EAPIs in STATS.txt

 check_eclasses_eapis.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 218f01a..b78fb39 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -57,6 +57,10 @@ for x in ${ECLASSES}; do
 		tmpval=$(wc -l "${y}.txt" |cut -d' ' -f1)
 		echo "EAPI=${y} count: ${tmpval}" >> "STATS.txt"
 	done
+	SUPP_EAPIS=$(sed -n -e 's/^# @SUPPORTED_EAPIS: //p' "${REPO_PATH}/eclass/${x}")
+	if [[ -n ${SUPP_EAPIS} ]]; then
+		echo "EAPIs declared supported by eclass: ${SUPP_EAPIS}" >> STATS.txt
+	fi
 	sed -e 's/$/<br>/' STATS.txt > README.html
 	popd > /dev/null
 done


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-08-12 10:35 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-08-12 10:35 UTC (permalink / raw
  To: gentoo-commits

commit:     dbb818c206f82819fd0ce85bc6375748dd170201
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 12 10:35:30 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 12 10:35:30 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=dbb818c2

Add script to print eclass-EAPI matrix

 eclass-eapi-matrix.py | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 104 insertions(+)

diff --git a/eclass-eapi-matrix.py b/eclass-eapi-matrix.py
new file mode 100755
index 0000000..8117d63
--- /dev/null
+++ b/eclass-eapi-matrix.py
@@ -0,0 +1,104 @@
+#!/usr/bin/env python
+# Eclass-EAPI matrix
+# (c) 2018 Michał Górny
+# Licensed under the terms of the 2-clause BSD license
+
+import math
+import os
+import os.path
+import re
+import sys
+
+
+STATS_LINE_RE = re.compile(r'EAPI=(?P<eapi>\w+) count: (?P<count>\d+)')
+SUPP_LINE_RE = re.compile(r'EAPIs declared supported by eclass: (.*)')
+
+
+def collect_data(work_dir):
+    """
+    Collect data about supported and used EAPIs from work_dir.
+
+    work_dir: directory with eapi-per-eclass stats
+
+    Returns dict of {eclass: (supported_eapis, {eapi: count, ...}), ...}
+    """
+    data = {}
+    for eclass in os.listdir(work_dir):
+        if not eclass.endswith('.eclass'):
+            continue
+
+        with open(os.path.join(work_dir, eclass, 'STATS.txt')) as f:
+            eapis = {}
+            supp_eapis = None
+            for l in f:
+                m = STATS_LINE_RE.match(l)
+                if m is not None:
+                    eapis[m.group('eapi')] = int(m.group('count'))
+                    continue
+
+                m = SUPP_LINE_RE.match(l)
+                if m is not None:
+                    supp_eapis = m.group(1).split()
+
+            data[eclass[:-7]] = (supp_eapis, eapis)
+    return data
+
+
+def format_table(data):
+    """
+    Pretty-format table of eclass-EAPI data.
+    """
+
+    ret = ''
+
+    max_eclass_length = max(len(k) for k in data)
+    max_count = max(v for supp, eapis in data.values()
+            for v in eapis.values())
+    max_count_length = math.ceil(math.log10(max_count))
+
+    all_eapis = sorted(frozenset(v for supp, eapis in data.values()
+                                   for v in eapis))
+
+    # format strings
+    format_str = '{{eclass:>{}}}'.format(max_eclass_length)
+    for eapi in all_eapis:
+        format_str += '  {{eapi_{}:>{}}}'.format(eapi, max_count_length)
+    format_str += '\n'
+
+    # header
+    hdr = {'eclass': 'eclass / EAPI'}
+    for eapi in all_eapis:
+        hdr['eapi_'+eapi] = eapi
+    ret += format_str.format(**hdr)
+
+    # ruler
+    rule = {'eclass': max_eclass_length * '-'}
+    for eapi in all_eapis:
+        rule['eapi_'+eapi] = max_count_length * '-'
+    ret += format_str.format(**rule)
+
+    # data
+    for eclass, ecl_data in sorted(data.items()):
+        line = {'eclass': eclass}
+        supp_eapis, eapis = ecl_data
+        for eapi in all_eapis:
+            if supp_eapis is not None and eapi not in supp_eapis:
+                assert eapis.get(eapi, 0) == 0
+                line['eapi_'+eapi] = 'xx'
+            else:
+                line['eapi_'+eapi] = eapis.get(eapi, 0)
+        ret += format_str.format(**line)
+
+    return ret
+
+
+def main(work_dir):
+    data = collect_data(work_dir)
+    out = format_table(data)
+
+    with open(os.path.join(work_dir, 'matrix.txt'), 'w') as f:
+        f.write(out)
+
+
+if __name__ == '__main__':
+    main(*sys.argv[1:])


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-08-12 10:37 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-08-12 10:37 UTC (permalink / raw
  To: gentoo-commits

commit:     451297fcc9511b37ca5204396312214eef7f5050
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 12 10:37:41 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 12 10:37:41 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=451297fc

check_eclasses_eapis: Run matrix generation as well

 check_eclasses_eapis.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index b78fb39..3a2e39b 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -66,5 +66,7 @@ for x in ${ECLASSES}; do
 done
 popd > /dev/null
 
+"${0}"/eclass-eapi-matrix.py "${DIR}"
+
 rm ${TMPEAPIS}
 rm ${TMPECLASS}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-08-12 10:40 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-08-12 10:40 UTC (permalink / raw
  To: gentoo-commits

commit:     dfb795b4a1eab6eb536f4f580a7714671cb5160d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 12 10:39:55 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 12 10:39:55 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=dfb795b4

check_eclasses_eapis: Fix matrix script path

 check_eclasses_eapis.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 3a2e39b..f3e1ff8 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -66,7 +66,7 @@ for x in ${ECLASSES}; do
 done
 popd > /dev/null
 
-"${0}"/eclass-eapi-matrix.py "${DIR}"
+"${0%/*}"/eclass-eapi-matrix.py "${DIR}"
 
 rm ${TMPEAPIS}
 rm ${TMPECLASS}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-08-23  7:57 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2018-08-23  7:57 UTC (permalink / raw
  To: gentoo-commits

commit:     da130e4c721cf4e47059edfdf06cfca90f5304a9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 23 07:57:03 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 23 07:57:03 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=da130e4c

dev-timeline: Update for new JSON output

 dev-timeline | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-timeline b/dev-timeline
index 3a77265..a3ebb35 160000
--- a/dev-timeline
+++ b/dev-timeline
@@ -1 +1 @@
-Subproject commit 3a77265aabd909220b829c0fa2623473bf5bc849
+Subproject commit a3ebb35413700113bffd4ee38cd9b6d77fc3612d


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-11-12 21:28 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2018-11-12 21:28 UTC (permalink / raw
  To: gentoo-commits

commit:     09709661f46c31d96506f419446ae6211eb5380f
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 12 21:25:50 2018 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Nov 12 21:25:50 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=09709661

create-dev-keyrings: always export

If fetching any changes fails, then the export phase does not run. If
there are multiple unrelated key changes, any one of them can be held up
by missing on the keyserver.

Always run the export, so that we get at least some of the changes out.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 0afe352..9bc2fde 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -37,7 +37,7 @@ grab_keys() {
 			if [[ $(( retries++ )) -gt 3 ]]; then
 				echo "Unable to fetch the following keys:"
 				printf '%s\n' "${missing[@]}"
-				exit 1
+				exit 0 # if we exit non-zero, the entire export will fail
 			fi
 			sleep 5
 		fi


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-11-12 22:11 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2018-11-12 22:11 UTC (permalink / raw
  To: gentoo-commits

commit:     f037307d91669bbc1221c27d7e6893ead8fce97a
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 12 22:09:03 2018 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Nov 12 22:09:03 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f037307d

create-dev-keyrings: export improvements

- Place new keyrings atomicly.
- Export system/committing/active/retired/all in seperate batches

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 55 ++++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 48 insertions(+), 7 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 9bc2fde..01f15b2 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -9,6 +9,11 @@ COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active
 NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
 RETIRED_RULE='(!(gentooStatus=active))'
 
+GPG_TMPDIR=$(mktemp -d)
+clean_tmp() {
+	rm -rf "$GPG_TMPDIR"
+}
+
 # grab_ldap_fingerprints <ldap-rule>
 grab_ldap_fingerprints() {
 	ldapsearch "${@}" -Z gpgfingerprint -LLL |
@@ -37,7 +42,7 @@ grab_keys() {
 			if [[ $(( retries++ )) -gt 3 ]]; then
 				echo "Unable to fetch the following keys:"
 				printf '%s\n' "${missing[@]}"
-				exit 0 # if we exit non-zero, the entire export will fail
+				break # if we hard-exit, the entire export will fail
 			fi
 			sleep 5
 		fi
@@ -46,17 +51,53 @@ grab_keys() {
 	done
 }
 
+export_keys() {
+	DST="$1"
+	TMP="${GPG_TMPDIR}"/$(basename "${DST}")
+	# Must not exist, otherwise GPG will give error
+	[[ -f "${TMP}" ]] && rm -f "${TMP}"
+	# 'gpg --export' returns zero if there was no error with the command itself
+	# If there are no keys in the export set, then it ALSO does not write the destination file
+	# and prints 'gpg: WARNING: nothing exported' to stderr
+	if gpg --output "$TMP" --export "${@}" && test -s "${TMP}"; then
+		chmod a+r "${DST}"
+		mv "${TMP}" "${DST}"
+	else
+		echo "Unable to export keys to $DST"
+		exit 1
+	fi
+}
+
 set -e
 
 COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
 NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
-#RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
 SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 
-grab_keys "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" "${SYSTEM_KEYS[@]}"
-gpg --export "${COMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/committing-devs.gpg
-gpg --export "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/active-devs.gpg
-gpg --export "${SYSTEM_KEYS[@]}" > "${OUTPUT_DIR}"/service-keys.gpg
+grab_keys "${SYSTEM_KEYS[@]}"
+export_keys "${OUTPUT_DIR}"/service_keys.gpg \
+	"${SYSTEM_KEYS[@]}"
+
+grab_keys "${COMMITTING_DEVS[@]}"
+export_keys "${OUTPUT_DIR}"/committing-devs.gpg \
+	"${COMMITTING_DEVS[@]}"
+
+grab_keys "${NONCOMMITTING_DEVS[@]}"
+export_keys "${OUTPUT_DIR}"/active-devs.gpg \
+	"${COMMITTING_DEVS[@]}" \
+	"${NONCOMMITTING_DEVS[@]}"
+
 # -- not all are on keyservers
+# -- and are unlikely to turn up now
+# -- this needs to fetch from some archive instead
 #grab_keys "${RETIRED_DEVS[@]}"
-#gpg --export > "${OUTPUT_DIR}"/all-devs.gpg
+export_keys "${OUTPUT_DIR}"/retired-devs.gpg \
+	"${RETIRED_DEVS[@]}"
+
+# Everybody together now
+export_keys "${OUTPUT_DIR}"/all-devs.gpg \
+	"${SYSTEM_KEYS[@]}" \
+	"${COMMITTING_DEVS[@]}" \
+	"${NONCOMMITTING_DEVS[@]}" \
+	"${RETIRED_DEVS[@]}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-11-12 22:15 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2018-11-12 22:15 UTC (permalink / raw
  To: gentoo-commits

commit:     2d8dcda77b43ac8c2fda3086b411ce7b25a57330
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 12 22:15:15 2018 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Nov 12 22:15:15 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2d8dcda7

create-dev-keyrings: fix thinko in chmod target

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 01f15b2..2549817 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -60,7 +60,7 @@ export_keys() {
 	# If there are no keys in the export set, then it ALSO does not write the destination file
 	# and prints 'gpg: WARNING: nothing exported' to stderr
 	if gpg --output "$TMP" --export "${@}" && test -s "${TMP}"; then
-		chmod a+r "${DST}"
+		chmod a+r "${TMP}"
 		mv "${TMP}" "${DST}"
 	else
 		echo "Unable to export keys to $DST"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2018-11-12 22:31 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2018-11-12 22:31 UTC (permalink / raw
  To: gentoo-commits

commit:     bd3d2f8b4ca4db18b5b54b5c280ca787366ba85b
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 12 22:31:15 2018 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Nov 12 22:31:15 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=bd3d2f8b

create-dev-keyrings: service-keys not underscored

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 2549817..309be45 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -76,7 +76,7 @@ RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
 SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 
 grab_keys "${SYSTEM_KEYS[@]}"
-export_keys "${OUTPUT_DIR}"/service_keys.gpg \
+export_keys "${OUTPUT_DIR}"/service-keys.gpg \
 	"${SYSTEM_KEYS[@]}"
 
 grab_keys "${COMMITTING_DEVS[@]}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-04-01 20:36 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-04-01 20:36 UTC (permalink / raw
  To: gentoo-commits

commit:     53a02f675dad2ec39eea52e2130a11b42977eab8
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  1 20:35:31 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Apr  1 20:35:31 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=53a02f67

create-dev-keyrings: try keys.gentoo.org as well

Try the new keys.gentoo.org rotation, prior to the general SKS rotation,
mostly because it's local and MUCH faster than the SKS network.

keys.g.o does NOT sync with SKS at this time, and does not yet offer
HKPS.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 309be45..8e581b4 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -28,8 +28,12 @@ grab_keys() {
 	local missing=()
 	local remaining=( "${@}" )
 
+	# this needs to move to HKPS as well, but that part is not yet deployed.
+	KS1=hkp://keys.gentoo.org/
+	KS2=hkps://hkps.pool.sks-keyservers.net/
 	while :; do
-		timeout 20m gpg -q --recv-keys "${remaining[@]}" || :
+		timeout 5m  gpg --keyserver $KS1 -q --recv-keys "${remaining[@]}" || :
+		timeout 20m gpg --keyserver $KS2 -q --recv-keys "${remaining[@]}" || :
 		missing=()
 		for key in "${remaining[@]}"; do
 			gpg --list-public "${key}" &>/dev/null || missing+=( "${key}" )


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-04-09  5:22 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-04-09  5:22 UTC (permalink / raw
  To: gentoo-commits

commit:     ba4f3b35b91889df2508a203d70d204151f1bd6f
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  9 05:22:31 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Apr  9 05:22:31 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ba4f3b35

create-dev-keyrings.bash: push keys back to keys.gentoo.org

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 8e581b4..704e409 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -9,6 +9,10 @@ COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active
 NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
 RETIRED_RULE='(!(gentooStatus=active))'
 
+# this needs to move to HKPS as well, but that part is not yet deployed.
+KS_GENTOO=hkp://keys.gentoo.org/
+KS_SKS=hkps://hkps.pool.sks-keyservers.net/
+
 GPG_TMPDIR=$(mktemp -d)
 clean_tmp() {
 	rm -rf "$GPG_TMPDIR"
@@ -28,12 +32,9 @@ grab_keys() {
 	local missing=()
 	local remaining=( "${@}" )
 
-	# this needs to move to HKPS as well, but that part is not yet deployed.
-	KS1=hkp://keys.gentoo.org/
-	KS2=hkps://hkps.pool.sks-keyservers.net/
 	while :; do
-		timeout 5m  gpg --keyserver $KS1 -q --recv-keys "${remaining[@]}" || :
-		timeout 20m gpg --keyserver $KS2 -q --recv-keys "${remaining[@]}" || :
+		timeout 5m  gpg --keyserver $KS_GENTOO -q --recv-keys "${remaining[@]}" || :
+		timeout 20m gpg --keyserver $KS_SKS -q --recv-keys "${remaining[@]}" || :
 		missing=()
 		for key in "${remaining[@]}"; do
 			gpg --list-public "${key}" &>/dev/null || missing+=( "${key}" )
@@ -55,6 +56,12 @@ grab_keys() {
 	done
 }
 
+# push_keys <fingerprint>...
+push_keys() {
+	timeout 5m  gpg --keyserver $KS_GENTOO -q --send-keys "${remaining[@]}" || :
+	#timeout 5m  gpg --keyserver $KS_SKS -q --send-keys "${remaining[@]}" || :
+}
+
 export_keys() {
 	DST="$1"
 	TMP="${GPG_TMPDIR}"/$(basename "${DST}")
@@ -105,3 +112,9 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \
 	"${COMMITTING_DEVS[@]}" \
 	"${NONCOMMITTING_DEVS[@]}" \
 	"${RETIRED_DEVS[@]}"
+
+# Populate keys.gentoo.org with the keys we have, since they might have come from SKS
+push_keys "${SYSTEM_KEYS[@]}"
+push_keys "${COMMITTING_DEVS[@]}"
+push_keys "${NONCOMMITTING_DEVS[@]}"
+push_keys "${RETIRED_DEVS[@]}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-04-09  5:24 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-04-09  5:24 UTC (permalink / raw
  To: gentoo-commits

commit:     e967dc59f18560d3e393c1a8ffbd6e0cfa4afbaa
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  9 05:23:30 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Apr  9 05:23:30 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e967dc59

create-dev-keyrings.bash: push keys back to keys.gentoo.org, take 2, missing a line

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 1 +
 1 file changed, 1 insertion(+)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 704e409..9e88d8d 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -58,6 +58,7 @@ grab_keys() {
 
 # push_keys <fingerprint>...
 push_keys() {
+	local remaining=( "${@}" )
 	timeout 5m  gpg --keyserver $KS_GENTOO -q --send-keys "${remaining[@]}" || :
 	#timeout 5m  gpg --keyserver $KS_SKS -q --send-keys "${remaining[@]}" || :
 }


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-04-09 19:17 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-04-09 19:17 UTC (permalink / raw
  To: gentoo-commits

commit:     1fa53c0dc35bed7d40cb872566fd4919a1cba3c7
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  9 19:17:39 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Apr  9 19:17:39 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1fa53c0d

create-dev-keyrings: only send keys we have

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 9e88d8d..2f68985 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -58,7 +58,8 @@ grab_keys() {
 
 # push_keys <fingerprint>...
 push_keys() {
-	local remaining=( "${@}" )
+	# Only send keys that we have
+	local remaining=( $(gpg --with-colon --list-public "${@}" | sed -n '/^pub/{n; /fpr/p }' |cut -d: -f10) )
 	timeout 5m  gpg --keyserver $KS_GENTOO -q --send-keys "${remaining[@]}" || :
 	#timeout 5m  gpg --keyserver $KS_SKS -q --send-keys "${remaining[@]}" || :
 }


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-04-14  6:29 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-04-14  6:29 UTC (permalink / raw
  To: gentoo-commits

commit:     54a4f06176b0ca1fee7ac81105ef82955e613528
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 14 06:29:23 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Apr 14 06:29:23 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=54a4f061

create-dev-keyrings: use hkps://keys.gentoo.org/ for security

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 2f68985..1a9fd76 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -9,8 +9,7 @@ COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active
 NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
 RETIRED_RULE='(!(gentooStatus=active))'
 
-# this needs to move to HKPS as well, but that part is not yet deployed.
-KS_GENTOO=hkp://keys.gentoo.org/
+KS_GENTOO=hkps://keys.gentoo.org/
 KS_SKS=hkps://hkps.pool.sks-keyservers.net/
 
 GPG_TMPDIR=$(mktemp -d)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-03 18:27 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-03 18:27 UTC (permalink / raw
  To: gentoo-commits

commit:     99ceddc02672cbca6e530dbca4cd804e00e4b8d1
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri May  3 18:26:39 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri May  3 18:26:48 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=99ceddc0

keyrings: prepare to split out keyring export for faster cycles

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash                      | 90 +++------------------------
 keyrings-export.bash                          | 33 ++++++++++
 create-dev-keyrings.bash => keyrings.inc.bash | 49 +++------------
 3 files changed, 48 insertions(+), 124 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 1a9fd76..3f65550 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -1,91 +1,15 @@
 #!/bin/bash
+# Import key updates from Keyservers
+#
+# TODO:
+# - Turn off export in this script
 
 OUTPUT_DIR=${1:-.}
-
-DEV_BASE='ou=devs,dc=gentoo,dc=org'
-SYSTEM_BASE='ou=system,dc=gentoo,dc=org'
-
-COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active))'
-NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
-RETIRED_RULE='(!(gentooStatus=active))'
-
-KS_GENTOO=hkps://keys.gentoo.org/
-KS_SKS=hkps://hkps.pool.sks-keyservers.net/
-
-GPG_TMPDIR=$(mktemp -d)
-clean_tmp() {
-	rm -rf "$GPG_TMPDIR"
-}
-
-# grab_ldap_fingerprints <ldap-rule>
-grab_ldap_fingerprints() {
-	ldapsearch "${@}" -Z gpgfingerprint -LLL |
-		sed -n -e '/^gpgfingerprint: /{s/^.*://;s/ //g;p}' |
-		sort -u |
-		grep -v undefined
-}
-
-# grab_keys <fingerprint>...
-grab_keys() {
-	local retries=0
-	local missing=()
-	local remaining=( "${@}" )
-
-	while :; do
-		timeout 5m  gpg --keyserver $KS_GENTOO -q --recv-keys "${remaining[@]}" || :
-		timeout 20m gpg --keyserver $KS_SKS -q --recv-keys "${remaining[@]}" || :
-		missing=()
-		for key in "${remaining[@]}"; do
-			gpg --list-public "${key}" &>/dev/null || missing+=( "${key}" )
-		done
-
-		[[ ${#missing[@]} -ne 0 ]] || break
-
-		# if we did not make progress, give it a few seconds and retry
-		if [[ ${#missing[@]} -eq ${#remaining[@]} ]]; then
-			if [[ $(( retries++ )) -gt 3 ]]; then
-				echo "Unable to fetch the following keys:"
-				printf '%s\n' "${missing[@]}"
-				break # if we hard-exit, the entire export will fail
-			fi
-			sleep 5
-		fi
-
-		remaining=( "${missing[@]}" )
-	done
-}
-
-# push_keys <fingerprint>...
-push_keys() {
-	# Only send keys that we have
-	local remaining=( $(gpg --with-colon --list-public "${@}" | sed -n '/^pub/{n; /fpr/p }' |cut -d: -f10) )
-	timeout 5m  gpg --keyserver $KS_GENTOO -q --send-keys "${remaining[@]}" || :
-	#timeout 5m  gpg --keyserver $KS_SKS -q --send-keys "${remaining[@]}" || :
-}
-
-export_keys() {
-	DST="$1"
-	TMP="${GPG_TMPDIR}"/$(basename "${DST}")
-	# Must not exist, otherwise GPG will give error
-	[[ -f "${TMP}" ]] && rm -f "${TMP}"
-	# 'gpg --export' returns zero if there was no error with the command itself
-	# If there are no keys in the export set, then it ALSO does not write the destination file
-	# and prints 'gpg: WARNING: nothing exported' to stderr
-	if gpg --output "$TMP" --export "${@}" && test -s "${TMP}"; then
-		chmod a+r "${TMP}"
-		mv "${TMP}" "${DST}"
-	else
-		echo "Unable to export keys to $DST"
-		exit 1
-	fi
-}
+BASEDIR="$(dirname "$0")"
+source "${BASEDIR}"/keyrings.inc.bash
 
 set -e
-
-COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
-NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
-RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
-SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
+export_ldap_data_to_env
 
 grab_keys "${SYSTEM_KEYS[@]}"
 export_keys "${OUTPUT_DIR}"/service-keys.gpg \

diff --git a/keyrings-export.bash b/keyrings-export.bash
new file mode 100755
index 0000000..06f5bab
--- /dev/null
+++ b/keyrings-export.bash
@@ -0,0 +1,33 @@
+#!/bin/bash
+# Export keys to keyrings
+#
+# TODO:
+# - only run the export if there was really a change
+# - requires keeping state to detect changes in keys, there is no usable mtime data in a key itself
+
+OUTPUT_DIR=${1:-.}
+BASEDIR="$(dirname "$0")"
+source "${BASEDIR}"/keyrings.inc.bash
+
+set -e
+export_ldap_data_to_env
+
+export_keys "${OUTPUT_DIR}"/service-keys.gpg \
+	"${SYSTEM_KEYS[@]}"
+
+export_keys "${OUTPUT_DIR}"/committing-devs.gpg \
+	"${COMMITTING_DEVS[@]}"
+
+export_keys "${OUTPUT_DIR}"/active-devs.gpg \
+	"${COMMITTING_DEVS[@]}" \
+	"${NONCOMMITTING_DEVS[@]}"
+
+export_keys "${OUTPUT_DIR}"/retired-devs.gpg \
+	"${RETIRED_DEVS[@]}"
+
+# Everybody together now
+export_keys "${OUTPUT_DIR}"/all-devs.gpg \
+	"${SYSTEM_KEYS[@]}" \
+	"${COMMITTING_DEVS[@]}" \
+	"${NONCOMMITTING_DEVS[@]}" \
+	"${RETIRED_DEVS[@]}"

diff --git a/create-dev-keyrings.bash b/keyrings.inc.bash
old mode 100755
new mode 100644
similarity index 63%
copy from create-dev-keyrings.bash
copy to keyrings.inc.bash
index 1a9fd76..052550d
--- a/create-dev-keyrings.bash
+++ b/keyrings.inc.bash
@@ -1,7 +1,5 @@
 #!/bin/bash
 
-OUTPUT_DIR=${1:-.}
-
 DEV_BASE='ou=devs,dc=gentoo,dc=org'
 SYSTEM_BASE='ou=system,dc=gentoo,dc=org'
 
@@ -16,6 +14,7 @@ GPG_TMPDIR=$(mktemp -d)
 clean_tmp() {
 	rm -rf "$GPG_TMPDIR"
 }
+trap clean_tmp EXIT
 
 # grab_ldap_fingerprints <ldap-rule>
 grab_ldap_fingerprints() {
@@ -80,42 +79,10 @@ export_keys() {
 	fi
 }
 
-set -e
-
-COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
-NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
-RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
-SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
-
-grab_keys "${SYSTEM_KEYS[@]}"
-export_keys "${OUTPUT_DIR}"/service-keys.gpg \
-	"${SYSTEM_KEYS[@]}"
-
-grab_keys "${COMMITTING_DEVS[@]}"
-export_keys "${OUTPUT_DIR}"/committing-devs.gpg \
-	"${COMMITTING_DEVS[@]}"
-
-grab_keys "${NONCOMMITTING_DEVS[@]}"
-export_keys "${OUTPUT_DIR}"/active-devs.gpg \
-	"${COMMITTING_DEVS[@]}" \
-	"${NONCOMMITTING_DEVS[@]}"
-
-# -- not all are on keyservers
-# -- and are unlikely to turn up now
-# -- this needs to fetch from some archive instead
-#grab_keys "${RETIRED_DEVS[@]}"
-export_keys "${OUTPUT_DIR}"/retired-devs.gpg \
-	"${RETIRED_DEVS[@]}"
-
-# Everybody together now
-export_keys "${OUTPUT_DIR}"/all-devs.gpg \
-	"${SYSTEM_KEYS[@]}" \
-	"${COMMITTING_DEVS[@]}" \
-	"${NONCOMMITTING_DEVS[@]}" \
-	"${RETIRED_DEVS[@]}"
-
-# Populate keys.gentoo.org with the keys we have, since they might have come from SKS
-push_keys "${SYSTEM_KEYS[@]}"
-push_keys "${COMMITTING_DEVS[@]}"
-push_keys "${NONCOMMITTING_DEVS[@]}"
-push_keys "${RETIRED_DEVS[@]}"
+# populate common variables
+export_ldap_data_to_env() {
+	export COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
+	export NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
+	export RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+	export SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
+}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-04  3:22 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-04  3:22 UTC (permalink / raw
  To: gentoo-commits

commit:     daec48a7895d7a4b04d55ddf35397fb07b48f68b
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 03:22:15 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  4 03:22:15 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=daec48a7

keyrings: prepare to flip to new scripts

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash             |  5 +++++
 keyrings-export-keys.gentoo.org.bash | 18 ++++++++++++++++++
 keyrings-import-keys.gentoo.org.bash | 23 +++++++++++++++++++++++
 keyrings-import-sks.bash             | 23 +++++++++++++++++++++++
 keyrings.inc.bash                    | 29 +++++++++++++++++++----------
 5 files changed, 88 insertions(+), 10 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 3f65550..f2772d8 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -11,6 +11,9 @@ source "${BASEDIR}"/keyrings.inc.bash
 set -e
 export_ldap_data_to_env
 
+export KEYSERVERS=( "${KS_SKS}" "${KS_GENTOO}" )
+export KEYSERVER_TIMEOUT=20m
+
 grab_keys "${SYSTEM_KEYS[@]}"
 export_keys "${OUTPUT_DIR}"/service-keys.gpg \
 	"${SYSTEM_KEYS[@]}"
@@ -39,6 +42,8 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \
 	"${RETIRED_DEVS[@]}"
 
 # Populate keys.gentoo.org with the keys we have, since they might have come from SKS
+export KEYSERVERS=( "${KS_GENTOO}" )
+export KEYSERVER_TIMEOUT=20m
 push_keys "${SYSTEM_KEYS[@]}"
 push_keys "${COMMITTING_DEVS[@]}"
 push_keys "${NONCOMMITTING_DEVS[@]}"

diff --git a/keyrings-export-keys.gentoo.org.bash b/keyrings-export-keys.gentoo.org.bash
new file mode 100755
index 0000000..38a3478
--- /dev/null
+++ b/keyrings-export-keys.gentoo.org.bash
@@ -0,0 +1,18 @@
+#!/bin/bash
+# Export key updates to Keyservers: keys.gentoo.org
+
+OUTPUT_DIR=${1:-.}
+BASEDIR="$(dirname "$0")"
+source "${BASEDIR}"/keyrings.inc.bash
+
+set -e
+export_ldap_data_to_env
+
+export KEYSERVERS=( "${KS_GENTOO}" )
+export KEYSERVER_TIMEOUT=5m
+
+# Populate keys.gentoo.org with the keys we have, since they might have come from SKS
+push_keys "${SYSTEM_KEYS[@]}"
+push_keys "${COMMITTING_DEVS[@]}"
+push_keys "${NONCOMMITTING_DEVS[@]}"
+push_keys "${RETIRED_DEVS[@]}"

diff --git a/keyrings-import-keys.gentoo.org.bash b/keyrings-import-keys.gentoo.org.bash
new file mode 100755
index 0000000..3328e2c
--- /dev/null
+++ b/keyrings-import-keys.gentoo.org.bash
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Import key updates from Keyservers: keys.gentoo.org
+#
+# TODO:
+# - Turn off export in this script
+
+OUTPUT_DIR=${1:-.}
+BASEDIR="$(dirname "$0")"
+source "${BASEDIR}"/keyrings.inc.bash
+
+set -e
+export_ldap_data_to_env
+
+export KEYSERVERS=( "${KS_GENTOO}" )
+export KEYSERVER_TIMEOUT=5m
+
+grab_keys "${SYSTEM_KEYS[@]}"
+grab_keys "${COMMITTING_DEVS[@]}"
+grab_keys "${NONCOMMITTING_DEVS[@]}"
+# -- not all are on keyservers
+# -- and are unlikely to turn up now
+# -- this needs to fetch from some archive instead
+grab_keys "${RETIRED_DEVS[@]}"

diff --git a/keyrings-import-sks.bash b/keyrings-import-sks.bash
new file mode 100755
index 0000000..3d04ebc
--- /dev/null
+++ b/keyrings-import-sks.bash
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Import key updates from Keyservers
+#
+# TODO:
+# - Turn off export in this script
+
+OUTPUT_DIR=${1:-.}
+BASEDIR="$(dirname "$0")"
+source "${BASEDIR}"/keyrings.inc.bash
+
+set -e
+export_ldap_data_to_env
+
+export KEYSERVER=( ${KS_SKS} )
+export KEYSERVER_TIMEOUT=20m
+
+grab_keys "${SYSTEM_KEYS[@]}"
+grab_keys "${COMMITTING_DEVS[@]}"
+grab_keys "${NONCOMMITTING_DEVS[@]}"
+# -- not all are on keyservers
+# -- and are unlikely to turn up now
+# -- this needs to fetch from some archive instead
+#grab_keys "${RETIRED_DEVS[@]}"

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 052550d..427a6f2 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -9,12 +9,7 @@ RETIRED_RULE='(!(gentooStatus=active))'
 
 KS_GENTOO=hkps://keys.gentoo.org/
 KS_SKS=hkps://hkps.pool.sks-keyservers.net/
-
-GPG_TMPDIR=$(mktemp -d)
-clean_tmp() {
-	rm -rf "$GPG_TMPDIR"
-}
-trap clean_tmp EXIT
+KEYSERVERS=( ) # empty by default
 
 # grab_ldap_fingerprints <ldap-rule>
 grab_ldap_fingerprints() {
@@ -30,9 +25,11 @@ grab_keys() {
 	local missing=()
 	local remaining=( "${@}" )
 
+	KEYSERVER_TIMEOUT=${KEYSERVER_TIMEOUT:=1m}
 	while :; do
-		timeout 5m  gpg --keyserver $KS_GENTOO -q --recv-keys "${remaining[@]}" || :
-		timeout 20m gpg --keyserver $KS_SKS -q --recv-keys "${remaining[@]}" || :
+		for ks in "${KEYSERVERS[@]}" ; do
+			timeout ${KEYSERVER_TIMEOUT}  gpg --keyserver "$ks" -q --recv-keys "${remaining[@]}" || :
+		done
 		missing=()
 		for key in "${remaining[@]}"; do
 			gpg --list-public "${key}" &>/dev/null || missing+=( "${key}" )
@@ -58,12 +55,24 @@ grab_keys() {
 push_keys() {
 	# Only send keys that we have
 	local remaining=( $(gpg --with-colon --list-public "${@}" | sed -n '/^pub/{n; /fpr/p }' |cut -d: -f10) )
-	timeout 5m  gpg --keyserver $KS_GENTOO -q --send-keys "${remaining[@]}" || :
-	#timeout 5m  gpg --keyserver $KS_SKS -q --send-keys "${remaining[@]}" || :
+	KEYSERVER_TIMEOUT=${KEYSERVER_TIMEOUT:=1m}
+	for ks in "${KEYSERVERS[@]}" ; do
+		timeout 5m  ${KEYSERVER_TIMEOUT} g --keyserver "$ks" -q --send-keys "${remaining[@]}" || :
+	done
+}
+
+
+clean_tmp() {
+	[ -n "$GPG_TMPDIR" ] && [ -d "$GPG_TMPDIR" ] && rm -rf "$GPG_TMPDIR"
+}
+setup_tmp() {
+	export GPG_TMPDIR=$(mktemp -d)
+	trap clean_tmp EXIT
 }
 
 export_keys() {
 	DST="$1"
+	setup_tmp
 	TMP="${GPG_TMPDIR}"/$(basename "${DST}")
 	# Must not exist, otherwise GPG will give error
 	[[ -f "${TMP}" ]] && rm -f "${TMP}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-04  3:34 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-04  3:34 UTC (permalink / raw
  To: gentoo-commits

commit:     c4451a64cb3c474c5ecc9609c6534924fb063003
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 03:33:53 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  4 03:33:53 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c4451a64

keyrings: shellcheck validation

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-export.bash                               |  1 +
 ....org.bash => keyrings-recv-keys.gentoo.org.bash |  2 +-
 keyrings-import-sks.bash => keyrings-recv-sks.bash |  2 +-
 ....org.bash => keyrings-send-keys.gentoo.org.bash |  2 +-
 keyrings.inc.bash                                  | 22 +++++++++++++---------
 5 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 06f5bab..e2bbb14 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -7,6 +7,7 @@
 
 OUTPUT_DIR=${1:-.}
 BASEDIR="$(dirname "$0")"
+# shellcheck source=./keyrings.inc.bash
 source "${BASEDIR}"/keyrings.inc.bash
 
 set -e

diff --git a/keyrings-import-keys.gentoo.org.bash b/keyrings-recv-keys.gentoo.org.bash
similarity index 92%
rename from keyrings-import-keys.gentoo.org.bash
rename to keyrings-recv-keys.gentoo.org.bash
index 3328e2c..ee8feeb 100755
--- a/keyrings-import-keys.gentoo.org.bash
+++ b/keyrings-recv-keys.gentoo.org.bash
@@ -4,8 +4,8 @@
 # TODO:
 # - Turn off export in this script
 
-OUTPUT_DIR=${1:-.}
 BASEDIR="$(dirname "$0")"
+# shellcheck source=./keyrings.inc.bash
 source "${BASEDIR}"/keyrings.inc.bash
 
 set -e

diff --git a/keyrings-import-sks.bash b/keyrings-recv-sks.bash
similarity index 92%
rename from keyrings-import-sks.bash
rename to keyrings-recv-sks.bash
index 3d04ebc..c5e1d1c 100755
--- a/keyrings-import-sks.bash
+++ b/keyrings-recv-sks.bash
@@ -4,8 +4,8 @@
 # TODO:
 # - Turn off export in this script
 
-OUTPUT_DIR=${1:-.}
 BASEDIR="$(dirname "$0")"
+# shellcheck source=./keyrings.inc.bash
 source "${BASEDIR}"/keyrings.inc.bash
 
 set -e

diff --git a/keyrings-export-keys.gentoo.org.bash b/keyrings-send-keys.gentoo.org.bash
similarity index 91%
rename from keyrings-export-keys.gentoo.org.bash
rename to keyrings-send-keys.gentoo.org.bash
index 38a3478..7e16267 100755
--- a/keyrings-export-keys.gentoo.org.bash
+++ b/keyrings-send-keys.gentoo.org.bash
@@ -1,8 +1,8 @@
 #!/bin/bash
 # Export key updates to Keyservers: keys.gentoo.org
 
-OUTPUT_DIR=${1:-.}
 BASEDIR="$(dirname "$0")"
+# shellcheck source=./keyrings.inc.bash
 source "${BASEDIR}"/keyrings.inc.bash
 
 set -e

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 427a6f2..c885e8d 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -7,9 +7,13 @@ COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active
 NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
 RETIRED_RULE='(!(gentooStatus=active))'
 
-KS_GENTOO=hkps://keys.gentoo.org/
-KS_SKS=hkps://hkps.pool.sks-keyservers.net/
-KEYSERVERS=( ) # empty by default
+export KS_GENTOO=hkps://keys.gentoo.org/
+export KS_SKS=hkps://hkps.pool.sks-keyservers.net/
+export KEYSERVERS=( ) # empty by default
+export COMMITTING_DEVS=( )
+export NONCOMMITTING_DEVS=( )
+export RETIRED_DEVS=( )
+export SYSTEM_KEYS=( )
 
 # grab_ldap_fingerprints <ldap-rule>
 grab_ldap_fingerprints() {
@@ -61,12 +65,12 @@ push_keys() {
 	done
 }
 
-
+export GPG_TMPDIR=''
 clean_tmp() {
 	[ -n "$GPG_TMPDIR" ] && [ -d "$GPG_TMPDIR" ] && rm -rf "$GPG_TMPDIR"
 }
 setup_tmp() {
-	export GPG_TMPDIR=$(mktemp -d)
+	GPG_TMPDIR=$(mktemp -d)
 	trap clean_tmp EXIT
 }
 
@@ -90,8 +94,8 @@ export_keys() {
 
 # populate common variables
 export_ldap_data_to_env() {
-	export COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
-	export NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
-	export RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
-	export SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
+	export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
+	export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
+	export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+	export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 }


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-04  3:37 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-04  3:37 UTC (permalink / raw
  To: gentoo-commits

commit:     9700d70efd5e5a1fc5d4f6e67978871e511242f3
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 03:37:46 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  4 03:37:46 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=9700d70e

keyrings: workaround export bug for now

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-export.bash               | 4 ++++
 keyrings-recv-keys.gentoo.org.bash | 4 ++++
 keyrings-recv-sks.bash             | 6 +++++-
 keyrings-send-keys.gentoo.org.bash | 4 ++++
 keyrings.inc.bash                  | 1 +
 5 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index e2bbb14..143cda2 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -12,6 +12,10 @@ source "${BASEDIR}"/keyrings.inc.bash
 
 set -e
 export_ldap_data_to_env
+export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
+export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
+export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 
 export_keys "${OUTPUT_DIR}"/service-keys.gpg \
 	"${SYSTEM_KEYS[@]}"

diff --git a/keyrings-recv-keys.gentoo.org.bash b/keyrings-recv-keys.gentoo.org.bash
index ee8feeb..846d242 100755
--- a/keyrings-recv-keys.gentoo.org.bash
+++ b/keyrings-recv-keys.gentoo.org.bash
@@ -10,6 +10,10 @@ source "${BASEDIR}"/keyrings.inc.bash
 
 set -e
 export_ldap_data_to_env
+export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
+export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
+export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 
 export KEYSERVERS=( "${KS_GENTOO}" )
 export KEYSERVER_TIMEOUT=5m

diff --git a/keyrings-recv-sks.bash b/keyrings-recv-sks.bash
index c5e1d1c..4e613b8 100755
--- a/keyrings-recv-sks.bash
+++ b/keyrings-recv-sks.bash
@@ -10,8 +10,12 @@ source "${BASEDIR}"/keyrings.inc.bash
 
 set -e
 export_ldap_data_to_env
+export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
+export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
+export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 
-export KEYSERVER=( ${KS_SKS} )
+export KEYSERVERS=( "${KS_SKS}" )
 export KEYSERVER_TIMEOUT=20m
 
 grab_keys "${SYSTEM_KEYS[@]}"

diff --git a/keyrings-send-keys.gentoo.org.bash b/keyrings-send-keys.gentoo.org.bash
index 7e16267..ae67acf 100755
--- a/keyrings-send-keys.gentoo.org.bash
+++ b/keyrings-send-keys.gentoo.org.bash
@@ -7,6 +7,10 @@ source "${BASEDIR}"/keyrings.inc.bash
 
 set -e
 export_ldap_data_to_env
+export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
+export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
+export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 
 export KEYSERVERS=( "${KS_GENTOO}" )
 export KEYSERVER_TIMEOUT=5m

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index c885e8d..0c45e68 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -93,6 +93,7 @@ export_keys() {
 }
 
 # populate common variables
+# TODO: for unclear reason this does not populate correctly inside a function
 export_ldap_data_to_env() {
 	export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
 	export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-04  3:39 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-04  3:39 UTC (permalink / raw
  To: gentoo-commits

commit:     faf8249fd0204de022caa61f215a723203d2e94d
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 03:39:42 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  4 03:39:42 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=faf8249f

keyrings: fix timeout

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 0c45e68..20f8db9 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -32,7 +32,7 @@ grab_keys() {
 	KEYSERVER_TIMEOUT=${KEYSERVER_TIMEOUT:=1m}
 	while :; do
 		for ks in "${KEYSERVERS[@]}" ; do
-			timeout ${KEYSERVER_TIMEOUT}  gpg --keyserver "$ks" -q --recv-keys "${remaining[@]}" || :
+			timeout ${KEYSERVER_TIMEOUT} gpg --keyserver "$ks" -q --recv-keys "${remaining[@]}" || :
 		done
 		missing=()
 		for key in "${remaining[@]}"; do
@@ -61,7 +61,7 @@ push_keys() {
 	local remaining=( $(gpg --with-colon --list-public "${@}" | sed -n '/^pub/{n; /fpr/p }' |cut -d: -f10) )
 	KEYSERVER_TIMEOUT=${KEYSERVER_TIMEOUT:=1m}
 	for ks in "${KEYSERVERS[@]}" ; do
-		timeout 5m  ${KEYSERVER_TIMEOUT} g --keyserver "$ks" -q --send-keys "${remaining[@]}" || :
+		timeout ${KEYSERVER_TIMEOUT} g --keyserver "$ks" -q --send-keys "${remaining[@]}" || :
 	done
 }
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-04  3:40 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-04  3:40 UTC (permalink / raw
  To: gentoo-commits

commit:     ee00780cd47efb9282d1a266ae0192926b96de4e
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 03:40:28 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  4 03:40:28 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ee00780c

keyrings: fix send typo

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 20f8db9..b99eae6 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -61,7 +61,7 @@ push_keys() {
 	local remaining=( $(gpg --with-colon --list-public "${@}" | sed -n '/^pub/{n; /fpr/p }' |cut -d: -f10) )
 	KEYSERVER_TIMEOUT=${KEYSERVER_TIMEOUT:=1m}
 	for ks in "${KEYSERVERS[@]}" ; do
-		timeout ${KEYSERVER_TIMEOUT} g --keyserver "$ks" -q --send-keys "${remaining[@]}" || :
+		timeout ${KEYSERVER_TIMEOUT} gpg --keyserver "$ks" -q --send-keys "${remaining[@]}" || :
 	done
 }
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-04 18:58 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-04 18:58 UTC (permalink / raw
  To: gentoo-commits

commit:     b20516582a73da289bf114ec9b68399671cd2bf9
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 18:58:28 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  4 18:58:28 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=b2051658

keyrings: disable fetch of retired again

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-recv-keys.gentoo.org.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings-recv-keys.gentoo.org.bash b/keyrings-recv-keys.gentoo.org.bash
index 846d242..916fe54 100755
--- a/keyrings-recv-keys.gentoo.org.bash
+++ b/keyrings-recv-keys.gentoo.org.bash
@@ -24,4 +24,4 @@ grab_keys "${NONCOMMITTING_DEVS[@]}"
 # -- not all are on keyservers
 # -- and are unlikely to turn up now
 # -- this needs to fetch from some archive instead
-grab_keys "${RETIRED_DEVS[@]}"
+#grab_keys "${RETIRED_DEVS[@]}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-04 19:24 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-04 19:24 UTC (permalink / raw
  To: gentoo-commits

commit:     39b69cb7d63d14f2816fd864eb60595680cfc94a
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 19:24:35 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  4 19:24:35 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=39b69cb7

keyrings: check for any change before renaming new dump

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 54f0e8c..2b5ad9a 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -83,13 +83,27 @@ export_keys() {
 	# 'gpg --export' returns zero if there was no error with the command itself
 	# If there are no keys in the export set, then it ALSO does not write the destination file
 	# and prints 'gpg: WARNING: nothing exported' to stderr
-	if gpg --output "$TMP" --export "${@}" && test -s "${TMP}"; then
-		chmod a+r "${TMP}"
-		mv "${TMP}" "${DST}"
-	else
-		echo "Unable to export keys to $DST"
+	if ! gpg --output "$TMP" --export "${@}"; then
+		echo "Unable to export keys to $DST: GPG returned non-zero"
+		exit 1
+	fi
+	if ! test -s "${TMP}"; then
+		echo "Unable to export keys to $DST: GPG returned zero but generated empty file"
 		exit 1
 	fi
+	# We have a non-empty output now!
+	# Capture it in a textual format that can be compared for changes, but make sure it exports correctly
+	if ! gpg --list-packets "${TMP}" >"${TMP}.packets.txt"; then
+		echo "Unable to export keys to $DST: GPG failed to list packets"
+		exit 1
+	fi
+	# Check if the textual format has changed at all, and emit the new version
+	# if there are ANY changes at all.
+	if ! cmp -s "${DST}.packets.txt" "${TMP}.packets.txt"; then
+		chmod a+r "${TMP}"
+		mv -f "${TMP}" "${DST}"
+		mv -f "${TMP}.packets.txt" "${DST}.packets.txt"
+	fi
 }
 
 # populate common variables


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-04 19:24 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-04 19:24 UTC (permalink / raw
  To: gentoo-commits

commit:     642e96284507ac3a2964bb69123dad54cbde0dfd
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 19:23:25 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  4 19:23:25 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=642e9628

keyrings: export filename should not be passed as a key!

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 1 +
 1 file changed, 1 insertion(+)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index bf4e4fe..54f0e8c 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -75,6 +75,7 @@ setup_tmp() {
 
 export_keys() {
 	DST="$1"
+	shift
 	setup_tmp
 	TMP="${GPG_TMPDIR}"/$(basename "${DST}")
 	# Must not exist, otherwise GPG will give error


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-04 19:24 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-04 19:24 UTC (permalink / raw
  To: gentoo-commits

commit:     b0984189c9e39b699dc7664e8669b169b060b227
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 19:22:48 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  4 19:22:48 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=b0984189

keyrings: improve ldap query

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index b99eae6..bf4e4fe 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -18,9 +18,8 @@ export SYSTEM_KEYS=( )
 # grab_ldap_fingerprints <ldap-rule>
 grab_ldap_fingerprints() {
 	ldapsearch "${@}" -Z gpgfingerprint -LLL |
-		sed -n -e '/^gpgfingerprint: /{s/^.*://;s/ //g;p}' |
-		sort -u |
-		grep -v undefined
+		sed -n -e '/: undefined/d' -e '/^gpgfingerprint: /{s/^.*://;s/ //g;p}' |
+		sort -u
 }
 
 # grab_keys <fingerprint>...


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-05  5:20 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-05  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     d264d488bf1dcb52c562b37afdc11b9cc11a5b03
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun May  5 05:19:47 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun May  5 05:19:47 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d264d488

keyrings: fix cleanup bug

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 2b5ad9a..a3879d5 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -69,8 +69,11 @@ clean_tmp() {
 	[ -n "$GPG_TMPDIR" ] && [ -d "$GPG_TMPDIR" ] && rm -rf "$GPG_TMPDIR"
 }
 setup_tmp() {
-	GPG_TMPDIR=$(mktemp -d)
-	trap clean_tmp EXIT
+	if [ -z "${GPG_TMPDIR}" ]; then
+		GPG_TMPDIR=$(mktemp -d)
+		export GPG_TMPDIR
+		trap clean_tmp EXIT
+	fi
 }
 
 export_keys() {
@@ -104,6 +107,8 @@ export_keys() {
 		mv -f "${TMP}" "${DST}"
 		mv -f "${TMP}.packets.txt" "${DST}.packets.txt"
 	fi
+	# Cleanup anyway
+	rm -f "${TMP}.packets.txt" "${TMP}"
 }
 
 # populate common variables


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-05-05  5:20 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-05-05  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     b08c54c638735f529bc614d7ad750e028308c1b9
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun May  5 05:20:08 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun May  5 05:20:08 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=b08c54c6

keyrings: extra cleanup is good

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-export.bash               | 2 ++
 keyrings-recv-keys.gentoo.org.bash | 2 ++
 keyrings-recv-sks.bash             | 2 ++
 keyrings-send-keys.gentoo.org.bash | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 143cda2..5b6dc17 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -36,3 +36,5 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \
 	"${COMMITTING_DEVS[@]}" \
 	"${NONCOMMITTING_DEVS[@]}" \
 	"${RETIRED_DEVS[@]}"
+
+clean_tmp

diff --git a/keyrings-recv-keys.gentoo.org.bash b/keyrings-recv-keys.gentoo.org.bash
index 916fe54..6f3ac0e 100755
--- a/keyrings-recv-keys.gentoo.org.bash
+++ b/keyrings-recv-keys.gentoo.org.bash
@@ -25,3 +25,5 @@ grab_keys "${NONCOMMITTING_DEVS[@]}"
 # -- and are unlikely to turn up now
 # -- this needs to fetch from some archive instead
 #grab_keys "${RETIRED_DEVS[@]}"
+
+clean_tmp

diff --git a/keyrings-recv-sks.bash b/keyrings-recv-sks.bash
index 4e613b8..65607d6 100755
--- a/keyrings-recv-sks.bash
+++ b/keyrings-recv-sks.bash
@@ -25,3 +25,5 @@ grab_keys "${NONCOMMITTING_DEVS[@]}"
 # -- and are unlikely to turn up now
 # -- this needs to fetch from some archive instead
 #grab_keys "${RETIRED_DEVS[@]}"
+
+clean_tmp

diff --git a/keyrings-send-keys.gentoo.org.bash b/keyrings-send-keys.gentoo.org.bash
index ae67acf..1691867 100755
--- a/keyrings-send-keys.gentoo.org.bash
+++ b/keyrings-send-keys.gentoo.org.bash
@@ -20,3 +20,5 @@ push_keys "${SYSTEM_KEYS[@]}"
 push_keys "${COMMITTING_DEVS[@]}"
 push_keys "${NONCOMMITTING_DEVS[@]}"
 push_keys "${RETIRED_DEVS[@]}"
+
+clean_tmp


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-06-29  3:51 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-06-29  3:51 UTC (permalink / raw
  To: gentoo-commits

commit:     6781035b122cfae1b111f332cba5fe2608f4b59e
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 29 03:51:17 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Jun 29 03:51:17 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6781035b

keyrings.inc.bash: handle emtpy set of keyservers passed

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index a3879d5..5ed1fbb 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -29,6 +29,8 @@ grab_keys() {
 	local remaining=( "${@}" )
 
 	KEYSERVER_TIMEOUT=${KEYSERVER_TIMEOUT:=1m}
+	# quickly handle empty keyservers set
+	[ "${#KEYSERVERS[@]}" -eq 0 ] && return
 	while :; do
 		for ks in "${KEYSERVERS[@]}" ; do
 			timeout ${KEYSERVER_TIMEOUT} gpg --keyserver "$ks" -q --recv-keys "${remaining[@]}" || :
@@ -56,6 +58,8 @@ grab_keys() {
 
 # push_keys <fingerprint>...
 push_keys() {
+	# quickly handle empty keyservers set
+	[ "${#KEYSERVERS[@]}" -eq 0 ] && return
 	# Only send keys that we have
 	local remaining=( $(gpg --with-colon --list-public "${@}" | sed -n '/^pub/{n; /fpr/p }' |cut -d: -f10) )
 	KEYSERVER_TIMEOUT=${KEYSERVER_TIMEOUT:=1m}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-06-29  3:51 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-06-29  3:51 UTC (permalink / raw
  To: gentoo-commits

commit:     c6ad370319bdcea02d8e58753f4d9bdd6c5b3881
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 29 03:51:48 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Jun 29 03:51:48 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c6ad3703

keyrings.inc.bash: disable requests to SKS pending security announcement

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 5ed1fbb..5306275 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -8,7 +8,7 @@ NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=
 RETIRED_RULE='(!(gentooStatus=active))'
 
 export KS_GENTOO=hkps://keys.gentoo.org/
-export KS_SKS=hkps://hkps.pool.sks-keyservers.net/
+#export KS_SKS=hkps://hkps.pool.sks-keyservers.net/ # Disabled pending security announcement
 export KEYSERVERS=( ) # empty by default
 export COMMITTING_DEVS=( )
 export NONCOMMITTING_DEVS=( )


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-06-29  3:57 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-06-29  3:57 UTC (permalink / raw
  To: gentoo-commits

commit:     23bc2a9ee83fd51687984befbb20a9d876b87569
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 29 03:57:30 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Jun 29 03:57:30 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=23bc2a9e

keyrings: enable OpenPGP Hagrid server

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 2 +-
 keyrings-recv-sks.bash   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index f2772d8..65b2b14 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -11,7 +11,7 @@ source "${BASEDIR}"/keyrings.inc.bash
 set -e
 export_ldap_data_to_env
 
-export KEYSERVERS=( "${KS_SKS}" "${KS_GENTOO}" )
+export KEYSERVERS=( "${KS_SKS}" "${KS_OPENPGP}" "${KS_GENTOO}" )
 export KEYSERVER_TIMEOUT=20m
 
 grab_keys "${SYSTEM_KEYS[@]}"

diff --git a/keyrings-recv-sks.bash b/keyrings-recv-sks.bash
index 65607d6..5ab91c3 100755
--- a/keyrings-recv-sks.bash
+++ b/keyrings-recv-sks.bash
@@ -15,7 +15,7 @@ export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONC
 export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
 export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 
-export KEYSERVERS=( "${KS_SKS}" )
+export KEYSERVERS=( "${KS_SKS}" "${KS_OPENPGP}" )
 export KEYSERVER_TIMEOUT=20m
 
 grab_keys "${SYSTEM_KEYS[@]}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-06-29  3:57 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2019-06-29  3:57 UTC (permalink / raw
  To: gentoo-commits

commit:     12817215e34210e822b02382d23ce08903d5d71c
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 29 03:57:03 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Jun 29 03:57:03 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=12817215

keyrings.inc.bash: add Hagrid-based OpenPGP server

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 1 +
 1 file changed, 1 insertion(+)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 5306275..05d40ae 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -9,6 +9,7 @@ RETIRED_RULE='(!(gentooStatus=active))'
 
 export KS_GENTOO=hkps://keys.gentoo.org/
 #export KS_SKS=hkps://hkps.pool.sks-keyservers.net/ # Disabled pending security announcement
+export KS_OPENPGP=hkps://keys.openpgp.org/ # runs Hagrid
 export KEYSERVERS=( ) # empty by default
 export COMMITTING_DEVS=( )
 export NONCOMMITTING_DEVS=( )


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-03 12:51 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-03 12:51 UTC (permalink / raw
  To: gentoo-commits

commit:     8703e8b898ad16c420893130e6265af871e5e0dc
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  3 12:51:41 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul  3 12:51:41 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8703e8b8

gpyutils: PyPy3 is at 3.6 now

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

 Makefile.gpyutils | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index d24042d..9d5f613 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -10,7 +10,7 @@ upgr_base = $(outdir)/35-to-36.txt $(outdir)/36-to-37.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
-upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/pypy3-to-35.txt
+upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/pypy3-to-36.txt
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg)
@@ -59,9 +59,9 @@ $(outdir)/36-to-37-stablereq.txt: $(timestamp)
 	gpy-upgrade-impl -s python3_6 python3_7 > $@.new
 	mv $@.new $@
 
-$(outdir)/pypy3-to-35.txt: $(timestamp)
+$(outdir)/pypy3-to-36.txt: $(timestamp)
 	mkdir -p $(outdir)
-	gpy-upgrade-impl pypy3 python3_5 > $@.new
+	gpy-upgrade-impl pypy3 python3_6 > $@.new
 	mv $@.new $@
 
 $(outdir)/missing-meta.txt: $(timestamp)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-03 12:51 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-03 12:51 UTC (permalink / raw
  To: gentoo-commits

commit:     7dc2a39faa51ca49a1eb1abde079f73bc916f6fd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  3 12:51:02 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul  3 12:51:02 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7dc2a39f

gpyutils: py3.4 is long gone

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

 Makefile.gpyutils | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 525057e..d24042d 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -6,7 +6,7 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 outdir = /dev/null
 
 # upgrades for stable impls
-upgr_base = $(outdir)/34-to-35.txt $(outdir)/35-to-36.txt $(outdir)/36-to-37.txt
+upgr_base = $(outdir)/35-to-36.txt $(outdir)/36-to-37.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
@@ -39,16 +39,6 @@ $(outdir)/depcheck.txt: $(timestamp)
 	gpy-depcheck > $@.new
 	mv $@.new $@
 
-$(outdir)/34-to-35.txt: $(timestamp)
-	mkdir -p $(outdir)
-	gpy-upgrade-impl python3_4 python3_5 > $@.new
-	mv $@.new $@
-
-$(outdir)/34-to-35-stablereq.txt: $(timestamp)
-	mkdir -p $(outdir)
-	gpy-upgrade-impl -s python3_4 python3_5 > $@.new
-	mv $@.new $@
-
 $(outdir)/35-to-36.txt: $(timestamp)
 	mkdir -p $(outdir)
 	gpy-upgrade-impl python3_5 python3_6 > $@.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-08  8:03 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-08  8:03 UTC (permalink / raw
  To: gentoo-commits

commit:     a4bf698c1c01521c5d3e98d0c3d5af351916e376
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  8 08:02:42 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul  8 08:02:53 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a4bf698c

pkgcheck2html: Bump

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 1bfec8e..ab24c4a 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 1bfec8e37a2a770e47ed0971c4c3684292073ace
+Subproject commit ab24c4adda6ce96c8b0b1df526c27134042d8726


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-08  8:49 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-08  8:49 UTC (permalink / raw
  To: gentoo-commits

commit:     9e32298bf6a1b2ff52f308150ecbe55c1631bbe5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  8 08:49:31 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul  8 08:49:31 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=9e32298b

pkgcheck2html: Bump

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index ab24c4a..8ed0875 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit ab24c4adda6ce96c8b0b1df526c27134042d8726
+Subproject commit 8ed0875838f96390f9db389827fdeca60f8f057c


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-11  3:21 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-11  3:21 UTC (permalink / raw
  To: gentoo-commits

commit:     dab9881b8e4a4ab30415c60a54392c9dcc261aa6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 11 03:21:22 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul 11 03:21:35 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=dab9881b

pkgcheck2html: Bump to disable reordering by msg

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 8ed0875..6750297 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 8ed0875838f96390f9db389827fdeca60f8f057c
+Subproject commit 67502972f75706f1edb33b6d716cd675fd33d583


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-15  8:34 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2019-07-15  8:34 UTC (permalink / raw
  To: gentoo-commits

commit:     a23d8d24d29f483c4f0bc8a9315523d90149bc95
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 15 08:32:14 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jul 15 08:32:14 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a23d8d24

find-binary-files.sh: Avoid false positives for image/svg.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 find-binary-files.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index 6714422..2c08ca8 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 2014-2018 Gentoo Foundation
+# Copyright 2014-2019 Ulrich Müller
 # Distributed under the terms of the GNU GPL version 2 or later
 # Author: Ulrich Müller <ulm@gentoo.org>
 
@@ -32,6 +32,7 @@ find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
         text/*) ;;                            # text file
         application/*"; charset=us-ascii") ;;
         application/*"; charset=utf-8") ;;
+        "image/svg; charset=us-ascii") ;;     # SVG image
         "image/svg+xml; charset=us-ascii") ;; # SVG image
         "image/x-xpmi; charset=us-ascii") ;;  # XPM image
         "message/rfc822; charset=us-ascii") ;;


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-15 11:58 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-15 11:58 UTC (permalink / raw
  To: gentoo-commits

commit:     6eb3ee215135ff6e72381dd10986719bd22365d6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 15 11:57:52 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 15 11:57:52 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6eb3ee21

eclass-eapi-matrix: Avoid crash when @SUPPORTED_EAPIS is false

Avoid crashing on assert when @SUPPORTED_EAPIS indicates that an EAPI
is not supported yet ebuilds actually use it.  Instead, report this
as '?!'

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

 eclass-eapi-matrix.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass-eapi-matrix.py b/eclass-eapi-matrix.py
index 8117d63..452660f 100755
--- a/eclass-eapi-matrix.py
+++ b/eclass-eapi-matrix.py
@@ -83,8 +83,10 @@ def format_table(data):
         supp_eapis, eapis = ecl_data
         for eapi in all_eapis:
             if supp_eapis is not None and eapi not in supp_eapis:
-                assert eapis.get(eapi, 0) == 0
-                line['eapi_'+eapi] = 'xx'
+                if eapis.get(eapi, 0) > 0:
+                    line['eapi_'+eapi] = eapis[eapi] + '?!'
+                else:
+                    line['eapi_'+eapi] = 'xx'
             else:
                 line['eapi_'+eapi] = eapis.get(eapi, 0)
         ret += format_str.format(**line)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-15 11:59 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-15 11:59 UTC (permalink / raw
  To: gentoo-commits

commit:     e1bae914feb92e8694572ca02bc11184d10d85a7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 15 11:59:34 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 15 11:59:34 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e1bae914

eclass-eapi-matrix: Fix python syntax

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

 eclass-eapi-matrix.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass-eapi-matrix.py b/eclass-eapi-matrix.py
index 452660f..0f465e1 100755
--- a/eclass-eapi-matrix.py
+++ b/eclass-eapi-matrix.py
@@ -84,7 +84,7 @@ def format_table(data):
         for eapi in all_eapis:
             if supp_eapis is not None and eapi not in supp_eapis:
                 if eapis.get(eapi, 0) > 0:
-                    line['eapi_'+eapi] = eapis[eapi] + '?!'
+                    line['eapi_'+eapi] = '%d?!' % eapis[eapi]
                 else:
                     line['eapi_'+eapi] = 'xx'
             else:


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-15 13:35 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-15 13:35 UTC (permalink / raw
  To: gentoo-commits

commit:     05fc00e0fdb6700a51369ba99e39ad60765ce997
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 15 13:35:03 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 15 13:35:03 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=05fc00e0

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 6750297..2dff53b 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 67502972f75706f1edb33b6d716cd675fd33d583
+Subproject commit 2dff53bb0590826f33faab7e524d99716138c793


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-15 15:29 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-15 15:29 UTC (permalink / raw
  To: gentoo-commits

commit:     ca0b6a447952bfcd7c8fb386bf8448a5d2bcd30d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 15 15:29:28 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 15 15:29:28 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ca0b6a44

pkgcheck2html: Bump for UnsortedKeywords=warn

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 2dff53b..5a94a88 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 2dff53bb0590826f33faab7e524d99716138c793
+Subproject commit 5a94a886cda0f466a4dc1130e8ff31069ee13b43


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-17 13:46 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-17 13:46 UTC (permalink / raw
  To: gentoo-commits

commit:     3b374f30e25f29732c3cf106875add6db49e7fd8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 17 13:46:00 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 17 13:46:00 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=3b374f30

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index a0d6845..5c2695c 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit a0d68457dc19589031f1d57303ad629b3ecb9dc1
+Subproject commit 5c2695c5758a8e335f5197884b5907e586c33c7e


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-18  9:55 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2019-07-18  9:55 UTC (permalink / raw
  To: gentoo-commits

commit:     e45e4d50192591385607e892caba9542ea07127e
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 17 14:26:47 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Jul 17 14:26:47 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e45e4d50

find-binary-files.sh: Output explicit message if no files were found.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 find-binary-files.sh | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index 2c08ca8..3b62e22 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -8,10 +8,8 @@ shopt -s extglob
 portdir=$(portageq get_repo_path / gentoo)
 cd "${portdir}" || exit 1
 
-find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
-    -o -path ./packages \) -prune \
-    -o ! -type d ! \( -type f -name 'Manifest*.gz' \) -exec file -ih '{}' + \
-| while read line; do
+count=0
+while read line; do
     path=${line%:*}
     type=${line##*:*( )}
     case ${type} in
@@ -39,7 +37,11 @@ find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
         *)
             size=$(stat -c "%s" "${path}")
             echo "${path#./}: ${type} (size=${size})"
+            (( count++ ))
             ;;
     esac
-done \
-| sort 
+done < <(find \( -path ./distfiles -o -path ./local -o -path ./metadata \
+        -o -path ./packages \) -prune -o ! -type d ! -name 'Manifest*.gz' \
+        -exec file -ih '{}' + | sort)
+
+[[ ${count} -gt 0 ]] || echo "No binary files found. :-)"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-18 14:49 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-18 14:49 UTC (permalink / raw
  To: gentoo-commits

commit:     acb1a6f0a67fd614109a33da664844ff7af0308b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 18 14:47:51 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul 18 14:49:30 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=acb1a6f0

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 5c2695c..f498a7e 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 5c2695c5758a8e335f5197884b5907e586c33c7e
+Subproject commit f498a7ec80e3edb25557baf051489dc087170a9c


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-20 18:33 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-20 18:33 UTC (permalink / raw
  To: gentoo-commits

commit:     dfc915bbff6593022b823ae8c2ad3d7344a7de49
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 20 18:33:23 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 20 18:33:23 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=dfc915bb

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index f498a7e..0faabf7 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit f498a7ec80e3edb25557baf051489dc087170a9c
+Subproject commit 0faabf7005bcce44effc7dd2dba9b4d2af287fa2


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-21  8:49 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-21  8:49 UTC (permalink / raw
  To: gentoo-commits

commit:     125f8159c6a4878ca1d00f60f885ca193843fda2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 21 08:48:58 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 21 08:48:58 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=125f8159

Bump pkgcheck2html for maintainer info

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 0faabf7..d933d7f 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 0faabf7005bcce44effc7dd2dba9b4d2af287fa2
+Subproject commit d933d7f51a5b3b8dd1bcff37c84982b72bdf5ee3


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-29  4:25 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-29  4:25 UTC (permalink / raw
  To: gentoo-commits

commit:     734353305e3941d8e10073db7862c7e0fc9ba97d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 29 04:24:46 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 29 04:24:46 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=73435330

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 4a5cbf6..15fae3a 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 4a5cbf61d19b42c25f754c71543122b2b300c8a9
+Subproject commit 15fae3a68caff019df0e837b1f6cbdd981698933


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-29  8:45 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-29  8:45 UTC (permalink / raw
  To: gentoo-commits

commit:     a542b3625d00562cc14f49608bf0c584c7ff1004
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 29 08:44:52 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 29 08:44:52 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a542b362

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 15fae3a..bac92dd 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 15fae3a68caff019df0e837b1f6cbdd981698933
+Subproject commit bac92ddf258ab8b7f1c4ebc9674edbb1b582253a


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-07-30  7:22 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-07-30  7:22 UTC (permalink / raw
  To: gentoo-commits

commit:     7cbb22d74f505d2a98d80175ca53823458c92bd0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 30 07:22:40 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 30 07:22:40 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7cbb22d7

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index bac92dd..f4b47a1 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit bac92ddf258ab8b7f1c4ebc9674edbb1b582253a
+Subproject commit f4b47a1dd8e699400a169bce6c3e42f8a025a16c


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-02  2:29 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-02  2:29 UTC (permalink / raw
  To: gentoo-commits

commit:     ebb18330d36f7eb0c8d371baa95ae0524702c58a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  2 02:29:44 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug  2 02:29:44 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ebb18330

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index f4b47a1..4c84490 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit f4b47a1dd8e699400a169bce6c3e42f8a025a16c
+Subproject commit 4c8449043d873ee65780e5e6b148f00de3d16689


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-06  3:51 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-06  3:51 UTC (permalink / raw
  To: gentoo-commits

commit:     c2993f722045d793ee0aa51e430a46f26b00d0c4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  6 03:51:29 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug  6 03:51:29 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c2993f72

Update pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 4c84490..1cacc58 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 4c8449043d873ee65780e5e6b148f00de3d16689
+Subproject commit 1cacc58da2c66a0dd44cfa7985fc5c7147f6df1b


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-06 12:05 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-06 12:05 UTC (permalink / raw
  To: gentoo-commits

commit:     cd4df59d5b81a8ad08022b15798f6a3d3d93c628
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  6 12:05:07 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug  6 12:05:11 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=cd4df59d

Update pkgcheck2html for lxml switch

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 1cacc58..934abd4 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 1cacc58da2c66a0dd44cfa7985fc5c7147f6df1b
+Subproject commit 934abd4b9add0451cef810871c850381910cc324


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-08  3:35 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-08  3:35 UTC (permalink / raw
  To: gentoo-commits

commit:     42e938aefdf1bf869bc8ed457b3b93bfe1843140
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug  8 03:35:38 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug  8 03:35:38 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=42e938ae

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 934abd4..517a940 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 934abd4b9add0451cef810871c850381910cc324
+Subproject commit 517a940e50092970701e9955873eb7a4962579f3


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-10 22:04 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-10 22:04 UTC (permalink / raw
  To: gentoo-commits

commit:     96e80ca6d778dcf8052c4ead7fa4b24f05d089b2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 10 22:04:38 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 10 22:04:38 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=96e80ca6

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 517a940..66d7ebe 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 517a940e50092970701e9955873eb7a4962579f3
+Subproject commit 66d7ebe3b101030362c30d8380640f4e108bf237


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-11  7:03 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-11  7:03 UTC (permalink / raw
  To: gentoo-commits

commit:     13465e94c02a0209c2d1859c49c60c91afabf24e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 11 07:02:59 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 11 07:02:59 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=13465e94

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 66d7ebe..56cd7c7 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 66d7ebe3b101030362c30d8380640f4e108bf237
+Subproject commit 56cd7c7d8e375df863e3b87639ebd461917f9d91


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-11 14:55 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-11 14:55 UTC (permalink / raw
  To: gentoo-commits

commit:     b037320940bca178fce887b2788bfd7cdd4e7a4e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 11 14:55:27 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 11 14:55:27 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=b0373209

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 56cd7c7..436a05b 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 56cd7c7d8e375df863e3b87639ebd461917f9d91
+Subproject commit 436a05b9af0236845d2abd914c96dae46c2b9c03


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-13  6:38 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-13  6:38 UTC (permalink / raw
  To: gentoo-commits

commit:     e2636b51ef8d6a4245cdf5e481f28565c9b242f0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 13 06:38:22 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 13 06:38:22 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e2636b51

keyrings: Fetch all signatures properly

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

 keyrings.inc.bash | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 05d40ae..39a0aec 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -34,7 +34,9 @@ grab_keys() {
 	[ "${#KEYSERVERS[@]}" -eq 0 ] && return
 	while :; do
 		for ks in "${KEYSERVERS[@]}" ; do
-			timeout ${KEYSERVER_TIMEOUT} gpg --keyserver "$ks" -q --recv-keys "${remaining[@]}" || :
+			timeout ${KEYSERVER_TIMEOUT} gpg \
+				--keyserver-options no-import-clean,no-self-sigs-only \
+				--keyserver "$ks" -q --recv-keys "${remaining[@]}" || :
 		done
 		missing=()
 		for key in "${remaining[@]}"; do


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-15  8:15 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-15  8:15 UTC (permalink / raw
  To: gentoo-commits

commit:     a9a7d9a67f303b354e9c40a5c18b14c8f2872faa
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 15 08:15:41 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 15 08:15:41 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a9a7d9a6

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 436a05b..a0875f7 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 436a05b9af0236845d2abd914c96dae46c2b9c03
+Subproject commit a0875f77edfe59f19c1f6138bb875b53e0d9b455


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-18  6:59 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-18  6:59 UTC (permalink / raw
  To: gentoo-commits

commit:     2c1e1714eedb9898935cc8c7b68f169a1298bcf6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 18 06:59:29 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 18 06:59:29 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2c1e1714

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index a0875f7..57ea748 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit a0875f77edfe59f19c1f6138bb875b53e0d9b455
+Subproject commit 57ea7489603b5201844990f695dc51d9aa83e2aa


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-18  8:04 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-18  8:04 UTC (permalink / raw
  To: gentoo-commits

commit:     69f86adb47ccb253eb9c80d4e38c2756db01f046
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 18 08:04:24 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 18 08:04:24 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=69f86adb

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 57ea748..9b792d5 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 57ea7489603b5201844990f695dc51d9aa83e2aa
+Subproject commit 9b792d549c4f2b83198752e751afe1ce3f394835


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-27  2:55 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-27  2:55 UTC (permalink / raw
  To: gentoo-commits

commit:     2387439e3e051ef44414975a489125c38a2c5cbb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 27 02:55:35 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 27 02:55:35 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2387439e

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 9b792d5..2ea98f6 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 9b792d549c4f2b83198752e751afe1ce3f394835
+Subproject commit 2ea98f6e38904df053b03871556473704244f6d7


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-08-29  5:28 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-08-29  5:28 UTC (permalink / raw
  To: gentoo-commits

commit:     7970314ebd11aa4cca2cefef80972059e865c44e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 29 05:28:42 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 29 05:28:42 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7970314e

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 2ea98f6..bf7ded7 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 2ea98f6e38904df053b03871556473704244f6d7
+Subproject commit bf7ded724ce94b9378f9e80c7d1eee7668146413


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-09-01  7:58 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-09-01  7:58 UTC (permalink / raw
  To: gentoo-commits

commit:     a0ef5ae7a07f2b5aa166c991edd94d3a83e26206
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  1 07:58:50 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep  1 07:58:50 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a0ef5ae7

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index bf7ded7..b6be464 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit bf7ded724ce94b9378f9e80c7d1eee7668146413
+Subproject commit b6be46495f6ff4fd4fd705b590b829d921e66b8e


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-09-14 17:34 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-09-14 17:34 UTC (permalink / raw
  To: gentoo-commits

commit:     81382135bcc589962a585c6ecca3296da64df61e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 14 17:34:13 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 14 17:34:13 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=81382135

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index b6be464..9405b92 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit b6be46495f6ff4fd4fd705b590b829d921e66b8e
+Subproject commit 9405b92d17bdd3ac2688bd9aef49a5a4ef979b26


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-09-17  6:00 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-09-17  6:00 UTC (permalink / raw
  To: gentoo-commits

commit:     4e45c5e9c03cda84ee6ab456ef69ed3b2a75ae43
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 17 06:00:38 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep 17 06:00:38 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4e45c5e9

Add a script to print newest commits for each package

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

 pkg-newest-commit.py | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/pkg-newest-commit.py b/pkg-newest-commit.py
new file mode 100755
index 0000000..52372d4
--- /dev/null
+++ b/pkg-newest-commit.py
@@ -0,0 +1,54 @@
+#!/usr/bin/env python
+
+import argparse
+import glob
+import os
+import subprocess
+import sys
+
+
+def main(argv):
+    argp = argparse.ArgumentParser(prog=argv[0])
+    argp.add_argument('package', nargs='*',
+                      help='List of packages to find (defaults to all)')
+    args = argp.parse_args(argv[1:])
+
+    packages = set(args.package)
+    if not packages:
+        with open('profiles/categories') as f:
+            for cat in f:
+                packages.update(x.rstrip('/')
+                        for x in glob.glob('{}/*/'.format(cat.strip())))
+
+    excludes = frozenset([
+        # specify EAPI=0 explicitly
+        '4a409a1ecd75d064e8b471f6131bb1feb83c37a8',
+        # drop $id
+        '61b861acd7b49083dab687e133f30f3331cb7480',
+        # initial git commit
+        '56bd759df1d0c750a065b8c845e93d5dfa6b549d',
+    ])
+
+    os.environ['TZ'] = 'UTC'
+    s = subprocess.Popen(['git', 'log', '--date=iso-local', '--name-only',
+                          '--diff-filter=AM', '--no-renames',
+                          '--pretty=COMMIT|%H|%cd', '**.ebuild'],
+                         stdout=subprocess.PIPE)
+    for l in s.stdout:
+        l = l.decode('utf8').strip()
+        if l.startswith('COMMIT|'):
+            commit_data = l[7:]
+        elif l:
+            pkg = '/'.join(l.split('/', 2)[:2])
+            if pkg in packages:
+                commit, date = commit_data.split('|')
+                if commit in excludes:
+                    continue
+                print('{:.<65} {} {}'.format(pkg + ' ', date, commit))
+                packages.remove(pkg)
+                if not packages:
+                    break
+
+
+if __name__ == '__main__':
+    sys.exit(main(sys.argv))


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-09-17  6:30 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-09-17  6:30 UTC (permalink / raw
  To: gentoo-commits

commit:     224b76acde7c9242497e53b1ce72448b9a471f8c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 17 06:30:28 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep 17 06:30:28 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=224b76ac

pkg-newest-commit.py: Support specifying sep work & git tree

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

 pkg-newest-commit.py | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/pkg-newest-commit.py b/pkg-newest-commit.py
index 52372d4..ecd5699 100755
--- a/pkg-newest-commit.py
+++ b/pkg-newest-commit.py
@@ -3,22 +3,29 @@
 import argparse
 import glob
 import os
+import os.path
 import subprocess
 import sys
 
 
 def main(argv):
     argp = argparse.ArgumentParser(prog=argv[0])
+    argp.add_argument('--git-dir', default='.',
+                      help='Path to repo git clone (used for git log)')
+    argp.add_argument('--work-dir', default='.',
+                      help='Path to repo working directory (used to grab '
+                           'package list when no packages specified)')
     argp.add_argument('package', nargs='*',
                       help='List of packages to find (defaults to all)')
     args = argp.parse_args(argv[1:])
 
     packages = set(args.package)
     if not packages:
-        with open('profiles/categories') as f:
+        with open(os.path.join(args.work_dir, 'profiles/categories')) as f:
             for cat in f:
-                packages.update(x.rstrip('/')
-                        for x in glob.glob('{}/*/'.format(cat.strip())))
+                packages.update('/'.join(x.rsplit('/', 3)[-3:-1])
+                                for x in glob.glob(os.path.join(
+                                    args.work_dir, cat.strip(), '*/')))
 
     excludes = frozenset([
         # specify EAPI=0 explicitly
@@ -33,6 +40,7 @@ def main(argv):
     s = subprocess.Popen(['git', 'log', '--date=iso-local', '--name-only',
                           '--diff-filter=AM', '--no-renames',
                           '--pretty=COMMIT|%H|%cd', '**.ebuild'],
+                         cwd=args.git_dir,
                          stdout=subprocess.PIPE)
     for l in s.stdout:
         l = l.decode('utf8').strip()


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-09-17 11:43 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-09-17 11:43 UTC (permalink / raw
  To: gentoo-commits

commit:     696b07f1a4411ebdd5b66381ddc986494012785a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 17 11:43:19 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep 17 11:43:19 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=696b07f1

pkg-newest-commit: Adjust padding to actual package name lengths

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

 pkg-newest-commit.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pkg-newest-commit.py b/pkg-newest-commit.py
index ecd5699..ef0af89 100755
--- a/pkg-newest-commit.py
+++ b/pkg-newest-commit.py
@@ -26,6 +26,11 @@ def main(argv):
                 packages.update('/'.join(x.rsplit('/', 3)[-3:-1])
                                 for x in glob.glob(os.path.join(
                                     args.work_dir, cat.strip(), '*/')))
+    if not packages:
+        print('No packages specified or found', file=sys.stderr)
+        return 1
+    pkg_max_len = max(len(x) for x in packages)
+    pkg_format = '{{:.<{}}} {{}} {{}}'.format(pkg_max_len+1)
 
     excludes = frozenset([
         # specify EAPI=0 explicitly
@@ -52,7 +57,7 @@ def main(argv):
                 commit, date = commit_data.split('|')
                 if commit in excludes:
                     continue
-                print('{:.<65} {} {}'.format(pkg + ' ', date, commit))
+                print(pkg_format.format(pkg + ' ', date, commit))
                 packages.remove(pkg)
                 if not packages:
                     break


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-09-20  7:07 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-09-20  7:07 UTC (permalink / raw
  To: gentoo-commits

commit:     19797ccb77542dbe4696de3bfc3a3a89f07875bc
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 20 07:07:29 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep 20 07:07:29 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=19797ccb

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 9405b92..c88379d 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 9405b92d17bdd3ac2688bd9aef49a5a4ef979b26
+Subproject commit c88379dd4bf1d8eba3fcffbaa3439c3a65dbc753


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-09-25  6:27 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-09-25  6:27 UTC (permalink / raw
  To: gentoo-commits

commit:     4c484a008d3802b9014ae41ee18769f8cb619f94
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 25 06:27:01 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Sep 25 06:27:01 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4c484a00

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index c88379d..8a019e5 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit c88379dd4bf1d8eba3fcffbaa3439c3a65dbc753
+Subproject commit 8a019e506624b504b267925245e32874b3e00561


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-09-25 10:36 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-09-25 10:36 UTC (permalink / raw
  To: gentoo-commits

commit:     9f6222116eb642e5c13642e149c92173324fd61b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 25 10:35:53 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Sep 25 10:35:53 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=9f622211

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 8a019e5..5eae7de 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 8a019e506624b504b267925245e32874b3e00561
+Subproject commit 5eae7de21d3352e06c4bebdbe5d43c656fc4c122


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-10-05 16:50 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-10-05 16:50 UTC (permalink / raw
  To: gentoo-commits

commit:     4440a73a3e8837f3c7dc285b0c4ef4e0043b710c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  5 16:50:20 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct  5 16:50:20 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4440a73a

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 5eae7de..3dc3e1b 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 5eae7de21d3352e06c4bebdbe5d43c656fc4c122
+Subproject commit 3dc3e1b00469b6b330b0f6cb340cc675a5112559


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-10-07  9:17 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-10-07  9:17 UTC (permalink / raw
  To: gentoo-commits

commit:     43d6b7c1fe43b2ddb45c6823366992f65845f50a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  7 09:16:54 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct  7 09:16:54 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=43d6b7c1

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 3dc3e1b..887c28e 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 3dc3e1b00469b6b330b0f6cb340cc675a5112559
+Subproject commit 887c28e758025d8c452962a4c7d40a73b8c65ce7


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-11-02 10:22 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-11-02 10:22 UTC (permalink / raw
  To: gentoo-commits

commit:     be1b9033b1d8d3b3f2f9d73585260894ff68c0ba
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  2 10:22:00 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov  2 10:22:00 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=be1b9033

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index bb6570d..fe15d18 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit bb6570da9749e349fca302e28d58df3ad9975562
+Subproject commit fe15d181d58738548fd2ceb89ca204a37b48ecaf


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-11-04 15:23 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-11-04 15:23 UTC (permalink / raw
  To: gentoo-commits

commit:     e8297f618cf9839940a818711972d898b27835c1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  4 15:22:48 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov  4 15:22:48 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e8297f61

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index fe15d18..ec826a2 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit fe15d181d58738548fd2ceb89ca204a37b48ecaf
+Subproject commit ec826a28f5b80ff0f959797af5fe939badcfcf06


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-11-05 18:23 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-11-05 18:23 UTC (permalink / raw
  To: gentoo-commits

commit:     4c819f4aa4d6c2042e67d7765e6c816ae8b24c83
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  5 18:22:53 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Nov  5 18:22:53 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4c819f4a

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index ec826a2..3a1a359 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit ec826a28f5b80ff0f959797af5fe939badcfcf06
+Subproject commit 3a1a359fe740c203be8b27addc85064e4e8664e4


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-11-12 13:29 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-11-12 13:29 UTC (permalink / raw
  To: gentoo-commits

commit:     82f5d6171796773d32ccca98365228433e8a8bca
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 12 13:29:14 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Nov 12 13:29:14 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=82f5d617

gpyutils: Add py3.7 to 3.8 reports

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

 Makefile.gpyutils | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 15a4a12..30e6ce5 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -6,7 +6,7 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 outdir = /dev/null
 
 # upgrades for stable impls
-upgr_base = $(outdir)/35-to-36.txt $(outdir)/36-to-37.txt
+upgr_base = $(outdir)/35-to-36.txt $(outdir)/36-to-37.txt $(outdir)/37-to-38.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
@@ -59,6 +59,16 @@ $(outdir)/36-to-37-stablereq.txt: $(timestamp)
 	gpy-upgrade-impl -s python3_6 python3_7 > $@.new
 	mv $@.new $@
 
+$(outdir)/37-to-38.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl python3_7 python3_8 > $@.new
+	mv $@.new $@
+
+$(outdir)/37-to-38-stablereq.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl -s python3_7 python3_8 > $@.new
+	mv $@.new $@
+
 $(outdir)/pypy3-to-36.txt: $(timestamp)
 	mkdir -p $(outdir)
 	gpy-upgrade-impl pypy3 python3_6 > $@.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-11-12 14:12 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-11-12 14:12 UTC (permalink / raw
  To: gentoo-commits

commit:     941b14785f7362505f5acc44b82c52889fb00ddd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 12 14:12:06 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Nov 12 14:12:06 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=941b1478

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 3a1a359..52d5b28 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 3a1a359fe740c203be8b27addc85064e4e8664e4
+Subproject commit 52d5b289067e738f79bdda1fa22c6586b754d197


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-12-02 22:32 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-12-02 22:32 UTC (permalink / raw
  To: gentoo-commits

commit:     33e61498b300c64ce0c383dd047da1c24412fb55
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  2 22:32:20 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec  2 22:32:20 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=33e61498

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 52d5b28..df9054f 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 52d5b289067e738f79bdda1fa22c6586b754d197
+Subproject commit df9054f3e57cd690e64d47df13dab36d4e3cfdb9


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-12-07 22:37 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2019-12-07 22:37 UTC (permalink / raw
  To: gentoo-commits

commit:     1351cc4c25608dade44d6209b12dbe418b7a7903
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  7 22:36:29 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Dec  7 22:36:29 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1351cc4c

eapi_usage.sh: Use sane date format.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eapi_usage.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eapi_usage.sh b/eapi_usage.sh
index 29c3831..a4a47ac 100755
--- a/eapi_usage.sh
+++ b/eapi_usage.sh
@@ -22,4 +22,4 @@ find /usr/portage/metadata/md5-cache -type f ! -name '*.gz' \
     }'
 
 echo
-echo "Date generated: $(date)"
+echo "Date generated: $(date -u '+%Y-%m-%d %H:%M:%S %Z')"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-12-09 19:56 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-12-09 19:56 UTC (permalink / raw
  To: gentoo-commits

commit:     37be7db283412fead9bdc5a3302f1a0fb4d5caf3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  9 19:56:35 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec  9 19:56:54 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=37be7db2

Update pkgcheck2html excludes

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index df9054f..c61c636 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit df9054f3e57cd690e64d47df13dab36d4e3cfdb9
+Subproject commit c61c636419514ccbc91f28cdc39ea0f235a920e2


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-12-09 21:06 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-12-09 21:06 UTC (permalink / raw
  To: gentoo-commits

commit:     06dca8f15d2e78f9f45ce34f03650beeba165692
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  9 21:05:46 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec  9 21:05:46 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=06dca8f1

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index c61c636..cfa7950 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit c61c636419514ccbc91f28cdc39ea0f235a920e2
+Subproject commit cfa7950662e11a77be456de1d86319410e2a6fa7


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-12-30 16:20 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-12-30 16:20 UTC (permalink / raw
  To: gentoo-commits

commit:     a0e27bf5a3f4282a8867cdfbad94cc59cf3f5a28
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 30 16:20:49 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec 30 16:20:49 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a0e27bf5

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index cfa7950..6535861 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit cfa7950662e11a77be456de1d86319410e2a6fa7
+Subproject commit 65358618b2e6fc8e4d27da5e99a853e3d4d4a441


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2019-12-30 18:59 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2019-12-30 18:59 UTC (permalink / raw
  To: gentoo-commits

commit:     68c760d151651992806dc8192df4f4f7c967d0f7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 30 18:59:09 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec 30 18:59:09 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=68c760d1

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 6535861..8234973 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 65358618b2e6fc8e4d27da5e99a853e3d4d4a441
+Subproject commit 8234973ad63403aaac37066ff6aa1d9705ddc16a


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-01-28  5:36 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-01-28  5:36 UTC (permalink / raw
  To: gentoo-commits

commit:     11432b7d51dcb0043492fe85abf2756dc5f70fe1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 28 05:36:23 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jan 28 05:36:23 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=11432b7d

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 8234973..c4d1c7b 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 8234973ad63403aaac37066ff6aa1d9705ddc16a
+Subproject commit c4d1c7b8a622e2868e28646134a7ba6bb7de8c77


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-08 13:40 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-02-08 13:40 UTC (permalink / raw
  To: gentoo-commits

commit:     f40fa5583f0b1d26cbb5084687a657add3756db8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  8 13:40:30 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb  8 13:40:30 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f40fa558

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index c4d1c7b..2509822 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit c4d1c7b8a622e2868e28646134a7ba6bb7de8c77
+Subproject commit 25098229ced10914cebd4092cc4455d9885c4ba0


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-09 19:45 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-02-09 19:45 UTC (permalink / raw
  To: gentoo-commits

commit:     e2814ad092a1f62a8342fce82c4b11a7166b0a74
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  9 19:45:42 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 19:45:42 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e2814ad0

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 2509822..9116234 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 25098229ced10914cebd4092cc4455d9885c4ba0
+Subproject commit 9116234beed832d9ea6c69f8e1545cccb84b65b0


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-10  5:50 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-02-10  5:50 UTC (permalink / raw
  To: gentoo-commits

commit:     4c0d34f390adb153d77b748a5c4799396ac14d4b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 10 05:50:49 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 05:50:49 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4c0d34f3

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 9116234..908bbc5 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 9116234beed832d9ea6c69f8e1545cccb84b65b0
+Subproject commit 908bbc58d898edd6ecfda743165abe5c302f8d96


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-12 13:44 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2020-02-12 13:44 UTC (permalink / raw
  To: gentoo-commits

commit:     1fa7be95b899bc1d90d868f6864ee65be798063e
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 12 13:40:06 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Feb 12 13:40:06 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1fa7be95

check_eclasses_eapis.sh: Add sanity check for metadata files.

Require a hyphen followed by a digit in their name, which must occur
in a valid ${P} name. Otherwise the find will also pick up Manifest*
files and recognize them as EAPI 0.

Note that we cannot exclude Manifest* explicitly because it is a valid
package name.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 check_eclasses_eapis.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index f3e1ff8..974bd3e 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -19,7 +19,7 @@ ECLASSES=$(echo *.eclass)
 popd > /dev/null
 
 #pquery --attr eapi --attr inherited --raw --all --repo portdir > "${TMPEAPIS}"
-find "${REPO_PATH}/metadata/md5-cache" -type f -exec awk -F= '
+find "${REPO_PATH}/metadata/md5-cache" -type f -name '*-[0-9]' -exec awk -F= '
 	BEGINFILE {
 		n = split(FILENAME, f, "/")
 		file = f[n-1] "/" f[n]


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-12 14:31 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2020-02-12 14:31 UTC (permalink / raw
  To: gentoo-commits

commit:     baa5838bf6667c9ddbdc3eb27219d7bfa163d8a0
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 12 14:30:55 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Feb 12 14:30:55 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=baa5838b

check_eclasses_eapis.sh: Typo.

Fixes: 1fa7be95b899bc1d90d868f6864ee65be798063e
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 check_eclasses_eapis.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 974bd3e..56e2a1b 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -19,7 +19,7 @@ ECLASSES=$(echo *.eclass)
 popd > /dev/null
 
 #pquery --attr eapi --attr inherited --raw --all --repo portdir > "${TMPEAPIS}"
-find "${REPO_PATH}/metadata/md5-cache" -type f -name '*-[0-9]' -exec awk -F= '
+find "${REPO_PATH}/metadata/md5-cache" -type f -name '*-[0-9]*' -exec awk -F= '
 	BEGINFILE {
 		n = split(FILENAME, f, "/")
 		file = f[n-1] "/" f[n]


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-14  9:06 Mikle Kolyada
  0 siblings, 0 replies; 316+ messages in thread
From: Mikle Kolyada @ 2020-02-14  9:06 UTC (permalink / raw
  To: gentoo-commits

commit:     db7d5fb95c0435ed431923dbcd7bafe778c574f3
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 09:06:48 2020 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri Feb 14 09:06:48 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=db7d5fb9

switch WoT to utf8

Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 gen-dev-wot.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
index d15f461..f2b21d5 100755
--- a/gen-dev-wot.sh
+++ b/gen-dev-wot.sh
@@ -17,6 +17,6 @@ gpg -q --keyid-format=long --keyring "${1}/active-devs.gpg" --list-sigs | \
 	/usr/bin/sig2dot -q -t "Gentoo Dev WoT" -s wot-stats.html \
 	> keys.dot
 
-dot -Gcharset=latin1 -Tsvg keys.dot > "${1}/wot-graph.svg"
+dot -Gcharset=utf8 -Tsvg keys.dot > "${1}/wot-graph.svg"
 
 mv wot-stats.html "${1}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-14  9:17 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2020-02-14  9:17 UTC (permalink / raw
  To: gentoo-commits

commit:     da3e09b2bcb85bbfec0dc6c37235c7139c41c74a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 09:14:55 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Feb 14 09:14:55 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=da3e09b2

gen-dev-wot.sh: graphviz documentation says "UTF-8".

https://www.graphviz.org/doc/info/attrs.html#d:charset says that the
only allowed values are "UTF-8" and "iso-8859-1"/"Latin1".

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 gen-dev-wot.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
index f2b21d5..8f01995 100755
--- a/gen-dev-wot.sh
+++ b/gen-dev-wot.sh
@@ -17,6 +17,6 @@ gpg -q --keyid-format=long --keyring "${1}/active-devs.gpg" --list-sigs | \
 	/usr/bin/sig2dot -q -t "Gentoo Dev WoT" -s wot-stats.html \
 	> keys.dot
 
-dot -Gcharset=utf8 -Tsvg keys.dot > "${1}/wot-graph.svg"
+dot -Gcharset=UTF-8 -Tsvg keys.dot > "${1}/wot-graph.svg"
 
 mv wot-stats.html "${1}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-16  6:09 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-02-16  6:09 UTC (permalink / raw
  To: gentoo-commits

commit:     1035866d06684aaeb8f7cc1625dbac48b0f75ca9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 16 06:09:22 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb 16 06:09:37 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1035866d

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 908bbc5..c0ea072 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 908bbc58d898edd6ecfda743165abe5c302f8d96
+Subproject commit c0ea0725b7a6ada34fd7e4c43a048324a49fa420


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-16  6:24 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-02-16  6:24 UTC (permalink / raw
  To: gentoo-commits

commit:     e050b840026f54ba2c5cb389d217abd09d4b0838
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 16 06:24:03 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb 16 06:24:03 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e050b840

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index c0ea072..ecae19c 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit c0ea0725b7a6ada34fd7e4c43a048324a49fa420
+Subproject commit ecae19cf82bdbae9844d0a57a2c4209019378b02


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-24  6:51 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-02-24  6:51 UTC (permalink / raw
  To: gentoo-commits

commit:     4a844cb64e720583b2043701e15b5cd77bcad597
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 24 06:50:35 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 24 06:50:50 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4a844cb6

Add new genrdeps-index script using pkgcore

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

 genrdeps-index.py | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)

diff --git a/genrdeps-index.py b/genrdeps-index.py
new file mode 100755
index 0000000..d0d6a31
--- /dev/null
+++ b/genrdeps-index.py
@@ -0,0 +1,108 @@
+#!/usr/bin/env python
+# Rewrite of genrdeps-index to stop using horrible Portage API.
+# (c) 2020 Michał Górny
+# 2-clause BSD license
+
+import argparse
+import collections
+import errno
+import os
+import os.path
+import shutil
+import sys
+
+import pkgcore.config
+from pkgcore.ebuild.atom import atom
+from pkgcore.restrictions.boolean import AndRestriction, OrRestriction
+from pkgcore.restrictions.packages import Conditional
+
+
+DepTuple = collections.namedtuple('DepTuple', ('cpv', 'blocks', 'use'))
+
+
+GROUPS = (
+    ('bdepend', 'bindex'),
+    ('depend', 'dindex'),
+    ('pdepend', 'pindex'),
+    ('rdepend', 'rindex'),
+)
+
+
+def process_deps(deps, useflags=()):
+    for d in deps:
+        if isinstance(d, atom):
+            yield DepTuple(d.key, d.blocks, useflags)
+        elif isinstance(d, OrRestriction) or isinstance(d, AndRestriction):
+            # || deps and nested () blocks
+            for sd in process_deps(d, useflags):
+                yield sd
+        elif isinstance(d, Conditional):
+            # foo? deps
+            assert d.attr == 'use'
+            assert len(d.restriction.vals) == 1
+            r = next(iter(d.restriction.vals))
+            if d.restriction.negate:
+                r = '!' + r
+            for sd in process_deps(d, useflags + (r,)):
+                yield sd
+        else:
+            raise AssertionError("Unknown dep type: " + d.__class__)
+
+
+def rmtree_ignore_enoent(func, path, exc_info):
+    if not isinstance(exc_info[1], FileNotFoundError):
+        raise
+
+
+def main():
+    argp = argparse.ArgumentParser()
+    argp.add_argument('outputdir',
+                      help='Directory to create rdep index in')
+    args = argp.parse_args()
+
+    c = pkgcore.config.load_config()
+    repo = c.repo['gentoo']
+
+    rindex = {}
+    for g, gi in GROUPS:
+        rindex[g] = collections.defaultdict(set)
+
+    for p in repo:
+        for g, gi in GROUPS:
+            deps = frozenset(process_deps(getattr(p, g)))
+            for dep, blocks, flags in deps:
+                rindex[g][dep].add(DepTuple(p.cpvstr, blocks, flags))
+
+    for g, gi in GROUPS:
+        outdir = os.path.join(args.outputdir, '.' + gi + '.new')
+        shutil.rmtree(outdir, onerror=rmtree_ignore_enoent)
+
+        for p, revdeps in rindex[g].items():
+            outpath = os.path.join(outdir, p)
+            os.makedirs(os.path.dirname(outpath), exist_ok=True)
+            with open(outpath, 'w') as f:
+                for dep, blocks, flags in sorted(revdeps):
+                    if blocks:
+                        dep = '[B]' + dep
+                    if flags:
+                        dep += ':' + '+'.join(flags)
+                    f.write(dep + '\n')
+
+    for g, gi in GROUPS:
+        outdir = os.path.join(args.outputdir, gi)
+        olddir = os.path.join(args.outputdir, '.' + gi + '.old')
+        newdir = os.path.join(args.outputdir, '.' + gi + '.new')
+
+        shutil.rmtree(olddir, onerror=rmtree_ignore_enoent)
+        try:
+            os.rename(outdir, olddir)
+        except FileNotFoundError as e:
+            pass
+        os.rename(newdir, outdir)
+        shutil.rmtree(olddir, onerror=rmtree_ignore_enoent)
+
+    return 0
+
+
+if __name__ == '__main__':
+    sys.exit(main())


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-02-24  6:59 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-02-24  6:59 UTC (permalink / raw
  To: gentoo-commits

commit:     4c578f0280638442da5a3f60d0b568c38de09b06
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 24 06:59:07 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 24 06:59:07 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4c578f02

genrdeps: Deduplicate USE flags in output

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

 genrdeps-index.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/genrdeps-index.py b/genrdeps-index.py
index d0d6a31..cdb94c0 100755
--- a/genrdeps-index.py
+++ b/genrdeps-index.py
@@ -28,7 +28,7 @@ GROUPS = (
 )
 
 
-def process_deps(deps, useflags=()):
+def process_deps(deps, useflags=frozenset()):
     for d in deps:
         if isinstance(d, atom):
             yield DepTuple(d.key, d.blocks, useflags)
@@ -43,7 +43,7 @@ def process_deps(deps, useflags=()):
             r = next(iter(d.restriction.vals))
             if d.restriction.negate:
                 r = '!' + r
-            for sd in process_deps(d, useflags + (r,)):
+            for sd in process_deps(d, useflags | frozenset((r,))):
                 yield sd
         else:
             raise AssertionError("Unknown dep type: " + d.__class__)
@@ -85,7 +85,7 @@ def main():
                     if blocks:
                         dep = '[B]' + dep
                     if flags:
-                        dep += ':' + '+'.join(flags)
+                        dep += ':' + '+'.join(sorted(flags))
                     f.write(dep + '\n')
 
     for g, gi in GROUPS:


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-03-08 12:42 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-03-08 12:42 UTC (permalink / raw
  To: gentoo-commits

commit:     561aab5f2f3752da4df62d42037365d4198bf2cf
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  8 12:42:46 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar  8 12:42:46 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=561aab5f

Update pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index ecae19c..6a1aa38 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit ecae19cf82bdbae9844d0a57a2c4209019378b02
+Subproject commit 6a1aa38fb19879750c59bbe18e64e462d77aa24d


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-04-19 12:06 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2020-04-19 12:06 UTC (permalink / raw
  To: gentoo-commits

commit:     70d4f1d2733a6c317648797f7e3ac58e23d2cbc2
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 19 12:06:15 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Apr 19 12:06:15 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=70d4f1d2

find-binary-files.sh: Avoid more false positives.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 find-binary-files.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index 3b62e22..db3ecb8 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -34,6 +34,7 @@ while read line; do
         "image/svg+xml; charset=us-ascii") ;; # SVG image
         "image/x-xpmi; charset=us-ascii") ;;  # XPM image
         "message/rfc822; charset=us-ascii") ;;
+        "message/rfc822; charset=utf-8") ;;
         *)
             size=$(stat -c "%s" "${path}")
             echo "${path#./}: ${type} (size=${size})"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-05-04  5:01 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-05-04  5:01 UTC (permalink / raw
  To: gentoo-commits

commit:     d4e9c9b746742d55d2284b2d75e5c21439a6e781
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May  4 05:01:17 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May  4 05:01:36 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d4e9c9b7

Update pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 6a1aa38..a0d7dc5 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 6a1aa38fb19879750c59bbe18e64e462d77aa24d
+Subproject commit a0d7dc5e8b7d6f2c3aef16020513440851cf8b9c


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-05-26  5:59 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2020-05-26  5:59 UTC (permalink / raw
  To: gentoo-commits

commit:     f45e23a3c5b1526cc774545980d53fb081431af0
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue May 26 05:59:21 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue May 26 05:59:28 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f45e23a3

keyrings: ensure ldap simple binding is used

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 39a0aec..d19f0ad 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -18,7 +18,7 @@ export SYSTEM_KEYS=( )
 
 # grab_ldap_fingerprints <ldap-rule>
 grab_ldap_fingerprints() {
-	ldapsearch "${@}" -Z gpgfingerprint -LLL |
+	ldapsearch "${@}" -x -Z gpgfingerprint -LLL |
 		sed -n -e '/: undefined/d' -e '/^gpgfingerprint: /{s/^.*://;s/ //g;p}' |
 		sort -u
 }


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-05-28  9:21 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-05-28  9:21 UTC (permalink / raw
  To: gentoo-commits

commit:     798d6fc0ff14d19ae74c845fc53dbd536995a22a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May 28 09:20:48 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 28 09:21:28 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=798d6fc0

genrdeps: Build a .tar.xz for local use

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

 genrdeps-index.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/genrdeps-index.py b/genrdeps-index.py
index cdb94c0..1f0b24c 100755
--- a/genrdeps-index.py
+++ b/genrdeps-index.py
@@ -9,6 +9,7 @@ import errno
 import os
 import os.path
 import shutil
+import subprocess
 import sys
 
 import pkgcore.config
@@ -101,6 +102,13 @@ def main():
         os.rename(newdir, outdir)
         shutil.rmtree(olddir, onerror=rmtree_ignore_enoent)
 
+    subprocess.check_call(
+        ['tar', '-cf', 'rdeps.tar'] + [gi for g, gi in GROUPS],
+        cwd=args.outputdir)
+    subprocess.check_call(
+        ['xz', '-9', 'rdeps.tar'],
+        cwd=args.outputdir)
+
     return 0
 
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-05-31  6:39 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2020-05-31  6:39 UTC (permalink / raw
  To: gentoo-commits

commit:     dacd3b42154210e1d50fbe947a9bf9a7136d3081
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun May 31 06:38:58 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun May 31 06:38:58 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=dacd3b42

genrdeps-index: safely create/overwrite rdeps tarball

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 genrdeps-index.py | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/genrdeps-index.py b/genrdeps-index.py
index 1f0b24c..feea62c 100755
--- a/genrdeps-index.py
+++ b/genrdeps-index.py
@@ -11,6 +11,7 @@ import os.path
 import shutil
 import subprocess
 import sys
+import tempfile
 
 import pkgcore.config
 from pkgcore.ebuild.atom import atom
@@ -102,12 +103,24 @@ def main():
         os.rename(newdir, outdir)
         shutil.rmtree(olddir, onerror=rmtree_ignore_enoent)
 
-    subprocess.check_call(
-        ['tar', '-cf', 'rdeps.tar'] + [gi for g, gi in GROUPS],
-        cwd=args.outputdir)
-    subprocess.check_call(
-        ['xz', '-9', 'rdeps.tar'],
-        cwd=args.outputdir)
+    with tempfile.NamedTemporaryFile(prefix='.tmp.rdeps-', suffix='.tar', dir=args.outputdir, delete=False) as tmpf:
+        try:
+            subprocess.check_call(
+                ['tar', '-cf', tmpf.name] + [gi for g, gi in GROUPS],
+                cwd=args.outputdir)
+            subprocess.check_call(
+                ['xz', '-9', tmpf.name],
+                cwd=args.outputdir)
+            os.rename(tmpf.name + '.xz', os.path.join(args.outputdir, 'rdeps.tar.xz'))
+        except Exception as e:
+            raise e
+        finally:
+            # Cleanup:
+            for f in [tmpf.name, (tmpf.name + '.xz')]:
+                try:
+                    os.unlink(f)
+                except FileNotFoundError as e:
+                    pass
 
     return 0
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-06-02  5:40 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-06-02  5:40 UTC (permalink / raw
  To: gentoo-commits

commit:     18199dda8992e45acf9683af895c044f47df25b8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  1 11:14:43 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun  2 05:40:45 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=18199dda

gpyutils: Add py2 reports

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

 Makefile.gpyutils | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index f8fb1b8..ae93e5a 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -10,7 +10,7 @@ upgr_base = $(outdir)/36-to-37.txt $(outdir)/37-to-38.txt $(outdir)/38-to-39.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
-upgr_txt = $(upgr_base) $(upgr_streq)
+upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/py2.txt $(outdir)/py23.txt
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg)
@@ -69,6 +69,16 @@ $(outdir)/38-to-39-stablereq.txt: $(timestamp)
 	gpy-upgrade-impl -s python3_8 python3_9 > $@.new
 	mv $@.new $@
 
+$(outdir)/py2.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-py2 > $@.new
+	mv $@.new $@
+
+$(outdir)/py23.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-py2 -3 > $@.new
+	mv $@.new $@
+
 %.dot: %.txt
 	gpy-depgraph -m python@gentoo.org $< > $@.new
 	mv $@.new $@


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-06-28 11:23 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-06-28 11:23 UTC (permalink / raw
  To: gentoo-commits

commit:     4b23968e388e77365e0d36616904969c6a254194
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 28 11:23:34 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun 28 11:23:34 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4b23968e

Bump dev-timeline

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

 dev-timeline | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-timeline b/dev-timeline
index a3ebb35..2335278 160000
--- a/dev-timeline
+++ b/dev-timeline
@@ -1 +1 @@
-Subproject commit a3ebb35413700113bffd4ee38cd9b6d77fc3612d
+Subproject commit 2335278e82579fb86aab5a9e7e7a31d7f177311e


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-08-02  8:12 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-08-02  8:12 UTC (permalink / raw
  To: gentoo-commits

commit:     4fadb055f19ae38ef4b6f238cad1903a41ce37ef
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  2 08:12:01 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug  2 08:12:01 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4fadb055

genrdeps-index: Fix permissions of .tar.xz

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

 genrdeps-index.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/genrdeps-index.py b/genrdeps-index.py
index feea62c..1dc958b 100755
--- a/genrdeps-index.py
+++ b/genrdeps-index.py
@@ -112,6 +112,7 @@ def main():
                 ['xz', '-9', tmpf.name],
                 cwd=args.outputdir)
             os.rename(tmpf.name + '.xz', os.path.join(args.outputdir, 'rdeps.tar.xz'))
+            os.chmod(os.path.join(args.outputdir, 'rdeps.tar.xz'), 0o644)
         except Exception as e:
             raise e
         finally:


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-09-02  7:20 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-09-02  7:20 UTC (permalink / raw
  To: gentoo-commits

commit:     f415f58d1d18eb6f972baa10fb4f0f532d9a6908
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  2 07:20:29 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Sep  2 07:20:29 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f415f58d

gpyutils: Include maintainers in upgrade-impl output

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

 Makefile.gpyutils | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index ae93e5a..e7be59e 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -41,32 +41,32 @@ $(outdir)/depcheck.txt: $(timestamp)
 
 $(outdir)/36-to-37.txt: $(timestamp)
 	mkdir -p $(outdir)
-	gpy-upgrade-impl python3_6 python3_7 > $@.new
+	gpy-upgrade-impl -m python3_6 python3_7 > $@.new
 	mv $@.new $@
 
 $(outdir)/36-to-37-stablereq.txt: $(timestamp)
 	mkdir -p $(outdir)
-	gpy-upgrade-impl -s python3_6 python3_7 > $@.new
+	gpy-upgrade-impl -m -s python3_6 python3_7 > $@.new
 	mv $@.new $@
 
 $(outdir)/37-to-38.txt: $(timestamp)
 	mkdir -p $(outdir)
-	gpy-upgrade-impl python3_7 python3_8 > $@.new
+	gpy-upgrade-impl -m python3_7 python3_8 > $@.new
 	mv $@.new $@
 
 $(outdir)/37-to-38-stablereq.txt: $(timestamp)
 	mkdir -p $(outdir)
-	gpy-upgrade-impl -s python3_7 python3_8 > $@.new
+	gpy-upgrade-impl -m -s python3_7 python3_8 > $@.new
 	mv $@.new $@
 
 $(outdir)/38-to-39.txt: $(timestamp)
 	mkdir -p $(outdir)
-	gpy-upgrade-impl python3_8 python3_9 > $@.new
+	gpy-upgrade-impl -m python3_8 python3_9 > $@.new
 	mv $@.new $@
 
 $(outdir)/38-to-39-stablereq.txt: $(timestamp)
 	mkdir -p $(outdir)
-	gpy-upgrade-impl -s python3_8 python3_9 > $@.new
+	gpy-upgrade-impl -m -s python3_8 python3_9 > $@.new
 	mv $@.new $@
 
 $(outdir)/py2.txt: $(timestamp)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-09-13 11:25 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-09-13 11:25 UTC (permalink / raw
  To: gentoo-commits

commit:     152b742649f318c5b5f47f67fed73b4614a64d02
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 13 11:25:01 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 13 11:25:01 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=152b7426

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 4eb6fc5..ef561e9 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 4eb6fc540e0d94badb23874be411ad2df894b08f
+Subproject commit ef561e9a9b5096fc62a1f0cbc2c0dac3b4f70000


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-09-14  2:55 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-09-14  2:55 UTC (permalink / raw
  To: gentoo-commits

commit:     1c281bb5ee3c65d8bbaa0b4c3f58f32adfe37a4f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 14 02:54:56 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep 14 02:54:56 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1c281bb5

Update pkgcheck2html excludes

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index ef561e9..660808b 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit ef561e9a9b5096fc62a1f0cbc2c0dac3b4f70000
+Subproject commit 660808b458ccce2eabd320f2201803c6d10b6a96


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-09-14 19:34 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-09-14 19:34 UTC (permalink / raw
  To: gentoo-commits

commit:     93793743682ea6f8c1bc584e7a40348f9503f554
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 14 19:34:35 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep 14 19:34:35 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=93793743

Bump exclude list for pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 660808b..8650050 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 660808b458ccce2eabd320f2201803c6d10b6a96
+Subproject commit 865005058d93d3585caa7315a4ac24a8dcb74567


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-11-15 18:40 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-11-15 18:40 UTC (permalink / raw
  To: gentoo-commits

commit:     8a3b055b86baee199e65f6d5296072cc77ab99b9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 15 18:40:33 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 15 18:40:33 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8a3b055b

Update pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 8650050..e25a35d 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 865005058d93d3585caa7315a4ac24a8dcb74567
+Subproject commit e25a35dc18788671195689910e532e52793c0260


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2020-12-06  9:00 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2020-12-06  9:00 UTC (permalink / raw
  To: gentoo-commits

commit:     dbe06ada8bfbaa19752335f3252e33af97c4ff55
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  6 09:00:44 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec  6 09:00:44 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=dbe06ada

Update pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index e25a35d..6d82f1e 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit e25a35dc18788671195689910e532e52793c0260
+Subproject commit 6d82f1e950412695cfbc23509bb0a50ab784b50e


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-03-28 20:06 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-03-28 20:06 UTC (permalink / raw
  To: gentoo-commits

commit:     423eb172d08b46d6db90fca9b24121753fb0f4e1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 28 20:06:24 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 28 20:06:37 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=423eb172

Bump excludes in pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 6d82f1e..eabf2aa 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 6d82f1e950412695cfbc23509bb0a50ab784b50e
+Subproject commit eabf2aa77eb3099103220be5b0c0bbf947924bcf


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-04-14 13:35 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-04-14 13:35 UTC (permalink / raw
  To: gentoo-commits

commit:     7735de292193cbb22fe62588a4312bdf570ca84d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 14 13:35:07 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 14 13:35:07 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7735de29

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index eabf2aa..7f0b87d 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit eabf2aa77eb3099103220be5b0c0bbf947924bcf
+Subproject commit 7f0b87ddbad644c6486ea7e3bd1e011ba0f022d0


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-04-18  7:15 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-04-18  7:15 UTC (permalink / raw
  To: gentoo-commits

commit:     4647f821f980bac2573f0f50841f2de9869421e0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 18 07:15:36 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 18 07:15:36 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4647f821

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 7f0b87d..1178a4c 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 7f0b87ddbad644c6486ea7e3bd1e011ba0f022d0
+Subproject commit 1178a4cb2509cffd14a13031f90da15d69de17f5


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-05-01 12:56 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-05-01 12:56 UTC (permalink / raw
  To: gentoo-commits

commit:     0b27940eb5a43927df99a988efe7826794f36cc9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May  1 12:56:47 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May  1 12:56:47 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0b27940e

Bump dev-timeline

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

 dev-timeline | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-timeline b/dev-timeline
index 2335278..6d256c0 160000
--- a/dev-timeline
+++ b/dev-timeline
@@ -1 +1 @@
-Subproject commit 2335278e82579fb86aab5a9e7e7a31d7f177311e
+Subproject commit 6d256c01a1631c7985a4339ad02bca93390b27fb


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-05-12 11:44 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-05-12 11:44 UTC (permalink / raw
  To: gentoo-commits

commit:     0ff7257b1f794438f1f5a9531dddd10497322ab3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 12 11:43:54 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 12 11:43:54 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0ff7257b

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 1178a4c..c49a6ff 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 1178a4cb2509cffd14a13031f90da15d69de17f5
+Subproject commit c49a6ffe9301fedf1420f109f85428ae341ac9a2


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-05-18  7:22 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-05-18  7:22 UTC (permalink / raw
  To: gentoo-commits

commit:     fddf5b1bc1de32a3492b24ba2562c22cadbdf086
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 18 07:22:52 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 18 07:22:52 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=fddf5b1b

Update pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index c49a6ff..60b45e7 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit c49a6ffe9301fedf1420f109f85428ae341ac9a2
+Subproject commit 60b45e70a12fe7b470eff935f3b9f73615453255


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-05-24 18:49 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-05-24 18:49 UTC (permalink / raw
  To: gentoo-commits

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,}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-05-25  4:12 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-05-25  4:12 UTC (permalink / raw
  To: gentoo-commits

commit:     215673ee053e7c715acf7317dd1e7af578328086
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 25 04:12:15 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 25 04:12:15 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=215673ee

gpy-impl-list: use a dedicated channel

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

 gpy-impl-list | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gpy-impl-list b/gpy-impl-list
index 8c365dd..2417d7e 100755
--- a/gpy-impl-list
+++ b/gpy-impl-list
@@ -7,7 +7,7 @@ if [[ -z ${OUTDIR} ]]; then
 	exit 1
 fi
 
-IRC='ircs://irc.libera.chat/#gentoo-python'
+IRC='ircs://irc.libera.chat/#gentoo-python-notices'
 
 irk "${IRC}" - <<<$'\0'
 gpy-list-pkg-impls > "${OUTDIR}"/python-pkg-impls.txt.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-05-25  4:51 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-05-25  4:51 UTC (permalink / raw
  To: gentoo-commits

commit:     2a7981e834e9363784b79d432626157ee5643464
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 25 04:50:21 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 25 04:50:21 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2a7981e8

gpy-impl-list: Need --no-index to git diff

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

 gpy-impl-list | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gpy-impl-list b/gpy-impl-list
index 2417d7e..542d699 100755
--- a/gpy-impl-list
+++ b/gpy-impl-list
@@ -13,5 +13,5 @@ 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 '^@@')
+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,}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-05-25 12:15 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-05-25 12:15 UTC (permalink / raw
  To: gentoo-commits

commit:     8d6b4da6e610d346dfab3c2f088dfd5f1bf20d0f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 25 12:15:13 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 25 12:15:13 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8d6b4da6

Revert "gpy-impl-list: use a dedicated channel"

People on the channel requested no more channels ;-).

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

 gpy-impl-list | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gpy-impl-list b/gpy-impl-list
index 542d699..efb38f5 100755
--- a/gpy-impl-list
+++ b/gpy-impl-list
@@ -7,7 +7,7 @@ if [[ -z ${OUTDIR} ]]; then
 	exit 1
 fi
 
-IRC='ircs://irc.libera.chat/#gentoo-python-notices'
+IRC='ircs://irc.libera.chat/#gentoo-python'
 
 irk "${IRC}" - <<<$'\0'
 gpy-list-pkg-impls > "${OUTDIR}"/python-pkg-impls.txt.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-06-10 16:33 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-06-10 16:33 UTC (permalink / raw
  To: gentoo-commits

commit:     f8b869ccc25156ebbaf84d29ef92488af6c25436
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 10 16:33:46 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun 10 16:33:46 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f8b869cc

kuroneko: Exclude obsolete icedtea bugs

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

 kuroneko.exclude | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/kuroneko.exclude b/kuroneko.exclude
new file mode 100644
index 0000000..3cc605f
--- /dev/null
+++ b/kuroneko.exclude
@@ -0,0 +1,23 @@
+# upstream restarted versioning
+404095
+421031
+429522
+433389
+438750
+442478
+452432
+461714
+466822
+499464
+501472
+508270
+524560
+537940
+559532
+565842
+567850
+572716
+578300
+581028
+609562
+619458


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-08-08 20:42 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-08-08 20:42 UTC (permalink / raw
  To: gentoo-commits

commit:     621092508d9805430511ff500d529fbdfc6783d5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  8 20:42:39 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug  8 20:42:39 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=62109250

Update pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 60b45e7..81b3467 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 60b45e70a12fe7b470eff935f3b9f73615453255
+Subproject commit 81b3467017f0433199b727d0181c19b687190933


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-08-18 20:12 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-08-18 20:12 UTC (permalink / raw
  To: gentoo-commits

commit:     241a20583a96c3fb1366e3579fbae97c70f6eed2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 18 20:12:06 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Aug 18 20:12:06 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=241a2058

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 81b3467..630048b 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 81b3467017f0433199b727d0181c19b687190933
+Subproject commit 630048b8c486a72361e9f73f14d80614f804730c


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-08-27 18:38 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-08-27 18:38 UTC (permalink / raw
  To: gentoo-commits

commit:     b9d3696c4f4da70bd4ef3c570181abcdf0ae90b3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 27 18:38:46 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug 27 18:38:46 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=b9d3696c

gpy-impl-list: Include proper error handling

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

 gpy-impl-list | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gpy-impl-list b/gpy-impl-list
index efb38f5..be70554 100755
--- a/gpy-impl-list
+++ b/gpy-impl-list
@@ -10,7 +10,7 @@ fi
 IRC='ircs://irc.libera.chat/#gentoo-python'
 
 irk "${IRC}" - <<<$'\0'
-gpy-list-pkg-impls > "${OUTDIR}"/python-pkg-impls.txt.new
+gpy-list-pkg-impls > "${OUTDIR}"/python-pkg-impls.txt.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 '^@@')


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-09-27 15:49 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-09-27 15:49 UTC (permalink / raw
  To: gentoo-commits

commit:     e99102849bacb63d6508046f7b298905686bccd4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 27 15:49:34 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep 27 15:49:34 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e9910284

Makefile.gpyutils: remove leftover py23 ref

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

 Makefile.gpyutils | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 90010bc..0379b03 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -10,7 +10,7 @@ upgr_base = $(outdir)/39-to-310.txt $(outdir)/38-to-39.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
-upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/py2.txt $(outdir)/py23.txt
+upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/py2.txt
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2021-11-08 11:21 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2021-11-08 11:21 UTC (permalink / raw
  To: gentoo-commits

commit:     2ba8711020cb0d0227cc47df9042f687e90abf35
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  8 11:21:21 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov  8 11:21:21 2021 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2ba87110

genrdeps-index: Add idepend support

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

 genrdeps-index.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/genrdeps-index.py b/genrdeps-index.py
index 1dc958b..32a0d12 100755
--- a/genrdeps-index.py
+++ b/genrdeps-index.py
@@ -25,6 +25,7 @@ DepTuple = collections.namedtuple('DepTuple', ('cpv', 'blocks', 'use'))
 GROUPS = (
     ('bdepend', 'bindex'),
     ('depend', 'dindex'),
+    ('idepend', 'iindex'),
     ('pdepend', 'pindex'),
     ('rdepend', 'rindex'),
 )


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-02-08  6:26 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2022-02-08  6:26 UTC (permalink / raw
  To: gentoo-commits

commit:     2b318470ffde8ffde7b105e1fce28c6ab3653715
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  8 06:25:38 2022 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Feb  8 06:25:46 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2b318470

keyrings.inc.bash: try to prefer local keyserver for speed

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index d19f0ad..bf45a86 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -8,6 +8,10 @@ NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=
 RETIRED_RULE='(!(gentooStatus=active))'
 
 export KS_GENTOO=hkps://keys.gentoo.org/
+# Use local keyserver for speedup
+KS_GENTOO_LOCAL=${HOSTNAME%.gentoo.org}.keys.gentoo.org
+dig $KS_GENTOO_LOCAL +short |grep -sq . && export KS_GENTOO=hkps://${KS_GENTOO_LOCAL}
+
 #export KS_SKS=hkps://hkps.pool.sks-keyservers.net/ # Disabled pending security announcement
 export KS_OPENPGP=hkps://keys.openpgp.org/ # runs Hagrid
 export KEYSERVERS=( ) # empty by default


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-02-27 17:58 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2022-02-27 17:58 UTC (permalink / raw
  To: gentoo-commits

commit:     fbb6e9911b2cc8582f870acb23c2dacac8e2c077
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 27 17:57:48 2022 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Feb 27 17:57:48 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=fbb6e991

keyrings: add infra keyring

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 6 ++++++
 keyrings.inc.bash        | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 65b2b14..d0ea12a 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -27,6 +27,10 @@ export_keys "${OUTPUT_DIR}"/active-devs.gpg \
 	"${COMMITTING_DEVS[@]}" \
 	"${NONCOMMITTING_DEVS[@]}"
 
+grab_keys "${INFRA_DEVS[@]}"
+export_keys "${OUTPUT_DIR}"/infra-devs.gpg \
+	"${INFRA_DEVS[@]}"
+
 # -- not all are on keyservers
 # -- and are unlikely to turn up now
 # -- this needs to fetch from some archive instead
@@ -39,6 +43,7 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \
 	"${SYSTEM_KEYS[@]}" \
 	"${COMMITTING_DEVS[@]}" \
 	"${NONCOMMITTING_DEVS[@]}" \
+	"${INFRA_DEVS[@]}" \
 	"${RETIRED_DEVS[@]}"
 
 # Populate keys.gentoo.org with the keys we have, since they might have come from SKS
@@ -47,4 +52,5 @@ export KEYSERVER_TIMEOUT=20m
 push_keys "${SYSTEM_KEYS[@]}"
 push_keys "${COMMITTING_DEVS[@]}"
 push_keys "${NONCOMMITTING_DEVS[@]}"
+push_keys "${INFRA_DEVS[@]}"
 push_keys "${RETIRED_DEVS[@]}"

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index bf45a86..7989d79 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -6,6 +6,7 @@ SYSTEM_BASE='ou=system,dc=gentoo,dc=org'
 COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active))'
 NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
 RETIRED_RULE='(!(gentooStatus=active))'
+INFRA_RULE='(&(gentooAccess=infra.group)(gentooStatus=active))'
 
 export KS_GENTOO=hkps://keys.gentoo.org/
 # Use local keyserver for speedup
@@ -18,6 +19,7 @@ export KEYSERVERS=( ) # empty by default
 export COMMITTING_DEVS=( )
 export NONCOMMITTING_DEVS=( )
 export RETIRED_DEVS=( )
+export INFRA_DEVS=( )
 export SYSTEM_KEYS=( )
 
 # grab_ldap_fingerprints <ldap-rule>
@@ -128,5 +130,6 @@ export_ldap_data_to_env() {
 	export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
 	export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
 	export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
+	export -a INFRA_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${INFRA_RULE}") )
 	export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 }


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-02-27 19:27 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2022-02-27 19:27 UTC (permalink / raw
  To: gentoo-commits

commit:     74e7faa94ef8c3d1ca88902ae504efeb6997cff7
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 27 19:21:45 2022 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Feb 27 19:21:45 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=74e7faa9

keyrings-export: another spot for infra-devs

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-export.bash | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 5b6dc17..f07df83 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -27,6 +27,9 @@ export_keys "${OUTPUT_DIR}"/active-devs.gpg \
 	"${COMMITTING_DEVS[@]}" \
 	"${NONCOMMITTING_DEVS[@]}"
 
+export_keys "${OUTPUT_DIR}"/infra-devs.gpg \
+	"${INFRA_DEVS[@]}"
+
 export_keys "${OUTPUT_DIR}"/retired-devs.gpg \
 	"${RETIRED_DEVS[@]}"
 
@@ -35,6 +38,7 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \
 	"${SYSTEM_KEYS[@]}" \
 	"${COMMITTING_DEVS[@]}" \
 	"${NONCOMMITTING_DEVS[@]}" \
+	"${INFRA_DEVS[@]}" \
 	"${RETIRED_DEVS[@]}"
 
 clean_tmp


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-03  5:58 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2022-03-03  5:58 UTC (permalink / raw
  To: gentoo-commits

commit:     f6d85383d48fd3eb9211dfcc1cacde54206fcac9
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  3 05:58:00 2022 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Thu Mar  3 05:58:00 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f6d85383

keyrings: more infra devs setup

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-recv-keys.gentoo.org.bash | 2 ++
 keyrings-recv-sks.bash             | 1 +
 2 files changed, 3 insertions(+)

diff --git a/keyrings-recv-keys.gentoo.org.bash b/keyrings-recv-keys.gentoo.org.bash
index 6f3ac0e..a0ec2f9 100755
--- a/keyrings-recv-keys.gentoo.org.bash
+++ b/keyrings-recv-keys.gentoo.org.bash
@@ -11,6 +11,7 @@ source "${BASEDIR}"/keyrings.inc.bash
 set -e
 export_ldap_data_to_env
 export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
+export -a INFRA_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${INFRA_RULE}") )
 export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
 export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
 export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
@@ -21,6 +22,7 @@ export KEYSERVER_TIMEOUT=5m
 grab_keys "${SYSTEM_KEYS[@]}"
 grab_keys "${COMMITTING_DEVS[@]}"
 grab_keys "${NONCOMMITTING_DEVS[@]}"
+grab_keys "${INFRA_DEVS[@]}"
 # -- not all are on keyservers
 # -- and are unlikely to turn up now
 # -- this needs to fetch from some archive instead

diff --git a/keyrings-recv-sks.bash b/keyrings-recv-sks.bash
index 5ab91c3..81ba0a2 100755
--- a/keyrings-recv-sks.bash
+++ b/keyrings-recv-sks.bash
@@ -21,6 +21,7 @@ export KEYSERVER_TIMEOUT=20m
 grab_keys "${SYSTEM_KEYS[@]}"
 grab_keys "${COMMITTING_DEVS[@]}"
 grab_keys "${NONCOMMITTING_DEVS[@]}"
+grab_keys "${INFRA_DEVS[@]}"
 # -- not all are on keyservers
 # -- and are unlikely to turn up now
 # -- this needs to fetch from some archive instead


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-06 17:30 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2022-03-06 17:30 UTC (permalink / raw
  To: gentoo-commits

commit:     db9e494bc501a30e46cfeebe5e64f8f66372d620
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  6 17:27:28 2022 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Mar  6 17:27:28 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=db9e494b

keyrings: increase grab timeout

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 7989d79..b6ea0be 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -35,7 +35,7 @@ grab_keys() {
 	local missing=()
 	local remaining=( "${@}" )
 
-	KEYSERVER_TIMEOUT=${KEYSERVER_TIMEOUT:=1m}
+	KEYSERVER_TIMEOUT=${KEYSERVER_TIMEOUT:=2m}
 	# quickly handle empty keyservers set
 	[ "${#KEYSERVERS[@]}" -eq 0 ] && return
 	while :; do


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-06 17:30 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2022-03-06 17:30 UTC (permalink / raw
  To: gentoo-commits

commit:     105bf2773bf6c22ab6867a9069dbfa5196d8bbe6
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  6 17:30:29 2022 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Mar  6 17:30:29 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=105bf277

keyrings-recv-keys.gentoo.org.bash: remove obsolete comment

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-recv-keys.gentoo.org.bash | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/keyrings-recv-keys.gentoo.org.bash b/keyrings-recv-keys.gentoo.org.bash
index 5f35fcf..640063e 100755
--- a/keyrings-recv-keys.gentoo.org.bash
+++ b/keyrings-recv-keys.gentoo.org.bash
@@ -1,8 +1,5 @@
 #!/bin/bash
 # Import key updates from Keyservers: keys.gentoo.org
-#
-# TODO:
-# - Turn off export in this script
 
 BASEDIR="$(dirname "$0")"
 DEBUG=${DEBUG:=0}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-06 17:30 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2022-03-06 17:30 UTC (permalink / raw
  To: gentoo-commits

commit:     d915befcd50907cad1f494e89674346f0f0319c8
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  6 17:30:16 2022 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Mar  6 17:30:16 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d915befc

keyrings-recv-keys.gentoo.org.bash: add optional debug

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-recv-keys.gentoo.org.bash | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/keyrings-recv-keys.gentoo.org.bash b/keyrings-recv-keys.gentoo.org.bash
index a0ec2f9..5f35fcf 100755
--- a/keyrings-recv-keys.gentoo.org.bash
+++ b/keyrings-recv-keys.gentoo.org.bash
@@ -5,6 +5,7 @@
 # - Turn off export in this script
 
 BASEDIR="$(dirname "$0")"
+DEBUG=${DEBUG:=0}
 # shellcheck source=./keyrings.inc.bash
 source "${BASEDIR}"/keyrings.inc.bash
 
@@ -19,9 +20,13 @@ export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMI
 export KEYSERVERS=( "${KS_GENTOO}" )
 export KEYSERVER_TIMEOUT=5m
 
+[[ $DEBUG -ne 0 ]] && echo SYSTEM_KEYS
 grab_keys "${SYSTEM_KEYS[@]}"
+[[ $DEBUG -ne 0 ]] && echo COMITTING_DEVS
 grab_keys "${COMMITTING_DEVS[@]}"
+[[ $DEBUG -ne 0 ]] && echo NONCOMITTING_DEVS
 grab_keys "${NONCOMMITTING_DEVS[@]}"
+[[ $DEBUG -ne 0 ]] && echo INFRA_DEVS
 grab_keys "${INFRA_DEVS[@]}"
 # -- not all are on keyservers
 # -- and are unlikely to turn up now


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-13 18:14 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-13 18:14 UTC (permalink / raw
  To: gentoo-commits

commit:     a607e1af368a7d2b7f2d4ab088b40e129401f0c6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 13 18:12:46 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 13 18:12:46 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a607e1af

check_eclasses_eapis.sh: minor phrasing tweak

Signed-off-by: Sam James <sam <AT> gentoo.org>

 check_eclasses_eapis.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 56e2a1b..76c332b 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -51,7 +51,7 @@ for x in ${ECLASSES}; do
 	mkdir "${x}"
 	awk -F'=' '$3 ~ /[ "]'"${x%.eclass}"'[ "]/ {print $1" "$2}' "${TMPEAPIS}" > "${TMPECLASS}"
 	pushd "${x}" > /dev/null
-	echo "Overall statistic for eclass \"${x}\":" > "STATS.txt"
+	echo "Overall statistics for eclass \"${x}\":" > "STATS.txt"
 	for y in ${KNOWN_EAPIS}; do
 		awk -F ' ' '$3 ~ /"'"${y}"'"/ {print $1}' "${TMPECLASS}" > "${y}.txt"
 		tmpval=$(wc -l "${y}.txt" |cut -d' ' -f1)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-13 20:53 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-13 20:53 UTC (permalink / raw
  To: gentoo-commits

commit:     c193364d2e02c2615b207fd6919e15541c2ac8b4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 13 20:52:38 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 13 20:52:38 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c193364d

check_eclasses_eapis.sh: needs gawk, not any awk

Signed-off-by: Sam James <sam <AT> gentoo.org>

 check_eclasses_eapis.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 76c332b..3a0fc07 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -10,6 +10,7 @@ else
 fi
 
 #[[ $(type pquery 2> /dev/null) ]] || exit 1
+[[ $(type gawk 2> /dev/null) ]] || exit 1
 
 TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
 TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
@@ -19,7 +20,7 @@ ECLASSES=$(echo *.eclass)
 popd > /dev/null
 
 #pquery --attr eapi --attr inherited --raw --all --repo portdir > "${TMPEAPIS}"
-find "${REPO_PATH}/metadata/md5-cache" -type f -name '*-[0-9]*' -exec awk -F= '
+find "${REPO_PATH}/metadata/md5-cache" -type f -name '*-[0-9]*' -exec gawk -F= '
 	BEGINFILE {
 		n = split(FILENAME, f, "/")
 		file = f[n-1] "/" f[n]
@@ -38,7 +39,7 @@ find "${REPO_PATH}/metadata/md5-cache" -type f -name '*-[0-9]*' -exec awk -F= '
 	}
 	' '{}' \+ > "${TMPEAPIS}"
 
-KNOWN_EAPIS=$(awk '
+KNOWN_EAPIS=$(gawk '
 	{ e = gensub(/eapi="(.*)"/, "\\1", "", $2); eapi[e] = e }
 	END { PROCINFO["sorted_in"]="@ind_num_asc"; for (e in eapi) print e }
 	' "${TMPEAPIS}")
@@ -49,11 +50,11 @@ for x in ${ECLASSES}; do
 	echo "Processing eclass \"${x}\""
 	rm -rf "${x}"
 	mkdir "${x}"
-	awk -F'=' '$3 ~ /[ "]'"${x%.eclass}"'[ "]/ {print $1" "$2}' "${TMPEAPIS}" > "${TMPECLASS}"
+	gawk -F'=' '$3 ~ /[ "]'"${x%.eclass}"'[ "]/ {print $1" "$2}' "${TMPEAPIS}" > "${TMPECLASS}"
 	pushd "${x}" > /dev/null
 	echo "Overall statistics for eclass \"${x}\":" > "STATS.txt"
 	for y in ${KNOWN_EAPIS}; do
-		awk -F ' ' '$3 ~ /"'"${y}"'"/ {print $1}' "${TMPECLASS}" > "${y}.txt"
+		gawk -F ' ' '$3 ~ /"'"${y}"'"/ {print $1}' "${TMPECLASS}" > "${y}.txt"
 		tmpval=$(wc -l "${y}.txt" |cut -d' ' -f1)
 		echo "EAPI=${y} count: ${tmpval}" >> "STATS.txt"
 	done


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 17:52 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 17:52 UTC (permalink / raw
  To: gentoo-commits

commit:     efc4271cb8c62dd0f20dbfe18dab84646e8c9c4c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 14 22:44:41 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 14 22:51:37 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=efc4271c

check_eclasses_eapis.sh: use mktemp

Means we respect TMPDIR.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 check_eclasses_eapis.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 3a0fc07..31a2bbb 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -12,8 +12,8 @@ fi
 #[[ $(type pquery 2> /dev/null) ]] || exit 1
 [[ $(type gawk 2> /dev/null) ]] || exit 1
 
-TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
-TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
+TMPEAPIS="$(mktemp -t $(basename $0).global.tmp.XXXXXX)"
+TMPECLASS="$(mktemp -t $(basename $0).eclass.tmp.XXXXXX)"
 REPO_PATH=$(portageq get_repo_path / gentoo)
 pushd "${REPO_PATH}/eclass" > /dev/null
 ECLASSES=$(echo *.eclass)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 17:52 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 17:52 UTC (permalink / raw
  To: gentoo-commits

commit:     c3638d2240dce9c4c65a547e5371f7b49c426912
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 14 22:45:04 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 14 22:52:00 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c3638d22

check_eclasses_eapis.sh: respect ${EROOT}

Signed-off-by: Sam James <sam <AT> gentoo.org>

 check_eclasses_eapis.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 31a2bbb..899b1c3 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -14,7 +14,7 @@ fi
 
 TMPEAPIS="$(mktemp -t $(basename $0).global.tmp.XXXXXX)"
 TMPECLASS="$(mktemp -t $(basename $0).eclass.tmp.XXXXXX)"
-REPO_PATH=$(portageq get_repo_path / gentoo)
+REPO_PATH=$(portageq get_repo_path ${EROOT:-/} gentoo)
 pushd "${REPO_PATH}/eclass" > /dev/null
 ECLASSES=$(echo *.eclass)
 popd > /dev/null


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 18:52 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 18:52 UTC (permalink / raw
  To: gentoo-commits

commit:     4484c577af41785358982daf4829f71091207567
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 18:48:58 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 18:52:15 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4484c577

check-eapis.sh: new script to list each ebuild using each EAPI

Signed-off-by: Sam James <sam <AT> gentoo.org>

 check-eapis.sh | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/check-eapis.sh b/check-eapis.sh
new file mode 100755
index 0000000..cfd58a1
--- /dev/null
+++ b/check-eapis.sh
@@ -0,0 +1,57 @@
+#!/bin/bash
+# Arguments:
+# $1: output directory. Defaults to eapi-usage.
+
+. /lib/gentoo/functions.sh
+dir=${1}
+if [[ -n ${1} && ! -d ${dir} ]] ; then
+	eerror "Output directory given (${dir}) is not a directory! Exiting."
+	exit 1
+elif [[ -z ${dir} ]] ; then
+	ewarn "No output directory argument given! Defaulting to 'eapi-usage'."
+	dir=eapi-usage
+fi
+
+REPO_PATH=$(portageq get_repo_path ${EROOT:-/} gentoo || exit 1)
+
+mkdir -p ${dir} || exit 1
+
+ebegin "Getting list of supported EAPIs"
+eapi_list=$(python3 -c 'import portage.repository.config; print("\n".join(list(portage._supported_eapis)))' || exit 1)
+eend $?
+einfo "EAPI list:" ${eapi_list}
+
+TMPDIR="$(mktemp -d || exit 1)"
+
+einfo "Working in TMPDIR=${TMPDIR}"
+pushd "${TMPDIR}" &>/dev/null || exit 1
+mkdir -p eapi-usage || exit 1
+cd eapi-usage || exit 1
+
+for eapi in ${eapi_list[@]} ; do
+	[[ -f ${eapi}.txt ]] && rm -r ${eapi}.txt
+	touch ${eapi}.txt
+done
+
+ebegin "Finding ebuilds"
+(
+	for ebuild in $(find "${REPO_PATH}/metadata/md5-cache" -mindepth 2 -maxdepth 2 -type f -name '*-[0-9]*') ; do
+		cpf=$(echo ${ebuild} | rev | cut -d/ -f1-2 | rev)
+		eapi=$(grep -oi "eapi=.*" ${ebuild} | sed -e 's:EAPI=::')
+
+		echo "${cpf}" >> ${eapi}.txt
+	done
+) || { eend $? || exit 1; }
+eend ${?}
+
+ebegin "Sorting EAPI files"
+for eapi in ${eapi_list[@]} ; do
+	sort -u ${eapi}.txt > ${eapi}.txt.sorted
+	mv ${eapi}.txt.sorted ${eapi}.txt
+done || { eend $? || exit 1; }
+eend $?
+
+popd &>/dev/null || exit 1
+mv ${TMPDIR}/eapi-usage/*.txt ${dir}/ || exit 1
+
+rm -r "${TMPDIR}" || exit 1


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 19:34 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 19:34 UTC (permalink / raw
  To: gentoo-commits

commit:     54a596d58eabec34fe6c8fa85ea86ccee98efb0e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 19:34:38 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 19:34:38 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=54a596d5

check-eapis.sh: fix bailout-if-not-dir check

We only want to quit if it's been given and is not a dir but does exist.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 check-eapis.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check-eapis.sh b/check-eapis.sh
index cfd58a1..78fa30a 100755
--- a/check-eapis.sh
+++ b/check-eapis.sh
@@ -4,7 +4,7 @@
 
 . /lib/gentoo/functions.sh
 dir=${1}
-if [[ -n ${1} && ! -d ${dir} ]] ; then
+if [[ -n ${1} && -e ${dir} && ! -d ${dir} ]] ; then
 	eerror "Output directory given (${dir}) is not a directory! Exiting."
 	exit 1
 elif [[ -z ${dir} ]] ; then


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 19:41 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 19:41 UTC (permalink / raw
  To: gentoo-commits

commit:     fe912438df94fbf1b26b297ed287e1527c60a263
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 19:40:44 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 19:40:44 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=fe912438

eapi_usage.sh: add <pre> tags to output for use in README.html in eapi-usage/

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi_usage.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eapi_usage.sh b/eapi_usage.sh
index a4a47ac..94bdfcb 100755
--- a/eapi_usage.sh
+++ b/eapi_usage.sh
@@ -7,6 +7,7 @@
 #
 #pinspect eapi_usage /usr/portage
 
+echo "<pre>"
 find /usr/portage/metadata/md5-cache -type f ! -name '*.gz' \
   -exec grep -h '^EAPI=' '{}' + \
   | awk '
@@ -23,3 +24,4 @@ find /usr/portage/metadata/md5-cache -type f ! -name '*.gz' \
 
 echo
 echo "Date generated: $(date -u '+%Y-%m-%d %H:%M:%S %Z')"
+echo "</pre>"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 19:43 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 19:43 UTC (permalink / raw
  To: gentoo-commits

commit:     4dae15d9b786650329fa92f9a7ddc0116e6f5acc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 19:43:07 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 19:43:07 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4dae15d9

eapi-usage.sh: rename from eapi_usage.sh; absorb check-eapis.sh

Both eapi_usage.sh and check-eapis.sh do very similar things,
so let's combine the two.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 check-eapis.sh => eapi-usage.sh | 26 ++++++++++++++++++++++++++
 eapi_usage.sh                   | 27 ---------------------------
 2 files changed, 26 insertions(+), 27 deletions(-)

diff --git a/check-eapis.sh b/eapi-usage.sh
similarity index 64%
rename from check-eapis.sh
rename to eapi-usage.sh
index 78fa30a..77758bd 100755
--- a/check-eapis.sh
+++ b/eapi-usage.sh
@@ -55,3 +55,29 @@ popd &>/dev/null || exit 1
 mv ${TMPDIR}/eapi-usage/*.txt ${dir}/ || exit 1
 
 rm -r "${TMPDIR}" || exit 1
+
+# Now generate the numbers/summary (copied in from previous eapi_usage.sh script)
+# Boring 'script' that just uses pkgcore's pinspect command. Someday it would be
+# nice to graph this output, or maybe keep some running history?
+
+#[[ $(type pinspect 2> /dev/null) ]] || exit 1
+#
+#pinspect eapi_usage /usr/portage
+echo "<pre>"
+find /usr/portage/metadata/md5-cache -type f ! -name '*.gz' \
+  -exec grep -h '^EAPI=' '{}' + \
+  | awk '
+    { sub("EAPI=",""); eapi[$1]++ }
+    END {
+      PROCINFO["sorted_in"]="@val_num_desc"
+      for (i in eapi) {
+        s=""; for (j=1; j<eapi[i]*50./NR+0.5; j++) s=s"#"
+        printf "EAPI %s: %7d ebuilds (%5.02f%%)  %s\n",
+               i, eapi[i], eapi[i]*100.0/NR, s
+       }
+       printf "total:  %7d ebuilds\n", NR
+    }'
+
+echo
+echo "Date generated: $(date -u '+%Y-%m-%d %H:%M:%S %Z')"
+echo "</pre>"

diff --git a/eapi_usage.sh b/eapi_usage.sh
deleted file mode 100755
index 94bdfcb..0000000
--- a/eapi_usage.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-# Boring 'script' that just uses pkgcore's pinspect command. Someday it would be
-# nice to graph this output, or maybe keep some running history?
-
-#[[ $(type pinspect 2> /dev/null) ]] || exit 1
-#
-#pinspect eapi_usage /usr/portage
-
-echo "<pre>"
-find /usr/portage/metadata/md5-cache -type f ! -name '*.gz' \
-  -exec grep -h '^EAPI=' '{}' + \
-  | awk '
-    { sub("EAPI=",""); eapi[$1]++ }
-    END {
-      PROCINFO["sorted_in"]="@val_num_desc"
-      for (i in eapi) {
-        s=""; for (j=1; j<eapi[i]*50./NR+0.5; j++) s=s"#"
-        printf "EAPI %s: %7d ebuilds (%5.02f%%)  %s\n",
-               i, eapi[i], eapi[i]*100.0/NR, s
-       }
-       printf "total:  %7d ebuilds\n", NR
-    }'
-
-echo
-echo "Date generated: $(date -u '+%Y-%m-%d %H:%M:%S %Z')"
-echo "</pre>"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 20:01 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 20:01 UTC (permalink / raw
  To: gentoo-commits

commit:     09fed52cac77648e93d310a2de57546441a94540
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 19:52:59 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 19:53:19 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=09fed52c

eapi-usage.sh: add note about EINFO_QUIET

We use gentoo-functions' bits so we respect EINFO_QUIET. Note
this in a comment as not everybody will know this.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index 77758bd..7dc6e7d 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -1,4 +1,5 @@
 #!/bin/bash
+# This script respects EINFO_QUIET=1 etc to silence stdout
 # Arguments:
 # $1: output directory. Defaults to eapi-usage.
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 20:01 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 20:01 UTC (permalink / raw
  To: gentoo-commits

commit:     555b795d6313fbda8c94429377b05341effc8577
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 19:59:56 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 20:00:52 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=555b795d

eapi-usage.sh: only list EAPIs seen in tree

Means we avoid e.g. EAPI 0 but also EAPIs never in ::gentoo
like 5-progress.

Much less noisy, anyway.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index 8706fb8..1366d8f 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -15,12 +15,9 @@ fi
 
 REPO_PATH=$(portageq get_repo_path ${EROOT:-/} gentoo || exit 1)
 
-mkdir -p ${dir} || exit 1
+shopt -s nullglob
 
-ebegin "Getting list of supported EAPIs"
-eapi_list=$(python3 -c 'import portage.repository.config; print("\n".join(list(portage._supported_eapis)))' || exit 1)
-eend $?
-einfo "EAPI list:" ${eapi_list}
+mkdir -p ${dir} || exit 1
 
 TMPDIR="$(mktemp -d || exit 1)"
 
@@ -29,11 +26,6 @@ pushd "${TMPDIR}" &>/dev/null || exit 1
 mkdir -p eapi-usage || exit 1
 cd eapi-usage || exit 1
 
-for eapi in ${eapi_list[@]} ; do
-	[[ -f ${eapi}.txt ]] && rm -r ${eapi}.txt
-	touch ${eapi}.txt
-done
-
 ebegin "Finding ebuilds"
 (
 	for ebuild in $(find "${REPO_PATH}/metadata/md5-cache" -mindepth 2 -maxdepth 2 -type f -name '*-[0-9]*') ; do
@@ -46,9 +38,9 @@ ebegin "Finding ebuilds"
 eend ${?}
 
 ebegin "Sorting EAPI files"
-for eapi in ${eapi_list[@]} ; do
-	sort -u ${eapi}.txt > ${eapi}.txt.sorted
-	mv ${eapi}.txt.sorted ${eapi}.txt
+for eapi in *.txt ; do
+	sort -u ${eapi} > ${eapi}.sorted
+	mv ${eapi}.sorted ${eapi}
 done || { eend $? || exit 1; }
 eend $?
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 20:01 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 20:01 UTC (permalink / raw
  To: gentoo-commits

commit:     d615f2c860f3121fa028d08191ad21f3202d04ff
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 19:54:08 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 19:54:08 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d615f2c8

eapi-usage.sh: fully respect ${REPO_PATH}

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index 7dc6e7d..8706fb8 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -65,7 +65,7 @@ rm -r "${TMPDIR}" || exit 1
 #
 #pinspect eapi_usage /usr/portage
 echo "<pre>"
-find /usr/portage/metadata/md5-cache -type f ! -name '*.gz' \
+find "${REPO_PATH}"/metadata/md5-cache -type f ! -name '*.gz' \
   -exec grep -h '^EAPI=' '{}' + \
   | awk '
     { sub("EAPI=",""); eapi[$1]++ }


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 20:02 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 20:02 UTC (permalink / raw
  To: gentoo-commits

commit:     eb458e1476163018d22cfe56de0625a5dd29d949
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 20:01:45 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 20:01:45 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=eb458e14

eapi-usage.sh: cleanup old EAPI results

This means we don't have stale-files lingering once all
ebuilds using an EAPI are removed.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index 1366d8f..e6fa711 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -45,6 +45,7 @@ done || { eend $? || exit 1; }
 eend $?
 
 popd &>/dev/null || exit 1
+rm ${dir}/*.txt || exit 1
 mv ${TMPDIR}/eapi-usage/*.txt ${dir}/ || exit 1
 
 rm -r "${TMPDIR}" || exit 1


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 20:22 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 20:22 UTC (permalink / raw
  To: gentoo-commits

commit:     c921cb304f22ca8dccbdbcea8303d045e47ff04f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 20:22:12 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 20:22:12 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c921cb30

eapi-usage.sh: write STATS.txt in eapi-usage/

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index e6fa711..75aa5d4 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -1,10 +1,14 @@
 #!/bin/bash
 # This script respects EINFO_QUIET=1 etc to silence stdout
+# Always puts a summary in $1/README.html.
 # Arguments:
 # $1: output directory. Defaults to eapi-usage.
-
+# $2: file to place stats in within $1.
+set -x
 . /lib/gentoo/functions.sh
+
 dir=${1}
+
 if [[ -n ${1} && -e ${dir} && ! -d ${dir} ]] ; then
 	eerror "Output directory given (${dir}) is not a directory! Exiting."
 	exit 1
@@ -13,14 +17,15 @@ elif [[ -z ${dir} ]] ; then
 	dir=eapi-usage
 fi
 
-REPO_PATH=$(portageq get_repo_path ${EROOT:-/} gentoo || exit 1)
-
-shopt -s nullglob
+stats=${2:-$dir/STATS.txt}
 
 mkdir -p ${dir} || exit 1
 
+REPO_PATH=$(portageq get_repo_path ${EROOT:-/} gentoo || exit 1)
 TMPDIR="$(mktemp -d || exit 1)"
 
+shopt -s nullglob
+
 einfo "Working in TMPDIR=${TMPDIR}"
 pushd "${TMPDIR}" &>/dev/null || exit 1
 mkdir -p eapi-usage || exit 1
@@ -45,7 +50,8 @@ done || { eend $? || exit 1; }
 eend $?
 
 popd &>/dev/null || exit 1
-rm ${dir}/*.txt || exit 1
+# No exit here because it's fine if we removed nothing
+rm ${dir}/*.txt
 mv ${TMPDIR}/eapi-usage/*.txt ${dir}/ || exit 1
 
 rm -r "${TMPDIR}" || exit 1
@@ -57,7 +63,6 @@ rm -r "${TMPDIR}" || exit 1
 #[[ $(type pinspect 2> /dev/null) ]] || exit 1
 #
 #pinspect eapi_usage /usr/portage
-echo "<pre>"
 find "${REPO_PATH}"/metadata/md5-cache -type f ! -name '*.gz' \
   -exec grep -h '^EAPI=' '{}' + \
   | awk '
@@ -70,8 +75,12 @@ find "${REPO_PATH}"/metadata/md5-cache -type f ! -name '*.gz' \
                i, eapi[i], eapi[i]*100.0/NR, s
        }
        printf "total:  %7d ebuilds\n", NR
-    }'
+    }' > ${stats}
+
+echo > ${stats}
+echo "Date generated: $(date -u '+%Y-%m-%d %H:%M:%S %Z')" > ${stats}
+echo "</pre>" > ${stats}
 
-echo
-echo "Date generated: $(date -u '+%Y-%m-%d %H:%M:%S %Z')"
-echo "</pre>"
+echo "<pre>" > ${dir}/README.html
+cat ${stats} >> ${dir}/README.html
+echo "</pre>" >> ${dir}/README.html


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 20:29 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 20:29 UTC (permalink / raw
  To: gentoo-commits

commit:     5445f9de7360e13a86fb14e145cb257349ed0bbb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 20:25:57 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 20:26:06 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=5445f9de

eapi-usage.sh; drop set -x

Was added for debugging.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 1 -
 1 file changed, 1 deletion(-)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index 75aa5d4..3ec8c8e 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -4,7 +4,6 @@
 # Arguments:
 # $1: output directory. Defaults to eapi-usage.
 # $2: file to place stats in within $1.
-set -x
 . /lib/gentoo/functions.sh
 
 dir=${1}


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 20:29 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 20:29 UTC (permalink / raw
  To: gentoo-commits

commit:     6713ed040f6b13027371a4bec14b300ae13def28
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 20:29:42 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 20:29:42 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6713ed04

eapi-usage.sh: fix clobbering README/STATS

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index 3ec8c8e..81a7f91 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -76,9 +76,9 @@ find "${REPO_PATH}"/metadata/md5-cache -type f ! -name '*.gz' \
        printf "total:  %7d ebuilds\n", NR
     }' > ${stats}
 
-echo > ${stats}
-echo "Date generated: $(date -u '+%Y-%m-%d %H:%M:%S %Z')" > ${stats}
-echo "</pre>" > ${stats}
+echo >> ${stats}
+echo "Date generated: $(date -u '+%Y-%m-%d %H:%M:%S %Z')" >> ${stats}
+echo "</pre>" >> ${stats}
 
 echo "<pre>" > ${dir}/README.html
 cat ${stats} >> ${dir}/README.html


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-03-19 20:34 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-03-19 20:34 UTC (permalink / raw
  To: gentoo-commits

commit:     59268f29b296634f73248a0e93087d4352024471
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 20:34:17 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 20:34:17 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=59268f29

eapi-usage.sh: drop errant </pre> from STATS

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 1 -
 1 file changed, 1 deletion(-)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index 81a7f91..e4b65b2 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -78,7 +78,6 @@ find "${REPO_PATH}"/metadata/md5-cache -type f ! -name '*.gz' \
 
 echo >> ${stats}
 echo "Date generated: $(date -u '+%Y-%m-%d %H:%M:%S %Z')" >> ${stats}
-echo "</pre>" >> ${stats}
 
 echo "<pre>" > ${dir}/README.html
 cat ${stats} >> ${dir}/README.html


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-04-10 15:46 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2022-04-10 15:46 UTC (permalink / raw
  To: gentoo-commits

commit:     0db8cdfb85d8449cf38e3172c235e743bbc0614a
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 10 15:44:16 2022 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Apr 10 15:46:17 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0db8cdfb

keyrings-recv-keys.gentoo.org.bash: drop duplicate export_ldap_data_to_env content

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-recv-keys.gentoo.org.bash | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/keyrings-recv-keys.gentoo.org.bash b/keyrings-recv-keys.gentoo.org.bash
index 640063e..7cc1b62 100755
--- a/keyrings-recv-keys.gentoo.org.bash
+++ b/keyrings-recv-keys.gentoo.org.bash
@@ -7,7 +7,9 @@ DEBUG=${DEBUG:=0}
 source "${BASEDIR}"/keyrings.inc.bash
 
 set -e
-export_ldap_data_to_env
+
+# export_ldap_data_to_env
+# TODO: for unclear reason this does not populate correctly inside a function
 export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_RULE}") )
 export -a INFRA_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${INFRA_RULE}") )
 export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-04-10 15:46 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2022-04-10 15:46 UTC (permalink / raw
  To: gentoo-commits

commit:     4332d6e6b5ac544c231e09a316e0ff1679d9cff5
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 10 15:44:31 2022 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Apr 10 15:46:17 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4332d6e6

keyrings-recv-keys.gentoo.org.bash: cleanup gpg agent

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index b6ea0be..661dd36 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -79,6 +79,8 @@ push_keys() {
 
 export GPG_TMPDIR=''
 clean_tmp() {
+	# Ensure any agent is closed down
+	gpgconf --kill gpg-agent
 	[ -n "$GPG_TMPDIR" ] && [ -d "$GPG_TMPDIR" ] && rm -rf "$GPG_TMPDIR"
 }
 setup_tmp() {


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-04-22 20:56 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2022-04-22 20:56 UTC (permalink / raw
  To: gentoo-commits

commit:     8a9f71b41829f17a76ac35f33e251f1c4f0ce6eb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 22 20:55:58 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 20:56:20 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8a9f71b4

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 630048b..3704619 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 630048b8c486a72361e9f73f14d80614f804730c
+Subproject commit 3704619bbfb31db09a2380fe1d918c18a05cca16


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-05-10 16:30 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-05-10 16:30 UTC (permalink / raw
  To: gentoo-commits

commit:     3abdac2d4e66d1647fd3a49753a6334a4a40fe45
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 10 16:28:13 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 10 16:28:13 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=3abdac2d

Makefile.gpyutils: add Python 3.10 -> Python 3.11

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 0379b03..59fdfc3 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -39,6 +39,11 @@ $(outdir)/depcheck.txt: $(timestamp)
 	gpy-depcheck > $@.new
 	mv $@.new $@
 
+$(outdir)/310-to-311.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl -m python3_10 python3_11 > $@.new
+	mv $@.new $@
+
 $(outdir)/39-to-310.txt: $(timestamp)
 	mkdir -p $(outdir)
 	gpy-upgrade-impl -m python3_9 python3_10 > $@.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-05-10 16:30 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-05-10 16:30 UTC (permalink / raw
  To: gentoo-commits

commit:     0d6fefe574a989c290a83bad2ab5498baf2f3e50
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 10 16:28:30 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 10 16:28:30 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0d6fefe5

Bump pkgcheck2html

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 3704619..630048b 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 3704619bbfb31db09a2380fe1d918c18a05cca16
+Subproject commit 630048b8c486a72361e9f73f14d80614f804730c


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-05-10 21:57 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-05-10 21:57 UTC (permalink / raw
  To: gentoo-commits

commit:     0e178cee8e359a69abdab408d3a36a1cac75ffb0
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 10 21:56:48 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 10 21:56:48 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0e178cee

Makefile.gpyutils: try harder to add Python 3.11

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 59fdfc3..34d93af 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -6,7 +6,7 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 outdir = /dev/null
 
 # upgrades for stable impls
-upgr_base = $(outdir)/39-to-310.txt $(outdir)/38-to-39.txt
+upgr_base = $(outdir)/310-to-311.txt $(outdir)/39-to-310.txt $(outdir)/38-to-39.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
@@ -44,6 +44,11 @@ $(outdir)/310-to-311.txt: $(timestamp)
 	gpy-upgrade-impl -m python3_10 python3_11 > $@.new
 	mv $@.new $@
 
+$(outdir)/39-to-310-stablereq.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl -m -s python3_10 python3_11 > $@.new
+	mv $@.new $@
+
 $(outdir)/39-to-310.txt: $(timestamp)
 	mkdir -p $(outdir)
 	gpy-upgrade-impl -m python3_9 python3_10 > $@.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-05-10 22:01 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-05-10 22:01 UTC (permalink / raw
  To: gentoo-commits

commit:     76acb7896fcf400c444456decd170f398a75c6b2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 10 22:00:57 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 10 22:00:57 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=76acb789

Makefile.gpyutils: fix typo

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 34d93af..3eaeba4 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -44,7 +44,7 @@ $(outdir)/310-to-311.txt: $(timestamp)
 	gpy-upgrade-impl -m python3_10 python3_11 > $@.new
 	mv $@.new $@
 
-$(outdir)/39-to-310-stablereq.txt: $(timestamp)
+$(outdir)/310-to-311-stablereq.txt: $(timestamp)
 	mkdir -p $(outdir)
 	gpy-upgrade-impl -m -s python3_10 python3_11 > $@.new
 	mv $@.new $@


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-05-11 20:35 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-05-11 20:35 UTC (permalink / raw
  To: gentoo-commits

commit:     6b72ba0ea772a4437b1e8ff962efe5fc389fbc1f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 11 20:34:43 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 11 20:34:43 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6b72ba0e

Makefile.gpyutils: don't generate 3.11 graphs yet

Taken a day to generate these and still not done.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 3eaeba4..c9f7e6f 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -6,14 +6,15 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 outdir = /dev/null
 
 # upgrades for stable impls
-upgr_base = $(outdir)/310-to-311.txt $(outdir)/39-to-310.txt $(outdir)/38-to-39.txt
+upgr_base = $(outdir)/39-to-310.txt $(outdir)/38-to-39.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
 upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/py2.txt
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
-upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg)
+# add new impls here if not stable yet, to avoid insanely huge generation times
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/310-to-311.txt
 
 all = $(upgr_all)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-05-16 12:46 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2022-05-16 12:46 UTC (permalink / raw
  To: gentoo-commits

commit:     1cb8a117d3d5ae81e73398b0ab5b28fe7fc64e88
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 12:46:33 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 16 12:46:41 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1cb8a117

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 630048b..3ed9660 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 630048b8c486a72361e9f73f14d80614f804730c
+Subproject commit 3ed9660cd86f0cd0a40ec16f9289c6d6a2d1dbcd


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-05-16 16:29 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2022-05-16 16:29 UTC (permalink / raw
  To: gentoo-commits

commit:     34209a0d11ae33d80d18ad0551802bb185da1dcd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 16:29:44 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 16 16:29:44 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=34209a0d

gpyutils: Remove support for obsolete tools

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

 Makefile.gpyutils | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index c9f7e6f..eb355d8 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -20,26 +20,6 @@ all = $(upgr_all)
 
 all: $(all)
 
-$(outdir)/cands.txt: $(timestamp)
-	mkdir -p $(outdir)
-	gpy-cands > $@.new
-	mv $@.new $@
-
-$(outdir)/depcands.txt: $(timestamp)
-	mkdir -p $(outdir)
-	gpy-depcands > $@.new
-	mv $@.new $@
-
-$(outdir)/depcands-all.txt: $(timestamp)
-	mkdir -p $(outdir)
-	gpy-depcands --all > $@.new
-	mv $@.new $@
-
-$(outdir)/depcheck.txt: $(timestamp)
-	mkdir -p $(outdir)
-	gpy-depcheck > $@.new
-	mv $@.new $@
-
 $(outdir)/310-to-311.txt: $(timestamp)
 	mkdir -p $(outdir)
 	gpy-upgrade-impl -m python3_10 python3_11 > $@.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-06-01 10:08 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2022-06-01 10:08 UTC (permalink / raw
  To: gentoo-commits

commit:     02b2faa0e18db7730377acdbde413c028352f12b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  1 10:08:42 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun  1 10:08:42 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=02b2faa0

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 3ed9660..f09e156 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 3ed9660cd86f0cd0a40ec16f9289c6d6a2d1dbcd
+Subproject commit f09e1564812cb9b6a5d828376fa509d51c380ad4


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-06-06  4:33 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2022-06-06  4:33 UTC (permalink / raw
  To: gentoo-commits

commit:     0d67a84cca32e7a3a335bb8d6483150006ed27b4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  6 04:33:33 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jun  6 04:33:33 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0d67a84c

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index f09e156..ac60b9e 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit f09e1564812cb9b6a5d828376fa509d51c380ad4
+Subproject commit ac60b9e4642f0895caaed7d81a6a4d38bd652fa9


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-11  0:53 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-11  0:53 UTC (permalink / raw
  To: gentoo-commits

commit:     f8df7314768c5f5ee309ae63dcabd22442cce50b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 11 00:52:56 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 00:52:56 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f8df7314

keyrings-export.bash: make weekly snapshots of keyring exports

Needed for making a sec-keys/ package.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index f07df83..c9d4715 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -41,4 +41,16 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \
 	"${INFRA_DEVS[@]}" \
 	"${RETIRED_DEVS[@]}"
 
+for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do
+	timestamp=$(date +%Y%m%d)
+
+	# Don't clobber existing timestamped keys for this period (weekly)
+	# if we're running several times a day.
+	if [[ -f "${OUTPUT_DIR}"/${key}-${timestamp}.gpg ]] ; then
+		continue
+	fi
+
+	cp "${OUTPUT_DIR}"/${key}.gpg "${OUTPUT_DIR}"/${key}-${timestamp}.gpg
+done
+
 clean_tmp


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-11  0:58 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-11  0:58 UTC (permalink / raw
  To: gentoo-commits

commit:     915cc80e0bc0246a852613d3b07bde7dc9242cae
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 11 00:58:38 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 00:58:38 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=915cc80e

keyrings-export.bash: run snapshot part weekly

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index c9d4715..eea3f20 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -42,7 +42,7 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \
 	"${RETIRED_DEVS[@]}"
 
 for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do
-	timestamp=$(date +%Y%m%d)
+	timestamp=$(date -u +%Y%m%d -d "next monday")
 
 	# Don't clobber existing timestamped keys for this period (weekly)
 	# if we're running several times a day.


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-11  1:00 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-11  1:00 UTC (permalink / raw
  To: gentoo-commits

commit:     a9d640acbf75867a786cc50971521af8d95e921a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 11 01:00:07 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 01:00:07 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a9d640ac

keyrings-export.bash: put key snapshots in /keys/ to avoid clutter

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index eea3f20..6e4ade9 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -46,11 +46,13 @@ for key in service-keys committing-devs active-devs infra-devs retired-devs all-
 
 	# Don't clobber existing timestamped keys for this period (weekly)
 	# if we're running several times a day.
-	if [[ -f "${OUTPUT_DIR}"/${key}-${timestamp}.gpg ]] ; then
+	if [[ -f "${OUTPUT_DIR}"/keys/${key}-${timestamp}.gpg ]] ; then
 		continue
 	fi
 
-	cp "${OUTPUT_DIR}"/${key}.gpg "${OUTPUT_DIR}"/${key}-${timestamp}.gpg
+	mkdir -p "${OUTPUT_DIR}"/keys
+
+	cp "${OUTPUT_DIR}"/${key}.gpg "${OUTPUT_DIR}"/keys/${key}-${timestamp}.gpg
 done
 
 clean_tmp


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-11  1:08 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-11  1:08 UTC (permalink / raw
  To: gentoo-commits

commit:     34dc0a6bfcc006a5c1d9d9fa7111fdb30d5a8ef4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 11 01:08:47 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 01:08:47 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=34dc0a6b

keyrings-exports.bash: "next monday" -> "monday"

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 6e4ade9..a890daf 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -42,7 +42,7 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \
 	"${RETIRED_DEVS[@]}"
 
 for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do
-	timestamp=$(date -u +%Y%m%d -d "next monday")
+	timestamp=$(date -u +%Y%m%d -d "monday")
 
 	# Don't clobber existing timestamped keys for this period (weekly)
 	# if we're running several times a day.


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-11  1:26 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-11  1:26 UTC (permalink / raw
  To: gentoo-commits

commit:     deb5eca88bc5eae48fd36cdcb09a3dcb8e4629bc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 11 01:26:03 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 01:26:03 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=deb5eca8

keyrings-export.bash: migrate keys into keys/

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index a890daf..aee9af2 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -17,24 +17,24 @@ export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONC
 export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
 export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 
-export_keys "${OUTPUT_DIR}"/service-keys.gpg \
+export_keys "${OUTPUT_DIR}"/keys/service-keys.gpg \
 	"${SYSTEM_KEYS[@]}"
 
-export_keys "${OUTPUT_DIR}"/committing-devs.gpg \
+export_keys "${OUTPUT_DIR}"/keys/committing-devs.gpg \
 	"${COMMITTING_DEVS[@]}"
 
-export_keys "${OUTPUT_DIR}"/active-devs.gpg \
+export_keys "${OUTPUT_DIR}"/keys/active-devs.gpg \
 	"${COMMITTING_DEVS[@]}" \
 	"${NONCOMMITTING_DEVS[@]}"
 
-export_keys "${OUTPUT_DIR}"/infra-devs.gpg \
+export_keys "${OUTPUT_DIR}"/keys/infra-devs.gpg \
 	"${INFRA_DEVS[@]}"
 
-export_keys "${OUTPUT_DIR}"/retired-devs.gpg \
+export_keys "${OUTPUT_DIR}"/keys/retired-devs.gpg \
 	"${RETIRED_DEVS[@]}"
 
 # Everybody together now
-export_keys "${OUTPUT_DIR}"/all-devs.gpg \
+export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
 	"${SYSTEM_KEYS[@]}" \
 	"${COMMITTING_DEVS[@]}" \
 	"${NONCOMMITTING_DEVS[@]}" \
@@ -42,6 +42,11 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \
 	"${RETIRED_DEVS[@]}"
 
 for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do
+	if [[ ! -L keys/${key}.gpg ]] ; then
+		# Compatibility symlink
+		ln -s keys/${key}.gpg ${key}.gpg
+	fi
+
 	timestamp=$(date -u +%Y%m%d -d "monday")
 
 	# Don't clobber existing timestamped keys for this period (weekly)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-11  1:42 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-11  1:42 UTC (permalink / raw
  To: gentoo-commits

commit:     89f4e8e0d6ce3be550ca01a8397763ad9efae9ca
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 11 01:41:59 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 01:41:59 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=89f4e8e0

keyrings-export.bash: use ${OUTPUT_DIR}

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index aee9af2..7445644 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -42,9 +42,9 @@ export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
 	"${RETIRED_DEVS[@]}"
 
 for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do
-	if [[ ! -L keys/${key}.gpg ]] ; then
+	if [[ ! -L "${OUTPUT_DIR}"/keys/${key}.gpg ]] ; then
 		# Compatibility symlink
-		ln -s keys/${key}.gpg ${key}.gpg
+		ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
 	fi
 
 	timestamp=$(date -u +%Y%m%d -d "monday")


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-16  3:40 John Helmert III
  0 siblings, 0 replies; 316+ messages in thread
From: John Helmert III @ 2022-07-16  3:40 UTC (permalink / raw
  To: gentoo-commits

commit:     d76a48bc11b24d1a2a3ffd41c901f3881f48b624
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 03:38:16 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 03:38:16 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d76a48bc

create-dev-keyrings: also export infra service keys

Needed for glsamaker.

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 create-dev-keyrings.bash | 3 +++
 keyrings.inc.bash        | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index d0ea12a..94af82a 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -18,6 +18,9 @@ grab_keys "${SYSTEM_KEYS[@]}"
 export_keys "${OUTPUT_DIR}"/service-keys.gpg \
 	"${SYSTEM_KEYS[@]}"
 
+grab_keys "${INFRA_SYSTEM_KEYS[@]}"
+export_keys "${OUTPUT_DIR}"/infra-service-keys.gpg
+
 grab_keys "${COMMITTING_DEVS[@]}"
 export_keys "${OUTPUT_DIR}"/committing-devs.gpg \
 	"${COMMITTING_DEVS[@]}"

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 661dd36..9c2a23b 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -7,6 +7,7 @@ COMMIT_RULE='(&(gentooAccess=git.gentoo.org/repo/gentoo.git)(gentooStatus=active
 NONCOMMIT_RULE='(&(!(gentooAccess=git.gentoo.org/repo/gentoo.git))(gentooStatus=active))'
 RETIRED_RULE='(!(gentooStatus=active))'
 INFRA_RULE='(&(gentooAccess=infra.group)(gentooStatus=active))'
+INFRA_SYSTEM_RULE='(&(gentooAccess=infra-system.group)(gentooStatus=active))'
 
 export KS_GENTOO=hkps://keys.gentoo.org/
 # Use local keyserver for speedup
@@ -134,4 +135,5 @@ export_ldap_data_to_env() {
 	export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
 	export -a INFRA_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${INFRA_RULE}") )
 	export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
+	export -a INFRA_SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${INFRA_SYSTEM_RULE}") )
 }


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-16  4:23 John Helmert III
  0 siblings, 0 replies; 316+ messages in thread
From: John Helmert III @ 2022-07-16  4:23 UTC (permalink / raw
  To: gentoo-commits

commit:     7da88ccd30ca360220a82f186fd822c27b6866cc
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 04:21:41 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 04:22:59 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7da88ccd

keyrings-export: force creating compat symlinks

Infra is getting mails complaining that these symlinks already
exist. It's safe/easiest to just force them to be created.

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 keyrings-export.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 7445644..dea52ac 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -44,7 +44,7 @@ export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
 for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do
 	if [[ ! -L "${OUTPUT_DIR}"/keys/${key}.gpg ]] ; then
 		# Compatibility symlink
-		ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
+		ln -sf "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
 	fi
 
 	timestamp=$(date -u +%Y%m%d -d "monday")


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-16 16:32 John Helmert III
  0 siblings, 0 replies; 316+ messages in thread
From: John Helmert III @ 2022-07-16 16:32 UTC (permalink / raw
  To: gentoo-commits

commit:     a21e419a55ab2b263e564459931f23fe9f17e4d1
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 16:31:11 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 16:31:11 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a21e419a

create-dev-keyrings: correct export_keys call

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 create-dev-keyrings.bash | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 94af82a..3ab1b58 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -19,7 +19,8 @@ export_keys "${OUTPUT_DIR}"/service-keys.gpg \
 	"${SYSTEM_KEYS[@]}"
 
 grab_keys "${INFRA_SYSTEM_KEYS[@]}"
-export_keys "${OUTPUT_DIR}"/infra-service-keys.gpg
+export_keys "${OUTPUT_DIR}"/infra-service-keys.gpg \
+	"${INFRA_SYSTEM_KEYS[@]}"
 
 grab_keys "${COMMITTING_DEVS[@]}"
 export_keys "${OUTPUT_DIR}"/committing-devs.gpg \


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-16 17:08 John Helmert III
  0 siblings, 0 replies; 316+ messages in thread
From: John Helmert III @ 2022-07-16 17:08 UTC (permalink / raw
  To: gentoo-commits

commit:     000df6e17d844a754aa514309425b99b84dc3acc
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 17:07:32 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 17:07:32 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=000df6e1

keyrings-export: generate infra-service keyring

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 keyrings-export.bash | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index dea52ac..3eaf312 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -16,10 +16,15 @@ export -a COMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${COMMIT_
 export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONCOMMIT_RULE}") )
 export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
 export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
+export -a INFRA_SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${INFRA_SYSTEM_RULE}") )
 
 export_keys "${OUTPUT_DIR}"/keys/service-keys.gpg \
 	"${SYSTEM_KEYS[@]}"
 
+grab_keys "${INFRA_SYSTEM_KEYS[@]}"
+export_keys "${OUTPUT_DIR}"/infra-service-keys.gpg \
+    "${INFRA_SYSTEM_KEYS[@]}"
+
 export_keys "${OUTPUT_DIR}"/keys/committing-devs.gpg \
 	"${COMMITTING_DEVS[@]}"
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-16 18:25 John Helmert III
  0 siblings, 0 replies; 316+ messages in thread
From: John Helmert III @ 2022-07-16 18:25 UTC (permalink / raw
  To: gentoo-commits

commit:     b2e2cb0fbc3d90307b161b8396b9066a8210e53d
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 18:25:27 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 18:25:27 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=b2e2cb0f

keyrings-export: don't grab_keys

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 keyrings-export.bash | 1 -
 1 file changed, 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 3eaf312..6b05d0d 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -21,7 +21,6 @@ export -a INFRA_SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${IN
 export_keys "${OUTPUT_DIR}"/keys/service-keys.gpg \
 	"${SYSTEM_KEYS[@]}"
 
-grab_keys "${INFRA_SYSTEM_KEYS[@]}"
 export_keys "${OUTPUT_DIR}"/infra-service-keys.gpg \
     "${INFRA_SYSTEM_KEYS[@]}"
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-16 18:29 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-16 18:29 UTC (permalink / raw
  To: gentoo-commits

commit:     2ca925941f5169b5acb05f976269cb8374aa0d86
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 18:28:30 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 18:29:05 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2ca92594

keyrings-export.bash: fix infra-service-keys.gpg path

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 6b05d0d..0f36800 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -21,7 +21,7 @@ export -a INFRA_SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${IN
 export_keys "${OUTPUT_DIR}"/keys/service-keys.gpg \
 	"${SYSTEM_KEYS[@]}"
 
-export_keys "${OUTPUT_DIR}"/infra-service-keys.gpg \
+export_keys "${OUTPUT_DIR}"/keys/infra-service-keys.gpg \
     "${INFRA_SYSTEM_KEYS[@]}"
 
 export_keys "${OUTPUT_DIR}"/keys/committing-devs.gpg \


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-16 18:29 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-16 18:29 UTC (permalink / raw
  To: gentoo-commits

commit:     d4ae674f7a280c1f04ede58320c5c30ba31024c6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 18:29:34 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 18:29:34 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d4ae674f

keyrings-export.bash: avoid ln -f (fix mismatched check)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 0f36800..815c50b 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -46,9 +46,9 @@ export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
 	"${RETIRED_DEVS[@]}"
 
 for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do
-	if [[ ! -L "${OUTPUT_DIR}"/keys/${key}.gpg ]] ; then
+	if [[ ! -L "${OUTPUT_DIR}"/${key}.gpg ]] ; then
 		# Compatibility symlink
-		ln -sf "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
+		ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
 	fi
 
 	timestamp=$(date -u +%Y%m%d -d "monday")


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-23  2:59 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-23  2:59 UTC (permalink / raw
  To: gentoo-commits

commit:     74a65d4b6351542d084ecedaa2a07c3e653fb5ee
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 23 02:58:31 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 23 02:59:52 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=74a65d4b

leaf-packages.py: add new script

See https://leo3418.github.io/2021/07/18/find-leaf-packages.html
from Leo3418's GSoC 2021 work.

Thanks-to: Yuan Liao <liaoyuan <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 leaf-packages.py | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 113 insertions(+)

diff --git a/leaf-packages.py b/leaf-packages.py
new file mode 100755
index 0000000..15cafe8
--- /dev/null
+++ b/leaf-packages.py
@@ -0,0 +1,113 @@
+# From Leo3418's GSoC 2021 work
+# https://leo3418.github.io/2021/07/18/find-leaf-packages.html
+
+import concurrent.futures
+import os
+import re
+import subprocess
+import sys
+
+method="pkgcore"
+
+def main() -> None:
+    if len(sys.argv) > 1:
+        repo = sys.argv[1]
+    else:
+        repo = 'gentoo'
+    zero_in_degree = create_ebuild_dict(repo)
+    with concurrent.futures.ThreadPoolExecutor(max_workers=os.cpu_count()) \
+            as executor:
+        for ebuild in zero_in_degree:
+            # Let the executor run function call
+            # update_for_deps_of(ebuild, zero_in_degree)
+            if method == "pkgcore":
+                executor.submit(update_for, ebuild, zero_in_degree, repo)
+            else:
+                executor.submit(update_for_deps_of, ebuild, zero_in_degree)
+
+    # Print leaf ebuilds to standard output
+    for ebuild in zero_in_degree:
+        if zero_in_degree[ebuild]:
+            print(ebuild)
+
+
+def update_for(ebuild: str, zero_in_degree: dict, repo: str) -> None:
+    """
+    Update the boolean value for the specified ebuild in the given dictionary.
+    Reverse dependencies of the ebuild will be searched in the specified
+    repository only.
+    """
+    print(f"Processing {ebuild} ...", file=sys.stderr)
+    proc = subprocess.run(f'pquery --first --restrict-revdep ={ebuild} '
+                          f'--repo {repo} --raw --unfiltered',
+                          capture_output=True, text=True, shell=True)
+    zero_in_degree[ebuild] = len(proc.stdout) == 0
+
+def create_ebuild_dict(repo: str) -> dict:
+    """
+    Create a dictionary with all ebuilds in the specified repository as keys
+    that maps each key to a boolean value indicating whether it is a leaf
+    ebuild with zero in-degree.
+    """
+    zero_in_degree = {}
+    proc = subprocess.run(f'pquery --repo {repo} --raw --unfiltered',
+                          capture_output=True, text=True,
+                          shell=True, check=True)
+    ebuilds = proc.stdout.splitlines()
+    for ebuild in ebuilds:
+        zero_in_degree[ebuild] = True
+    return zero_in_degree
+
+
+def update_for_deps_of(ebuild: str, zero_in_degree: dict) -> None:
+    """
+    For ebuilds that can be pulled as the specified ebuild's dependencies,
+    update the boolean value for them in the given dictionary accordingly.
+    """
+
+    def get_dep_atoms() -> list:
+        """
+        Return a list of all dependency specification atoms.
+        """
+        dep_atoms = []
+        equery_dep_atom_pattern = re.compile(r'\(.+/.+\)')
+        proc = subprocess.run(f'equery -CN depgraph -MUl {ebuild}',
+                              capture_output=True, text=True, shell=True)
+        out_lines = proc.stdout.splitlines()
+        for line in out_lines:
+            dep_atom_match = equery_dep_atom_pattern.findall(line)
+            dep_atom = [dep.strip('()') for dep in dep_atom_match]
+            dep_atoms.extend(dep_atom)
+        return dep_atoms
+
+    def find_matching_ebuilds(atom: str) -> list:
+        """
+        Return a list of ebuilds that satisfy an atom.
+        """
+        proc = subprocess.run(f"equery list -op -F '$cpv' '{atom}'",
+                              capture_output=True, text=True, shell=True)
+        return proc.stdout.splitlines()
+
+    #print(f"Processing {ebuild} ...", file=sys.stderr)
+
+    # Get dependency specifications in the ebuild;
+    # equivalent to dep_graph[ebuild] in the examples above
+    dep_atoms = get_dep_atoms()
+
+    # Convert list of atoms to list of ebuilds that satisfy them
+    dep_ebuilds = []
+    for dep_atom in dep_atoms:
+        dep_ebuilds.extend(find_matching_ebuilds(dep_atom))
+
+    # Register dependency ebuilds as non-leaves
+    for dep_ebuild in dep_ebuilds:
+        # An ebuild in an overlay might depend on ebuilds from ::gentoo and/or
+        # other repositories, but we only care about ebuilds in the dictionary
+        # passed to this function
+        if dep_ebuild in zero_in_degree:
+            zero_in_degree[dep_ebuild] = False
+
+
+if __name__ == '__main__':
+    main()
+


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-24  1:19 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-24  1:19 UTC (permalink / raw
  To: gentoo-commits

commit:     30a30507c911d4048000dbbc1a3bc195e960a86e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 24 01:19:38 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 24 01:19:38 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=30a30507

leaf-packages.py: add Python shebang

Signed-off-by: Sam James <sam <AT> gentoo.org>

 leaf-packages.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/leaf-packages.py b/leaf-packages.py
index 15cafe8..976cb31 100755
--- a/leaf-packages.py
+++ b/leaf-packages.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 # From Leo3418's GSoC 2021 work
 # https://leo3418.github.io/2021/07/18/find-leaf-packages.html
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-24 22:52 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2022-07-24 22:52 UTC (permalink / raw
  To: gentoo-commits

commit:     2ab0c90eb31aeed1a4a95d79181d2dbcb42dbe7d
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 24 22:51:29 2022 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jul 24 22:51:29 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2ab0c90e

find-binary-files.sh: Account for image/x-xpixmap

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 find-binary-files.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index db3ecb8..12e6fea 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 2014-2019 Ulrich Müller
+# Copyright 2014-2022 Ulrich Müller
 # Distributed under the terms of the GNU GPL version 2 or later
 # Author: Ulrich Müller <ulm@gentoo.org>
 
@@ -33,6 +33,7 @@ while read line; do
         "image/svg; charset=us-ascii") ;;     # SVG image
         "image/svg+xml; charset=us-ascii") ;; # SVG image
         "image/x-xpmi; charset=us-ascii") ;;  # XPM image
+        "image/x-xpixmap; charset=us-ascii") ;;  # XPM image
         "message/rfc822; charset=us-ascii") ;;
         "message/rfc822; charset=utf-8") ;;
         *)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-31  1:34 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-31  1:34 UTC (permalink / raw
  To: gentoo-commits

commit:     162f84200d5c5d8c19c5d61a769b0cea694e7d7a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 31 01:34:25 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 31 01:34:25 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=162f8420

pkgcheck2html: update

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index ac60b9e..3333627 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit ac60b9e4642f0895caaed7d81a6a4d38bd652fa9
+Subproject commit 33336276e530d5b7fe19910173ed0c04f405dd24


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-07-31  1:57 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-07-31  1:57 UTC (permalink / raw
  To: gentoo-commits

commit:     e2bd072dd9f8c58c3211cacd1a526d4af09b2cc2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 31 01:57:29 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 31 01:57:29 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e2bd072d

pkgcheck2html: update

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 3333627..0662499 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 33336276e530d5b7fe19910173ed0c04f405dd24
+Subproject commit 066249973b4e78bbd187f9afa7e267f104d6e655


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-09-03  1:24 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-09-03  1:24 UTC (permalink / raw
  To: gentoo-commits

commit:     0d01497249a825e1d39862fd9d9ed6edde9a92bf
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  3 01:23:04 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep  3 01:23:04 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0d014972

keyrings-export.bash: only run weekly for timestamped files

Otherwise we'd end up having files like service-keys-20220905.gpg
created on 20220830.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 815c50b..39091f4 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -51,7 +51,13 @@ for key in service-keys committing-devs active-devs infra-devs retired-devs all-
 		ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
 	fi
 
-	timestamp=$(date -u +%Y%m%d -d "monday")
+	timestamp=$(date -u +%Y%m%d-%A -d "monday")
+
+	if [[ ${timestamp} != *-Monday ]] ;
+		break
+	fi
+
+	timestamp=${timestamp/-Monday/}
 
 	# Don't clobber existing timestamped keys for this period (weekly)
 	# if we're running several times a day.


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-09-03  2:50 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-09-03  2:50 UTC (permalink / raw
  To: gentoo-commits

commit:     739916f6b5abd72102f65a8fe7530add40ca4da2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  3 02:50:18 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep  3 02:50:18 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=739916f6

keyrings-export.bash: fix check

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 39091f4..35c9959 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -53,7 +53,7 @@ for key in service-keys committing-devs active-devs infra-devs retired-devs all-
 
 	timestamp=$(date -u +%Y%m%d-%A -d "monday")
 
-	if [[ ${timestamp} != *-Monday ]] ;
+	if [[ ${timestamp} != *-Monday ]] ; then
 		break
 	fi
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-04  3:46 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-10-04  3:46 UTC (permalink / raw
  To: gentoo-commits

commit:     fc3c690916aa2f1989353e36581c7101b11339c7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  4 03:46:11 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct  4 03:46:11 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=fc3c6909

pkgcheck2html: bump version

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 0662499..9f25cd3 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 066249973b4e78bbd187f9afa7e267f104d6e655
+Subproject commit 9f25cd3e04981e2ac481cea810cb3300134a4120


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-08 12:24 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-10-08 12:24 UTC (permalink / raw
  To: gentoo-commits

commit:     35edf0777842c607c8c60821e95f09cd4bdb9f9d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  8 12:24:25 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  8 12:24:25 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=35edf077

pkgcheck2html: bump version

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 9f25cd3..91607a7 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 9f25cd3e04981e2ac481cea810cb3300134a4120
+Subproject commit 91607a7441f78c0239c61ef55e57eb79278d5793


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-08 17:18 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-10-08 17:18 UTC (permalink / raw
  To: gentoo-commits

commit:     d4a1a1485b829d81be235f47ed16b58b9211ca02
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  8 17:18:44 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  8 17:18:44 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d4a1a148

pkgcheck2html: bump version

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 91607a7..2bb29ed 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 91607a7441f78c0239c61ef55e57eb79278d5793
+Subproject commit 2bb29ed8342085a47ec616f554bc3cb6878f9e71


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-08 18:30 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-10-08 18:30 UTC (permalink / raw
  To: gentoo-commits

commit:     21569a514fd72e37a50b71074bc5e3af69b58dc2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  8 18:30:48 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  8 18:30:48 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=21569a51

pkgcheck2html: bump version

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 2bb29ed..2e6481e 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 2bb29ed8342085a47ec616f554bc3cb6878f9e71
+Subproject commit 2e6481e9b693313b302710c8c4fe8fd22b61a605


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-08 18:59 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-10-08 18:59 UTC (permalink / raw
  To: gentoo-commits

commit:     85455be3384328a0ed31be1c1694236adbc2d21c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  8 18:59:49 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  8 18:59:49 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=85455be3

pkgcheck2html: bump version

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 2e6481e..2892dda 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 2e6481e9b693313b302710c8c4fe8fd22b61a605
+Subproject commit 2892dda2f1945de84c7ca98cceb0f7dc66e24869


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-10 19:53 John Helmert III
  0 siblings, 0 replies; 316+ messages in thread
From: John Helmert III @ 2022-10-10 19:53 UTC (permalink / raw
  To: gentoo-commits

commit:     d51605cc9b7070cd294989022fedc4ddc4faafb8
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 10 19:53:01 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Mon Oct 10 19:53:01 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d51605cc

keyrings.inc.bash: gpgconf --kill all on cleanup

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 keyrings.inc.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 9c2a23b..58881ae 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -81,7 +81,7 @@ push_keys() {
 export GPG_TMPDIR=''
 clean_tmp() {
 	# Ensure any agent is closed down
-	gpgconf --kill gpg-agent
+	gpgconf --kill all
 	[ -n "$GPG_TMPDIR" ] && [ -d "$GPG_TMPDIR" ] && rm -rf "$GPG_TMPDIR"
 }
 setup_tmp() {


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-10 23:56 John Helmert III
  0 siblings, 0 replies; 316+ messages in thread
From: John Helmert III @ 2022-10-10 23:56 UTC (permalink / raw
  To: gentoo-commits

commit:     1731d58dd5b7cffbb6bd8dc3bd49e9e8642b814f
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 10 23:53:44 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Mon Oct 10 23:56:01 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1731d58d

keyrings: disable using local keyserver

Somehow this is vastly, vastly slower than simply using
keys.gentoo.org even though they should be resolving to the same host.

Bug: https://bugs.gentoo.org/876532
Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 keyrings.inc.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 58881ae..cc89de0 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -11,8 +11,8 @@ INFRA_SYSTEM_RULE='(&(gentooAccess=infra-system.group)(gentooStatus=active))'
 
 export KS_GENTOO=hkps://keys.gentoo.org/
 # Use local keyserver for speedup
-KS_GENTOO_LOCAL=${HOSTNAME%.gentoo.org}.keys.gentoo.org
-dig $KS_GENTOO_LOCAL +short |grep -sq . && export KS_GENTOO=hkps://${KS_GENTOO_LOCAL}
+# KS_GENTOO_LOCAL=${HOSTNAME%.gentoo.org}.keys.gentoo.org
+# dig $KS_GENTOO_LOCAL +short |grep -sq . && export KS_GENTOO=hkps://${KS_GENTOO_LOCAL}
 
 #export KS_SKS=hkps://hkps.pool.sks-keyservers.net/ # Disabled pending security announcement
 export KS_OPENPGP=hkps://keys.openpgp.org/ # runs Hagrid


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-15  0:59 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-10-15  0:59 UTC (permalink / raw
  To: gentoo-commits

commit:     ae07f7521f964dffc8dcb1485559168dd7151f83
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 15 00:58:53 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 15 00:59:13 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ae07f752

pkgcheck2html: bump version

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 2892dda..0794388 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 2892dda2f1945de84c7ca98cceb0f7dc66e24869
+Subproject commit 07943881432d8f4aecb961dab80151fd584e8b3f


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-15  1:08 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-10-15  1:08 UTC (permalink / raw
  To: gentoo-commits

commit:     0dfee6dcb366181a046b4e59bd483e0006f5bd17
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 15 01:08:38 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 15 01:08:44 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0dfee6dc

pkgcheck2html: bump version

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 0794388..7687737 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 07943881432d8f4aecb961dab80151fd584e8b3f
+Subproject commit 7687737db9a333a3b20d9e457e65fd66868da7ce


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-10-31 19:30 John Helmert III
  0 siblings, 0 replies; 316+ messages in thread
From: John Helmert III @ 2022-10-31 19:30 UTC (permalink / raw
  To: gentoo-commits

commit:     a33a67bc0ec417497c5a018f89750f90bea66fa1
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 31 19:28:23 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Mon Oct 31 19:29:57 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a33a67bc

drop gpy-py2 handling

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 Makefile.gpyutils | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index eb355d8..b1d02e7 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -50,11 +50,6 @@ $(outdir)/38-to-39-stablereq.txt: $(timestamp)
 	gpy-upgrade-impl -m -s python3_8 python3_9 > $@.new
 	mv $@.new $@
 
-$(outdir)/py2.txt: $(timestamp)
-	mkdir -p $(outdir)
-	gpy-py2 > $@.new
-	mv $@.new $@
-
 %.dot: %.txt
 	gpy-depgraph -m python@gentoo.org $< > $@.new
 	mv $@.new $@


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2022-11-01 22:45 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2022-11-01 22:45 UTC (permalink / raw
  To: gentoo-commits

commit:     e5323d2232b5b24d7481c5175777f15e9b2e68cd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  1 22:44:27 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov  1 22:44:27 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e5323d22

keyrings-export.bash: use "last monday" / fix timestamped files generation

Don't generate the timestamped files on Mondays to avoid "last" / "next"
Monday confusion

We want to avoid generating stuff like all-devs-20221107.gpg.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 keyrings-export.bash | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 35c9959..b3234e2 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -51,7 +51,12 @@ for key in service-keys committing-devs active-devs infra-devs retired-devs all-
 		ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
 	fi
 
-	timestamp=$(date -u +%Y%m%d-%A -d "monday")
+	if [[ $(date -u +%A) == Monday ]] ; then
+		# We don't want to run on Mondays to avoid last/next week confusion
+		break
+	fi
+
+	timestamp=$(date -u +%Y%m%d-%A -d "last monday")
 
 	if [[ ${timestamp} != *-Monday ]] ; then
 		break


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-01-18 18:17 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-01-18 18:17 UTC (permalink / raw
  To: gentoo-commits

commit:     5b1b482e139e9b1959ec70335aa844c258a60f4e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 18 18:15:18 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 18 18:16:40 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=5b1b482e

eapi-usage.sh: optimise + refactor

- Use Bash primitives (parameter expansion) to avoid cut/rev (2x) calls, as well
  as grep!

- Switch to while/read/find loop for improved robustness over while which
  can have issues wrt globbing/special file names.

Thanks to ulm for the suggestions.

Thanks-to: Ulrich Müller <ulm <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index e4b65b2..62e878f 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -32,12 +32,12 @@ cd eapi-usage || exit 1
 
 ebegin "Finding ebuilds"
 (
-	for ebuild in $(find "${REPO_PATH}/metadata/md5-cache" -mindepth 2 -maxdepth 2 -type f -name '*-[0-9]*') ; do
-		cpf=$(echo ${ebuild} | rev | cut -d/ -f1-2 | rev)
-		eapi=$(grep -oi "eapi=.*" ${ebuild} | sed -e 's:EAPI=::')
-
+	while IFS= read -r ebuild ; do
+		cpf_eapi="${ebuild#${REPO_PATH}/metadata/md5-cache/}"
+		cpf="${cpf_eapi%%:*}"
+		eapi="${cpf_eapi##*:EAPI=}"
 		echo "${cpf}" >> ${eapi}.txt
-	done
+	done < <(find "${REPO_PATH}/metadata/md5-cache" -mindepth 2 -maxdepth 2 -type f -name '*-[0-9]*' -exec grep '^EAPI=' {} +)
 ) || { eend $? || exit 1; }
 eend ${?}
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-01-18 18:29 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-01-18 18:29 UTC (permalink / raw
  To: gentoo-commits

commit:     1d65e1921d23cc9471ed4d909429f98bed0bfcf2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 18 18:28:40 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 18 18:28:40 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1d65e192

eapi-usage.sh: update commentary re pinspect usage

We previously stopped using it because pkgcore at the time lacked support
for newer EAPIs (>= EAPI 5), but now it's less appealing to switch back
despite the elegance (and nicer output, I suppose) given the awk works
and is a fair bit faster.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eapi-usage.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/eapi-usage.sh b/eapi-usage.sh
index 62e878f..b7a1112 100755
--- a/eapi-usage.sh
+++ b/eapi-usage.sh
@@ -56,12 +56,14 @@ mv ${TMPDIR}/eapi-usage/*.txt ${dir}/ || exit 1
 rm -r "${TMPDIR}" || exit 1
 
 # Now generate the numbers/summary (copied in from previous eapi_usage.sh script)
-# Boring 'script' that just uses pkgcore's pinspect command. Someday it would be
-# nice to graph this output, or maybe keep some running history?
-
+# Someday it would be nice to graph this output, or maybe keep some running history?
+# TODO: We used pinspect in the past which is cleaner but it's slower than the
+# awk method used below (we also stopped using it because at the time, pkgcore
+# lacked newer EAPI support).
 #[[ $(type pinspect 2> /dev/null) ]] || exit 1
 #
 #pinspect eapi_usage /usr/portage
+
 find "${REPO_PATH}"/metadata/md5-cache -type f ! -name '*.gz' \
   -exec grep -h '^EAPI=' '{}' + \
   | awk '


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-01-21  6:11 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-01-21  6:11 UTC (permalink / raw
  To: gentoo-commits

commit:     ae89dda28b13877e27b47d598fca8c296e853f39
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 21 06:11:00 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 21 06:11:11 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ae89dda2

Makefile.gpyutils: try again for py3.10->py3.11 graph

The impl is stable now, so...

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index ff60d5c..3bf4284 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -6,7 +6,7 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 outdir = /dev/null
 
 # upgrades for stable impls
-upgr_base = $(outdir)/39-to-310.txt
+upgr_base = $(outdir)/39-to-310.txt $(outdir)/310-to-311.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
@@ -14,7 +14,7 @@ upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/py2.txt
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times
-upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/310-to-311.txt
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) #$(outdir)/311-to-312.txt
 
 all = $(upgr_all)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-01-22  6:10 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-01-22  6:10 UTC (permalink / raw
  To: gentoo-commits

commit:     49ffb98996233b61b6f380bf9331d9558791b130
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 22 06:09:23 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 22 06:10:33 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=49ffb989

Makefile.gpyutils: drop obsolete py2 refs

Fixes: a33a67bc0ec417497c5a018f89750f90bea66fa1
Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 3bf4284..346cde5 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -10,7 +10,7 @@ upgr_base = $(outdir)/39-to-310.txt $(outdir)/310-to-311.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
-upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/py2.txt
+upgr_txt = $(upgr_base) $(upgr_streq)
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-03-24  5:24 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2023-03-24  5:24 UTC (permalink / raw
  To: gentoo-commits

commit:     35b2a1ae9f1e351759ffe57e9f2957eded2d6cd2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 24 05:23:24 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 24 05:24:00 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=35b2a1ae

genrdeps-index: Use new pkgcore API

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

 genrdeps-index.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/genrdeps-index.py b/genrdeps-index.py
index 32a0d12..9b1cd85 100755
--- a/genrdeps-index.py
+++ b/genrdeps-index.py
@@ -64,7 +64,7 @@ def main():
     args = argp.parse_args()
 
     c = pkgcore.config.load_config()
-    repo = c.repo['gentoo']
+    repo = c.objects.repo['gentoo']
 
     rindex = {}
     for g, gi in GROUPS:


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-04-13 17:36 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2023-04-13 17:36 UTC (permalink / raw
  To: gentoo-commits

commit:     961117f0946067e19c77c1050ab90e634a0fccdd
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 13 17:36:15 2023 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 13 17:36:15 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=961117f0

leaf-packages.py: make quieter

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 leaf-packages.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/leaf-packages.py b/leaf-packages.py
index 448f7cf..1454eb8 100755
--- a/leaf-packages.py
+++ b/leaf-packages.py
@@ -9,6 +9,7 @@ import subprocess
 import sys
 
 METHOD="pkgcore"
+VERBOSE=int(os.getenv('VERBOSE') or os.getenv('V') or 0) # V=1..N to use
 
 def main() -> None:
     if len(sys.argv) > 1:
@@ -38,7 +39,9 @@ def update_for(ebuild: str, zero_in_degree: dict, repo: str) -> None:
     Reverse dependencies of the ebuild will be searched in the specified
     repository only.
     """
-    print(f"Processing {ebuild} ...", file=sys.stderr)
+    # This spams infra cronjobs, only enable if there is a problem
+    if VERBOSE >= 1:
+        print(f"Processing {ebuild} ...", file=sys.stderr)
     proc = subprocess.run(f'pquery --first --restrict-revdep ={ebuild} '
                           f'--repo {repo} --raw --unfiltered',
                           capture_output=True, text=True, shell=True)
@@ -89,7 +92,8 @@ def update_for_deps_of(ebuild: str, zero_in_degree: dict) -> None:
                               capture_output=True, text=True, shell=True)
         return proc.stdout.splitlines()
 
-    #print(f"Processing {ebuild} ...", file=sys.stderr)
+    if VERBOSE >= 2:
+        print(f"Processing {ebuild} ...", file=sys.stderr)
 
     # Get dependency specifications in the ebuild;
     # equivalent to dep_graph[ebuild] in the examples above


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-04-13 17:36 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2023-04-13 17:36 UTC (permalink / raw
  To: gentoo-commits

commit:     ffa7706c877f8aafaa62ada3b45fcd56e5769ae8
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 13 17:33:11 2023 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 13 17:33:11 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ffa7706c

leaf-packages: pylint

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 leaf-packages.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/leaf-packages.py b/leaf-packages.py
index 976cb31..448f7cf 100755
--- a/leaf-packages.py
+++ b/leaf-packages.py
@@ -8,7 +8,7 @@ import re
 import subprocess
 import sys
 
-method="pkgcore"
+METHOD="pkgcore"
 
 def main() -> None:
     if len(sys.argv) > 1:
@@ -21,7 +21,7 @@ def main() -> None:
         for ebuild in zero_in_degree:
             # Let the executor run function call
             # update_for_deps_of(ebuild, zero_in_degree)
-            if method == "pkgcore":
+            if METHOD == "pkgcore":
                 executor.submit(update_for, ebuild, zero_in_degree, repo)
             else:
                 executor.submit(update_for_deps_of, ebuild, zero_in_degree)


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-05-24  7:07 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-05-24  7:07 UTC (permalink / raw
  To: gentoo-commits

commit:     c3702bded26f1acfa69c12b5ff5c73bac11999e6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 07:06:57 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 24 07:06:57 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c3702bde

Makefile.gpyutils: try to enable Python 3.12 lists

We're hoping that this is doable even this early on given ros is gone now..

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 52e1ce2..df7547d 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -6,7 +6,7 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 outdir = /dev/null
 
 # upgrades for stable impls
-upgr_base = $(outdir)/310-to-311.txt
+upgr_base = $(outdir)/310-to-311.txt #$(outdir)/311-to-312.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
@@ -20,6 +20,16 @@ all = $(upgr_all)
 
 all: $(all)
 
+$(outdir)/311-to-312.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl -m python3_11 python3_12 > $@.new
+	mv $@.new $@
+
+#$(outdir)/311-to-312-stablereq.txt: $(timestamp)
+#	mkdir -p $(outdir)
+#	gpy-upgrade-impl -m -s python3_11 python3_12 > $@.new
+#	mv $@.new $@
+
 $(outdir)/310-to-311.txt: $(timestamp)
 	mkdir -p $(outdir)
 	gpy-upgrade-impl -m python3_10 python3_11 > $@.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-05-24  9:35 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-05-24  9:35 UTC (permalink / raw
  To: gentoo-commits

commit:     a6db9065c2f7c861115e04228023022d0b7bba0a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 09:35:19 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 24 09:35:19 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a6db9065

Makefile.gpyutils: add missing Python 3.12 wiring work

Fixes: c3702bded26f1acfa69c12b5ff5c73bac11999e6
Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index df7547d..0bee5d8 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -14,7 +14,7 @@ upgr_txt = $(upgr_base) $(upgr_streq)
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times
-upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) #$(outdir)/311-to-312.txt
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/311-to-312.txt
 
 all = $(upgr_all)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-05-24 12:00 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-05-24 12:00 UTC (permalink / raw
  To: gentoo-commits

commit:     f5cb7c92a00cc53028284595a57e3498d381c119
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 11:59:17 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 24 11:59:17 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f5cb7c92

Makefile.gpyutils: try to generate Python 3.12 graphs too

May revert this if it takes far too long but we'd like it if we can.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 0bee5d8..906b7fa 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -6,7 +6,7 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 outdir = /dev/null
 
 # upgrades for stable impls
-upgr_base = $(outdir)/310-to-311.txt #$(outdir)/311-to-312.txt
+upgr_base = $(outdir)/310-to-311.txt $(outdir)/311-to-312.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
@@ -14,7 +14,7 @@ upgr_txt = $(upgr_base) $(upgr_streq)
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times
-upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/311-to-312.txt
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) #$(outdir)/311-to-312.txt
 
 all = $(upgr_all)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-05-24 17:20 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-05-24 17:20 UTC (permalink / raw
  To: gentoo-commits

commit:     0750bcb0c088d7c81e96607ec3d6e61f80149d2f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 17:20:34 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 24 17:20:34 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0750bcb0

Makefile.gpyutils: fix target, add instructions

... given I clearly keep getting it wrong.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 906b7fa..d34f942 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -5,12 +5,17 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 # pass via make!
 outdir = /dev/null
 
+# Adding new implementations:
+# 1. Add to upgr_all
+# 2. Later, when dot doesn't take too long for it, move to upgr_txt
+# 3. Once the impl is stable, move to upgr_base
+
 # upgrades for stable impls
-upgr_base = $(outdir)/310-to-311.txt $(outdir)/311-to-312.txt
+upgr_base = $(outdir)/310-to-311.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
-upgr_txt = $(upgr_base) $(upgr_streq)
+upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/311-to-312.txt
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-05-25  2:24 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-05-25  2:24 UTC (permalink / raw
  To: gentoo-commits

commit:     92393b2ac28d0e4087eeacfe4ba365c4ee94e8db
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu May 25 02:24:04 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May 25 02:24:04 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=92393b2a

Makefile.gpyutils: give up on 3.12 graphs for now

I let it run for like, 9 hours locally and got nowhere.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index d34f942..77fa182 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -6,7 +6,7 @@ timestamp = $(PORTDIR)/metadata/timestamp.commit
 outdir = /dev/null
 
 # Adding new implementations:
-# 1. Add to upgr_all
+# 1. Create rules below & add to upgr_all
 # 2. Later, when dot doesn't take too long for it, move to upgr_txt
 # 3. Once the impl is stable, move to upgr_base
 
@@ -15,11 +15,11 @@ upgr_base = $(outdir)/310-to-311.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
-upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/311-to-312.txt
+upgr_txt = $(upgr_base) $(upgr_streq)
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times
-upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) #$(outdir)/311-to-312.txt
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/311-to-312.txt
 
 all = $(upgr_all)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-05-26 13:34 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-05-26 13:34 UTC (permalink / raw
  To: gentoo-commits

commit:     7e86c02b67589976534c563686ae923353755d97
Author:     Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Fri May 26 12:52:25 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 26 13:34:46 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7e86c02b

Makefile.gpyutils: enable .dot file for 3.12

The .dot file can be useful as it provides detailed graphical
information, even when a final .svg has not been generated. This could
be beneficial for anyone who wants to access this information without
having to generate the complete .svg.

Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Closes: https://github.com/gentoo/qa-scripts/pull/2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 77fa182..cb228c7 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -19,7 +19,7 @@ upgr_txt = $(upgr_base) $(upgr_streq)
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times
-upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/311-to-312.txt
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/311-to-312.txt $(outdir)/311-to-312.dot
 
 all = $(upgr_all)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-05-31 20:13 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-05-31 20:13 UTC (permalink / raw
  To: gentoo-commits

commit:     6d28f00f48078ccb2b49547258cc3076c8c3c9b0
Author:     Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Wed May 31 08:36:01 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 31 20:13:10 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6d28f00f

Makefile.gpyutils: enable py3.12 graphs

They generate within reasonable time frame, ~17 mins in my case.

Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Closes: https://github.com/gentoo/qa-scripts/pull/3
Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index cb228c7..51e56c2 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -15,11 +15,11 @@ upgr_base = $(outdir)/310-to-311.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
-upgr_txt = $(upgr_base) $(upgr_streq)
+upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/311-to-312.txt
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times
-upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/311-to-312.txt $(outdir)/311-to-312.dot
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg)
 
 all = $(upgr_all)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-05-31 20:17 Sam James
  0 siblings, 0 replies; 316+ messages in thread
From: Sam James @ 2023-05-31 20:17 UTC (permalink / raw
  To: gentoo-commits

commit:     2753decf7e7b1c0c811a82d489c326e3a7bd6582
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 31 20:17:37 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 31 20:17:37 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=2753decf

Makefile.gpyutils: add note about speeding up porting

Signed-off-by: Sam James <sam <AT> gentoo.org>

 Makefile.gpyutils | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 51e56c2..a2bba56 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -9,6 +9,9 @@ outdir = /dev/null
 # 1. Create rules below & add to upgr_all
 # 2. Later, when dot doesn't take too long for it, move to upgr_txt
 # 3. Once the impl is stable, move to upgr_base
+#
+# Please prioritize edges like python-any-r1 consumers to speed up getting
+# from 1->2. Especially e.g. git, ninja, meson, doxygen.
 
 # upgrades for stable impls
 upgr_base = $(outdir)/310-to-311.txt


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-06-30  5:19 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2023-06-30  5:19 UTC (permalink / raw
  To: gentoo-commits

commit:     7112f5af5a5b681d6c8d39c2ff0cf27252fc81f3
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 30 05:06:42 2023 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jun 30 05:06:51 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7112f5af

keyrings-export.bash: fixup export

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-export.bash | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index b3234e2..92c0228 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -17,35 +17,44 @@ export -a NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${NONC
 export -a RETIRED_DEVS=( $(grab_ldap_fingerprints -b "${DEV_BASE}" "${RETIRED_RULE}") )
 export -a SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${NONCOMMIT_RULE}") )
 export -a INFRA_SYSTEM_KEYS=( $(grab_ldap_fingerprints -b "${SYSTEM_BASE}" "${INFRA_SYSTEM_RULE}") )
+export -a KEYRINGS=( )
 
 export_keys "${OUTPUT_DIR}"/keys/service-keys.gpg \
-	"${SYSTEM_KEYS[@]}"
+	"${SYSTEM_KEYS[@]}" \
+&& KEYRINGS+=( service-keys )
 
 export_keys "${OUTPUT_DIR}"/keys/infra-service-keys.gpg \
-    "${INFRA_SYSTEM_KEYS[@]}"
+    "${INFRA_SYSTEM_KEYS[@]}" \
+&& KEYRINGS+=( infra-service-keys )
 
 export_keys "${OUTPUT_DIR}"/keys/committing-devs.gpg \
-	"${COMMITTING_DEVS[@]}"
+	"${COMMITTING_DEVS[@]}" \
+&& KEYRINGS+=( committing-devs )
 
 export_keys "${OUTPUT_DIR}"/keys/active-devs.gpg \
 	"${COMMITTING_DEVS[@]}" \
-	"${NONCOMMITTING_DEVS[@]}"
+	"${NONCOMMITTING_DEVS[@]}" \
+&& KEYRINGS+=( active-devs )
 
 export_keys "${OUTPUT_DIR}"/keys/infra-devs.gpg \
-	"${INFRA_DEVS[@]}"
+	"${INFRA_DEVS[@]}" \
+&& KEYRINGS+=( infra-devs )
 
 export_keys "${OUTPUT_DIR}"/keys/retired-devs.gpg \
-	"${RETIRED_DEVS[@]}"
+	"${RETIRED_DEVS[@]}" \
+&& KEYRINGS+=( retired-devs )
 
 # Everybody together now
 export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
 	"${SYSTEM_KEYS[@]}" \
+	"${INFRA_SYSTEM_KEYS[@]}" \
 	"${COMMITTING_DEVS[@]}" \
 	"${NONCOMMITTING_DEVS[@]}" \
 	"${INFRA_DEVS[@]}" \
-	"${RETIRED_DEVS[@]}"
+	"${RETIRED_DEVS[@]}" \
+&& KEYRINGS+=( all-devs )
 
-for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do
+for key in "${KEYRINGS[@]}" ; do
 	if [[ ! -L "${OUTPUT_DIR}"/${key}.gpg ]] ; then
 		# Compatibility symlink
 		ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-06-30  5:19 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2023-06-30  5:19 UTC (permalink / raw
  To: gentoo-commits

commit:     6dd35cefc5fcaf0662708b5952038bce528979ff
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 30 05:18:58 2023 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jun 30 05:18:58 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6dd35cef

keyrings.inc.bash: ensure there is a checksum to verify the download for corruption (integrity only, not authenticity)

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index cc89de0..32fc03f 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -96,7 +96,8 @@ export_keys() {
 	DST="$1"
 	shift
 	setup_tmp
-	TMP="${GPG_TMPDIR}"/$(basename "${DST}")
+	BASENAME=$(basename "${DST}")
+	TMP="${GPG_TMPDIR}/${BASENAME}"
 	# Must not exist, otherwise GPG will give error
 	[[ -f "${TMP}" ]] && rm -f "${TMP}"
 	# 'gpg --export' returns zero if there was no error with the command itself
@@ -116,12 +117,17 @@ export_keys() {
 		echo "Unable to export keys to $DST: GPG failed to list packets"
 		exit 1
 	fi
+
+	# Ensure we have a checksum to verify the file.
+	rhash --bsd --sha256 --sha512 --blake2b "${TMP}" |sed "s,${TMP},${BASENAME},g" >"${TMP}.DIGESTS"
+
 	# Check if the textual format has changed at all, and emit the new version
 	# if there are ANY changes at all.
 	if ! cmp -s "${DST}.packets.txt" "${TMP}.packets.txt"; then
 		chmod a+r "${TMP}"
 		mv -f "${TMP}" "${DST}"
 		mv -f "${TMP}.packets.txt" "${DST}.packets.txt"
+		mv -f "${TMP}.DIGESTS" "${DST}.DIGESTS"
 	fi
 	# Cleanup anyway
 	rm -f "${TMP}.packets.txt" "${TMP}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2023-06-30  5:33 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2023-06-30  5:33 UTC (permalink / raw
  To: gentoo-commits

commit:     d1dda423e1285e94fade299209e58f4434db35ee
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 30 05:33:01 2023 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jun 30 05:33:01 2023 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d1dda423

keyrings.inc.bash: ensure digests/packets present

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-export.bash |  4 +++-
 keyrings.inc.bash    | 17 +++++++++--------
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 92c0228..56e4e51 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -6,6 +6,8 @@
 # - requires keeping state to detect changes in keys, there is no usable mtime data in a key itself
 
 OUTPUT_DIR=${1:-.}
+# Ensure output is absolute
+OUTPUT_DIR=$(readlink -f "${OUTPUT_DIR}")
 BASEDIR="$(dirname "$0")"
 # shellcheck source=./keyrings.inc.bash
 source "${BASEDIR}"/keyrings.inc.bash
@@ -57,7 +59,7 @@ export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
 for key in "${KEYRINGS[@]}" ; do
 	if [[ ! -L "${OUTPUT_DIR}"/${key}.gpg ]] ; then
 		# Compatibility symlink
-		ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
+		ln -sf "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
 	fi
 
 	if [[ $(date -u +%A) == Monday ]] ; then

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 32fc03f..d2668e0 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -123,14 +123,15 @@ export_keys() {
 
 	# Check if the textual format has changed at all, and emit the new version
 	# if there are ANY changes at all.
-	if ! cmp -s "${DST}.packets.txt" "${TMP}.packets.txt"; then
-		chmod a+r "${TMP}"
-		mv -f "${TMP}" "${DST}"
-		mv -f "${TMP}.packets.txt" "${DST}.packets.txt"
-		mv -f "${TMP}.DIGESTS" "${DST}.DIGESTS"
-	fi
-	# Cleanup anyway
-	rm -f "${TMP}.packets.txt" "${TMP}"
+	cmp -s "${DST}.packets.txt" "${TMP}.packets.txt"
+	cmp_rc=$?
+	chmod a+r "${TMP}" "${TMP}.packets.txt" "${TMP}.DIGESTS"
+	for suffix in '' '.packets.txt' '.DIGESTS'; do
+		# If these file do not exist, or the cmp was different, move them.
+		[ ! -f "${DST}${suffix}" -o $cmp_rc -ne 0 ] && mv -f "${TMP}${suffix}" "${DST}${suffix}"
+		# Cleanup anyway
+		rm -f "${TMP}${suffix}"
+	done
 }
 
 # populate common variables


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-01-12 15:39 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2024-01-12 15:39 UTC (permalink / raw
  To: gentoo-commits

commit:     bded6252da7b96e5030b1a7fcc6b0558d43312fb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 12 15:38:56 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 12 15:38:56 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=bded6252

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index 7687737..d294e14 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit 7687737db9a333a3b20d9e457e65fd66868da7ce
+Subproject commit d294e14644c33a2f67d79a642b0956f75307d9f6


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-02-06  9:28 Ulrich Müller
  0 siblings, 0 replies; 316+ messages in thread
From: Ulrich Müller @ 2024-02-06  9:28 UTC (permalink / raw
  To: gentoo-commits

commit:     c866c85ae4475535a83ca24cdda93ed0f61ddcb0
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  6 09:28:00 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Feb  6 09:28:00 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c866c85a

find-binary-files.sh: Output file version

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 find-binary-files.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index 12e6fea..b053d2f 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 2014-2022 Ulrich Müller
+# Copyright 2014-2024 Ulrich Müller
 # Distributed under the terms of the GNU GPL version 2 or later
 # Author: Ulrich Müller <ulm@gentoo.org>
 
@@ -47,3 +47,6 @@ done < <(find \( -path ./distfiles -o -path ./local -o -path ./metadata \
         -exec file -ih '{}' + | sort)
 
 [[ ${count} -gt 0 ]] || echo "No binary files found. :-)"
+
+# Output the file version for debugging of false positives/negatives
+echo; file --version | head -n1


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-04-06 12:25 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2024-04-06 12:25 UTC (permalink / raw
  To: gentoo-commits

commit:     7546c5d7bae8d3090c6c0aca67aac3da3a9f70cf
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  6 12:25:03 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr  6 12:25:03 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7546c5d7

Bump pkgcheck2html

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index d294e14..bb9807d 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit d294e14644c33a2f67d79a642b0956f75307d9f6
+Subproject commit bb9807de3be23ef879e492c0142e770d54ff4507


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-05-19 17:28 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2024-05-19 17:28 UTC (permalink / raw
  To: gentoo-commits

commit:     4eb498510530c9717576144ce80800310f070e35
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun May 19 17:25:34 2024 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun May 19 17:25:34 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=4eb49851

create-dev-keyrings.bash: this was split into other scripts and not used since 2019

From infra crontabs in 2019 (public SKS was since removed):
```
-# regen dev keyrings every hour (we want to catch revocations early on)
-0 * * * * gqa /usr/bin/nice /usr/local/bin/pidlock ${REPO}/create-dev-keyrings.bash ${OUTPUTDIR}
+# regen keyrings
+# Fetch from SKS, push to keys.g.o
+0 * * * * gqa /usr/bin/nice /usr/local/bin/pidlock ${REPO}/keyrings-recv-sks.bash ; /usr/local/bin/pidlock ${REPO}/keyrings-send-keys.gentoo.org.bash
+# Fetch from keys.g.o & export to keyring files
+*/10 * * * * gqa /usr/bin/nice /usr/local/bin/pidlock ${REPO}/keyrings-recv-keys.gentoo.org.bash ; /usr/bin/nice /usr/local/bin/pidlock ${REPO}/keyrings-export.bash ${OUTPUTDIR}
```

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 create-dev-keyrings.bash | 60 ------------------------------------------------
 1 file changed, 60 deletions(-)

diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
deleted file mode 100755
index 3ab1b58..0000000
--- a/create-dev-keyrings.bash
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/bash
-# Import key updates from Keyservers
-#
-# TODO:
-# - Turn off export in this script
-
-OUTPUT_DIR=${1:-.}
-BASEDIR="$(dirname "$0")"
-source "${BASEDIR}"/keyrings.inc.bash
-
-set -e
-export_ldap_data_to_env
-
-export KEYSERVERS=( "${KS_SKS}" "${KS_OPENPGP}" "${KS_GENTOO}" )
-export KEYSERVER_TIMEOUT=20m
-
-grab_keys "${SYSTEM_KEYS[@]}"
-export_keys "${OUTPUT_DIR}"/service-keys.gpg \
-	"${SYSTEM_KEYS[@]}"
-
-grab_keys "${INFRA_SYSTEM_KEYS[@]}"
-export_keys "${OUTPUT_DIR}"/infra-service-keys.gpg \
-	"${INFRA_SYSTEM_KEYS[@]}"
-
-grab_keys "${COMMITTING_DEVS[@]}"
-export_keys "${OUTPUT_DIR}"/committing-devs.gpg \
-	"${COMMITTING_DEVS[@]}"
-
-grab_keys "${NONCOMMITTING_DEVS[@]}"
-export_keys "${OUTPUT_DIR}"/active-devs.gpg \
-	"${COMMITTING_DEVS[@]}" \
-	"${NONCOMMITTING_DEVS[@]}"
-
-grab_keys "${INFRA_DEVS[@]}"
-export_keys "${OUTPUT_DIR}"/infra-devs.gpg \
-	"${INFRA_DEVS[@]}"
-
-# -- not all are on keyservers
-# -- and are unlikely to turn up now
-# -- this needs to fetch from some archive instead
-#grab_keys "${RETIRED_DEVS[@]}"
-export_keys "${OUTPUT_DIR}"/retired-devs.gpg \
-	"${RETIRED_DEVS[@]}"
-
-# Everybody together now
-export_keys "${OUTPUT_DIR}"/all-devs.gpg \
-	"${SYSTEM_KEYS[@]}" \
-	"${COMMITTING_DEVS[@]}" \
-	"${NONCOMMITTING_DEVS[@]}" \
-	"${INFRA_DEVS[@]}" \
-	"${RETIRED_DEVS[@]}"
-
-# Populate keys.gentoo.org with the keys we have, since they might have come from SKS
-export KEYSERVERS=( "${KS_GENTOO}" )
-export KEYSERVER_TIMEOUT=20m
-push_keys "${SYSTEM_KEYS[@]}"
-push_keys "${COMMITTING_DEVS[@]}"
-push_keys "${NONCOMMITTING_DEVS[@]}"
-push_keys "${INFRA_DEVS[@]}"
-push_keys "${RETIRED_DEVS[@]}"


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-05-19 17:28 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2024-05-19 17:28 UTC (permalink / raw
  To: gentoo-commits

commit:     3a1755377cb4beaa68914844e61b9a2566a6ee12
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun May 19 17:28:40 2024 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun May 19 17:28:40 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=3a175537

keyrings-export.bash: test export-clean variants in new files

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings-export.bash | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 56e4e51..42f0b08 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -56,6 +56,48 @@ export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
 	"${RETIRED_DEVS[@]}" \
 && KEYRINGS+=( all-devs )
 
+# TEMPORARY:
+# Verify export-clean vs stock export options.
+export GPG_EXPORT_OPTS=( --export-options export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/service-keys.export-clean.gpg \
+	"${SYSTEM_KEYS[@]}" \
+&& KEYRINGS+=( service-keys.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/infra-service-keys.export-clean.gpg \
+    "${INFRA_SYSTEM_KEYS[@]}" \
+&& KEYRINGS+=( infra-service-keys.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/committing-devs.export-clean.gpg \
+	"${COMMITTING_DEVS[@]}" \
+&& KEYRINGS+=( committing-devs.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/active-devs.export-clean.gpg \
+	"${COMMITTING_DEVS[@]}" \
+	"${NONCOMMITTING_DEVS[@]}" \
+&& KEYRINGS+=( active-devs.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/infra-devs.export-clean.gpg \
+	"${INFRA_DEVS[@]}" \
+&& KEYRINGS+=( infra-devs.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/retired-devs.export-clean.gpg \
+	"${RETIRED_DEVS[@]}" \
+&& KEYRINGS+=( retired-devs.export-clean )
+
+# Everybody together now
+export_keys "${OUTPUT_DIR}"/keys/all-devs.export-clean.gpg \
+	"${SYSTEM_KEYS[@]}" \
+	"${INFRA_SYSTEM_KEYS[@]}" \
+	"${COMMITTING_DEVS[@]}" \
+	"${NONCOMMITTING_DEVS[@]}" \
+	"${INFRA_DEVS[@]}" \
+	"${RETIRED_DEVS[@]}" \
+&& KEYRINGS+=( all-devs.export-clean )
+
+unset GPG_EXPORT_OPTS
+# END TEMPORARY
+
 for key in "${KEYRINGS[@]}" ; do
 	if [[ ! -L "${OUTPUT_DIR}"/${key}.gpg ]] ; then
 		# Compatibility symlink


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-05-19 17:28 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2024-05-19 17:28 UTC (permalink / raw
  To: gentoo-commits

commit:     38197eb2a9592c4de4d490fe1c6d164845773ca5
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun May 19 17:28:21 2024 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun May 19 17:28:21 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=38197eb2

keyrings.inc.bash: support export options

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index d2668e0..7c63e0d 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -103,7 +103,7 @@ export_keys() {
 	# 'gpg --export' returns zero if there was no error with the command itself
 	# If there are no keys in the export set, then it ALSO does not write the destination file
 	# and prints 'gpg: WARNING: nothing exported' to stderr
-	if ! gpg --output "$TMP" --export "${@}"; then
+	if ! gpg "${GPG_EXPORT_OPTS[@]}" --output "$TMP" --export "${@}"; then
 		echo "Unable to export keys to $DST: GPG returned non-zero"
 		exit 1
 	fi


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-05-20 18:47 Robin H. Johnson
  0 siblings, 0 replies; 316+ messages in thread
From: Robin H. Johnson @ 2024-05-20 18:47 UTC (permalink / raw
  To: gentoo-commits

commit:     ea651959e3713ed09ebdec3c7ef274ca0e8350a3
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon May 20 18:47:16 2024 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon May 20 18:47:16 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ea651959

keyrings.inc.bash: avoid the SHA1 warning

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 keyrings.inc.bash | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/keyrings.inc.bash b/keyrings.inc.bash
index 7c63e0d..6fe0dca 100644
--- a/keyrings.inc.bash
+++ b/keyrings.inc.bash
@@ -103,7 +103,8 @@ export_keys() {
 	# 'gpg --export' returns zero if there was no error with the command itself
 	# If there are no keys in the export set, then it ALSO does not write the destination file
 	# and prints 'gpg: WARNING: nothing exported' to stderr
-	if ! gpg "${GPG_EXPORT_OPTS[@]}" --output "$TMP" --export "${@}"; then
+	# --quiet is needed to avoid "Note: third-party key signatures using the SHA1 algorithm are rejected" "(use option "--allow-weak-key-signatures" to override)"
+	if ! gpg --quiet "${GPG_EXPORT_OPTS[@]}" --output "$TMP" --export "${@}"; then
 		echo "Unable to export keys to $DST: GPG returned non-zero"
 		exit 1
 	fi


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-06-08 10:52 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2024-06-08 10:52 UTC (permalink / raw
  To: gentoo-commits

commit:     ee2b355d788b070a7e57dc6e36b973a7bf8478ea
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  8 10:52:09 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun  8 10:52:09 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ee2b355d

gpyutils: Add 312-to-313.txt

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

 Makefile.gpyutils | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index 75fee4e..fafc1ba 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -22,12 +22,22 @@ upgr_txt = $(upgr_base) $(upgr_streq)
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times
-upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg)
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/312-to-313.txt
 
 all = $(upgr_all)
 
 all: $(all)
 
+$(outdir)/312-to-313.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl -m python3_12 python3_13 > $@.new
+	mv $@.new $@
+
+$(outdir)/312-to-313-stablereq.txt: $(timestamp)
+	mkdir -p $(outdir)
+	gpy-upgrade-impl -m -s python3_12 python3_13 > $@.new
+	mv $@.new $@
+
 $(outdir)/311-to-312.txt: $(timestamp)
 	mkdir -p $(outdir)
 	gpy-upgrade-impl -m python3_11 python3_12 > $@.new


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-07-06 10:17 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2024-07-06 10:17 UTC (permalink / raw
  To: gentoo-commits

commit:     37c02d57607408a5db2ec2a948f66789bd4a9c5b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  6 09:43:45 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul  6 09:43:45 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=37c02d57

gpyutils: Explicitly pass `-d` to gpy-depgraph

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

 Makefile.gpyutils | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index fafc1ba..b99c48f 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -59,7 +59,7 @@ $(outdir)/310-to-311-stablereq.txt: $(timestamp)
 	mv $@.new $@
 
 %.dot: %.txt
-	gpy-depgraph -m python@gentoo.org $< > $@.new
+	gpy-depgraph -d -m python@gentoo.org $< > $@.new
 	mv $@.new $@
 
 %.svg: %.dot


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-07-06 10:17 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2024-07-06 10:17 UTC (permalink / raw
  To: gentoo-commits

commit:     8ee4397eb4cc313891ae16e3321098811985b610
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  6 10:17:33 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul  6 10:17:33 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8ee4397e

gpyutils: Enable graphs for 312-to-313

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

 Makefile.gpyutils | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.gpyutils b/Makefile.gpyutils
index b99c48f..7e48ff0 100644
--- a/Makefile.gpyutils
+++ b/Makefile.gpyutils
@@ -18,11 +18,11 @@ upgr_base = $(outdir)/310-to-311.txt $(outdir)/311-to-312.txt
 # related stabilizations
 upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
 # all upgrade stuff
-upgr_txt = $(upgr_base) $(upgr_streq)
+upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/312-to-313.txt
 upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
 upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
 # add new impls here if not stable yet, to avoid insanely huge generation times
-upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/312-to-313.txt
+upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg)
 
 all = $(upgr_all)
 


^ permalink raw reply related	[flat|nested] 316+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: /
@ 2024-10-07 18:18 Michał Górny
  0 siblings, 0 replies; 316+ messages in thread
From: Michał Górny @ 2024-10-07 18:18 UTC (permalink / raw
  To: gentoo-commits

commit:     8457d8e279410681fc4bfc0a10b76ae7757bbc9a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  7 18:18:23 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct  7 18:18:23 2024 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8457d8e2

Bump pkgcheck2html for py3.11 fix

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

 pkgcheck2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgcheck2html b/pkgcheck2html
index bb9807d..9b825d7 160000
--- a/pkgcheck2html
+++ b/pkgcheck2html
@@ -1 +1 @@
-Subproject commit bb9807de3be23ef879e492c0142e770d54ff4507
+Subproject commit 9b825d73505d46d35f901c9b085312134d137939


^ permalink raw reply related	[flat|nested] 316+ messages in thread

end of thread, other threads:[~2024-10-07 18:18 UTC | newest]

Thread overview: 316+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-18 18:55 [gentoo-commits] proj/qa-scripts:master commit in: / Jeremy Olexa
  -- strict thread matches above, loose matches on Subject: below --
2011-03-19 13:10 Tomas Chvatal
2011-03-22 15:43 Jeremy Olexa
2011-03-25 15:38 Jeremy Olexa
2011-03-29 17:26 Tomas Chvatal
2011-03-29 17:32 Tomas Chvatal
2011-03-29 19:12 Jeremy Olexa
2011-03-29 19:26 Jeremy Olexa
2011-03-29 19:29 Tomas Chvatal
2011-03-30 16:52 Jeremy Olexa
2011-04-15 20:28 Jeremy Olexa
2011-04-15 20:28 Jeremy Olexa
2011-04-21  3:51 Jeremy Olexa
2011-04-21  3:51 Jeremy Olexa
2011-05-06 18:22 Christoph Mende
2011-06-14 20:31 Matt Turner
2011-06-21 17:33 Michał Górny
2011-06-22 16:16 Michał Górny
2011-06-22 19:31 Michał Górny
2012-02-03 22:51 Ulrich Mueller
2012-04-10  7:56 Michał Górny
2012-08-01 19:25 Christoph Mende
2012-10-17 13:03 Dane Smith
2012-11-28 12:15 Jeremy Olexa
2012-11-28 13:33 Jeremy Olexa
2012-11-29 15:31 Tomas Chvatal
2012-12-11 22:55 Jeremy Olexa
2013-01-12 15:57 Tomas Chvatal
2013-11-02 13:03 Ulrich Müller
2013-11-02 14:06 Ulrich Müller
2014-02-08 16:30 Ulrich Müller
2014-02-08 21:30 Ulrich Müller
2014-02-08 21:34 Ulrich Müller
2014-02-08 21:34 Ulrich Müller
2014-02-24 16:17 Ulrich Müller
2014-06-08 16:23 Michael Palimaka
2014-06-16 12:17 Michael Palimaka
2014-06-28 22:49 Jorge Manuel B. S. Vicetto
2014-08-23 22:05 Ulrich Müller
2014-08-24 10:48 Ulrich Müller
2014-08-24 10:58 Ulrich Müller
2014-08-24 12:09 Ulrich Müller
2014-08-28  3:48 Michael Palimaka
2014-08-28  3:48 Michael Palimaka
2014-08-28 13:54 Richard Farina
2014-08-28 18:12 Richard Farina
2014-09-05 19:02 Richard Farina
2014-09-08 21:09 Richard Farina
2014-09-23 17:37 Richard Farina
2014-09-24 16:43 Michael Palimaka
2014-09-24 17:30 Michael Palimaka
2014-10-28 17:11 Richard Farina
2014-11-24 17:10 Pavlos Ratis
2015-04-24 16:38 Ulrich Müller
2015-04-24 16:46 Ulrich Müller
2015-04-25 12:29 Markos Chandras
2015-04-25 12:29 Markos Chandras
2015-05-10 12:07 Alexey Lapitsky
2015-08-23  9:01 Michał Górny
2015-09-05 15:06 Michał Górny
2015-09-07 16:01 Michał Górny
2015-10-10 22:19 Ulrich Müller
2015-10-10 22:23 Ulrich Müller
2016-01-27 22:16 Michał Górny
2016-02-12  7:56 Michał Górny
2016-05-14 21:41 Jorge Manuel B. S. Vicetto
2016-08-15 15:10 Michał Górny
2016-12-22 11:10 Göktürk Yüksek
2017-02-17 11:15 Michał Górny
2017-02-22 17:08 Michał Górny
2017-06-04 17:13 Ulrich Müller
2017-12-14 17:38 Michał Górny
2018-01-06 11:16 Ulrich Müller
2018-03-19 22:23 Ulrich Müller
2018-03-19 22:29 Ulrich Müller
2018-03-19 23:06 Ulrich Müller
2018-05-08 15:13 Michał Górny
2018-05-08 15:15 Michał Górny
2018-07-07  8:48 Michał Górny
2018-07-10 10:16 Michał Górny
2018-07-10 13:32 Michał Górny
2018-07-17 15:45 Michał Górny
2018-07-17 15:52 Michał Górny
2018-07-17 15:56 Michał Górny
2018-07-17 22:13 Michał Górny
2018-07-18  6:09 Michał Górny
2018-07-18  6:09 Michał Górny
2018-07-18 10:36 Michał Górny
2018-07-18 11:06 Michał Górny
2018-07-18 13:59 Michał Górny
2018-07-18 13:59 Michał Górny
2018-07-18 13:59 Michał Górny
2018-07-21 18:56 Michał Górny
2018-07-21 20:38 Michał Górny
2018-07-21 21:57 Michał Górny
2018-07-29 11:50 Michał Górny
2018-08-12  9:59 Michał Górny
2018-08-12 10:35 Michał Górny
2018-08-12 10:37 Michał Górny
2018-08-12 10:40 Michał Górny
2018-08-23  7:57 Michał Górny
2018-11-12 21:28 Robin H. Johnson
2018-11-12 22:11 Robin H. Johnson
2018-11-12 22:15 Robin H. Johnson
2018-11-12 22:31 Robin H. Johnson
2019-04-01 20:36 Robin H. Johnson
2019-04-09  5:22 Robin H. Johnson
2019-04-09  5:24 Robin H. Johnson
2019-04-09 19:17 Robin H. Johnson
2019-04-14  6:29 Robin H. Johnson
2019-05-03 18:27 Robin H. Johnson
2019-05-04  3:22 Robin H. Johnson
2019-05-04  3:34 Robin H. Johnson
2019-05-04  3:37 Robin H. Johnson
2019-05-04  3:39 Robin H. Johnson
2019-05-04  3:40 Robin H. Johnson
2019-05-04 18:58 Robin H. Johnson
2019-05-04 19:24 Robin H. Johnson
2019-05-04 19:24 Robin H. Johnson
2019-05-04 19:24 Robin H. Johnson
2019-05-05  5:20 Robin H. Johnson
2019-05-05  5:20 Robin H. Johnson
2019-06-29  3:51 Robin H. Johnson
2019-06-29  3:51 Robin H. Johnson
2019-06-29  3:57 Robin H. Johnson
2019-06-29  3:57 Robin H. Johnson
2019-07-03 12:51 Michał Górny
2019-07-03 12:51 Michał Górny
2019-07-08  8:03 Michał Górny
2019-07-08  8:49 Michał Górny
2019-07-11  3:21 Michał Górny
2019-07-15  8:34 Ulrich Müller
2019-07-15 11:58 Michał Górny
2019-07-15 11:59 Michał Górny
2019-07-15 13:35 Michał Górny
2019-07-15 15:29 Michał Górny
2019-07-17 13:46 Michał Górny
2019-07-18  9:55 Ulrich Müller
2019-07-18 14:49 Michał Górny
2019-07-20 18:33 Michał Górny
2019-07-21  8:49 Michał Górny
2019-07-29  4:25 Michał Górny
2019-07-29  8:45 Michał Górny
2019-07-30  7:22 Michał Górny
2019-08-02  2:29 Michał Górny
2019-08-06  3:51 Michał Górny
2019-08-06 12:05 Michał Górny
2019-08-08  3:35 Michał Górny
2019-08-10 22:04 Michał Górny
2019-08-11  7:03 Michał Górny
2019-08-11 14:55 Michał Górny
2019-08-13  6:38 Michał Górny
2019-08-15  8:15 Michał Górny
2019-08-18  6:59 Michał Górny
2019-08-18  8:04 Michał Górny
2019-08-27  2:55 Michał Górny
2019-08-29  5:28 Michał Górny
2019-09-01  7:58 Michał Górny
2019-09-14 17:34 Michał Górny
2019-09-17  6:00 Michał Górny
2019-09-17  6:30 Michał Górny
2019-09-17 11:43 Michał Górny
2019-09-20  7:07 Michał Górny
2019-09-25  6:27 Michał Górny
2019-09-25 10:36 Michał Górny
2019-10-05 16:50 Michał Górny
2019-10-07  9:17 Michał Górny
2019-11-02 10:22 Michał Górny
2019-11-04 15:23 Michał Górny
2019-11-05 18:23 Michał Górny
2019-11-12 13:29 Michał Górny
2019-11-12 14:12 Michał Górny
2019-12-02 22:32 Michał Górny
2019-12-07 22:37 Ulrich Müller
2019-12-09 19:56 Michał Górny
2019-12-09 21:06 Michał Górny
2019-12-30 16:20 Michał Górny
2019-12-30 18:59 Michał Górny
2020-01-28  5:36 Michał Górny
2020-02-08 13:40 Michał Górny
2020-02-09 19:45 Michał Górny
2020-02-10  5:50 Michał Górny
2020-02-12 13:44 Ulrich Müller
2020-02-12 14:31 Ulrich Müller
2020-02-14  9:06 Mikle Kolyada
2020-02-14  9:17 Ulrich Müller
2020-02-16  6:09 Michał Górny
2020-02-16  6:24 Michał Górny
2020-02-24  6:51 Michał Górny
2020-02-24  6:59 Michał Górny
2020-03-08 12:42 Michał Górny
2020-04-19 12:06 Ulrich Müller
2020-05-04  5:01 Michał Górny
2020-05-26  5:59 Robin H. Johnson
2020-05-28  9:21 Michał Górny
2020-05-31  6:39 Robin H. Johnson
2020-06-02  5:40 Michał Górny
2020-06-28 11:23 Michał Górny
2020-08-02  8:12 Michał Górny
2020-09-02  7:20 Michał Górny
2020-09-13 11:25 Michał Górny
2020-09-14  2:55 Michał Górny
2020-09-14 19:34 Michał Górny
2020-11-15 18:40 Michał Górny
2020-12-06  9:00 Michał Górny
2021-03-28 20:06 Michał Górny
2021-04-14 13:35 Michał Górny
2021-04-18  7:15 Michał Górny
2021-05-01 12:56 Michał Górny
2021-05-12 11:44 Michał Górny
2021-05-18  7:22 Michał Górny
2021-05-24 18:49 Michał Górny
2021-05-25  4:12 Michał Górny
2021-05-25  4:51 Michał Górny
2021-05-25 12:15 Michał Górny
2021-06-10 16:33 Michał Górny
2021-08-08 20:42 Michał Górny
2021-08-18 20:12 Michał Górny
2021-08-27 18:38 Michał Górny
2021-09-27 15:49 Michał Górny
2021-11-08 11:21 Michał Górny
2022-02-08  6:26 Robin H. Johnson
2022-02-27 17:58 Robin H. Johnson
2022-02-27 19:27 Robin H. Johnson
2022-03-03  5:58 Robin H. Johnson
2022-03-06 17:30 Robin H. Johnson
2022-03-06 17:30 Robin H. Johnson
2022-03-06 17:30 Robin H. Johnson
2022-03-13 18:14 Sam James
2022-03-13 20:53 Sam James
2022-03-19 17:52 Sam James
2022-03-19 17:52 Sam James
2022-03-19 18:52 Sam James
2022-03-19 19:34 Sam James
2022-03-19 19:41 Sam James
2022-03-19 19:43 Sam James
2022-03-19 20:01 Sam James
2022-03-19 20:01 Sam James
2022-03-19 20:01 Sam James
2022-03-19 20:02 Sam James
2022-03-19 20:22 Sam James
2022-03-19 20:29 Sam James
2022-03-19 20:29 Sam James
2022-03-19 20:34 Sam James
2022-04-10 15:46 Robin H. Johnson
2022-04-10 15:46 Robin H. Johnson
2022-04-22 20:56 Michał Górny
2022-05-10 16:30 Sam James
2022-05-10 16:30 Sam James
2022-05-10 21:57 Sam James
2022-05-10 22:01 Sam James
2022-05-11 20:35 Sam James
2022-05-16 12:46 Michał Górny
2022-05-16 16:29 Michał Górny
2022-06-01 10:08 Michał Górny
2022-06-06  4:33 Michał Górny
2022-07-11  0:53 Sam James
2022-07-11  0:58 Sam James
2022-07-11  1:00 Sam James
2022-07-11  1:08 Sam James
2022-07-11  1:26 Sam James
2022-07-11  1:42 Sam James
2022-07-16  3:40 John Helmert III
2022-07-16  4:23 John Helmert III
2022-07-16 16:32 John Helmert III
2022-07-16 17:08 John Helmert III
2022-07-16 18:25 John Helmert III
2022-07-16 18:29 Sam James
2022-07-16 18:29 Sam James
2022-07-23  2:59 Sam James
2022-07-24  1:19 Sam James
2022-07-24 22:52 Ulrich Müller
2022-07-31  1:34 Sam James
2022-07-31  1:57 Sam James
2022-09-03  1:24 Sam James
2022-09-03  2:50 Sam James
2022-10-04  3:46 Sam James
2022-10-08 12:24 Sam James
2022-10-08 17:18 Sam James
2022-10-08 18:30 Sam James
2022-10-08 18:59 Sam James
2022-10-10 19:53 John Helmert III
2022-10-10 23:56 John Helmert III
2022-10-15  0:59 Sam James
2022-10-15  1:08 Sam James
2022-10-31 19:30 John Helmert III
2022-11-01 22:45 Sam James
2023-01-18 18:17 Sam James
2023-01-18 18:29 Sam James
2023-01-21  6:11 Sam James
2023-01-22  6:10 Sam James
2023-03-24  5:24 Michał Górny
2023-04-13 17:36 Robin H. Johnson
2023-04-13 17:36 Robin H. Johnson
2023-05-24  7:07 Sam James
2023-05-24  9:35 Sam James
2023-05-24 12:00 Sam James
2023-05-24 17:20 Sam James
2023-05-25  2:24 Sam James
2023-05-26 13:34 Sam James
2023-05-31 20:13 Sam James
2023-05-31 20:17 Sam James
2023-06-30  5:19 Robin H. Johnson
2023-06-30  5:19 Robin H. Johnson
2023-06-30  5:33 Robin H. Johnson
2024-01-12 15:39 Michał Górny
2024-02-06  9:28 Ulrich Müller
2024-04-06 12:25 Michał Górny
2024-05-19 17:28 Robin H. Johnson
2024-05-19 17:28 Robin H. Johnson
2024-05-19 17:28 Robin H. Johnson
2024-05-20 18:47 Robin H. Johnson
2024-06-08 10:52 Michał Górny
2024-07-06 10:17 Michał Górny
2024-07-06 10:17 Michał Górny
2024-10-07 18:18 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox