commit:     2f34797c415c028da8fc9dfcad3f75c32eadb923
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 26 04:08:45 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct 26 04:08:45 2025 +0000
URL:        https://gitweb.gentoo.org/proj/gpyutils.git/commit/?id=2f34797c

list_pkg_impls: Recognize PROPERTIES=test*

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

 gpyutils/scripts/list_pkg_impls.py | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/gpyutils/scripts/list_pkg_impls.py 
b/gpyutils/scripts/list_pkg_impls.py
index 00408e8..a5bb222 100755
--- a/gpyutils/scripts/list_pkg_impls.py
+++ b/gpyutils/scripts/list_pkg_impls.py
@@ -90,7 +90,12 @@ def process(pkgs,
                                 # we do not need to scan for anything else
                                 break
 
-                if "test" in p.restrict:
+                print(p.properties)
+                if "test_network" in p.properties:
+                    test = "N"
+                elif "test_privileged" in p.properties:
+                    test = "P"
+                elif "test" in p.restrict:
                     test = "r"
                 if "distutils-r1" not in p.inherits:
                     ptype = "        "
@@ -110,7 +115,13 @@ def process(pkgs,
         assert ptype is not None
         out.append(c(ptype, 7))
 
-        out.append(c(test, 9 if test == "T" else 4))
+        if test == "T":
+            test_color = 9
+        elif test == "r":
+            test_color = 4
+        else:
+            test_color = 11
+        out.append(c(test, test_color))
 
         if st_impls:
             out.append(" STABLE:")

Reply via email to