public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/systemd] f45: Specify tools list without the full paths
@ 2026-11-19 14:11 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-19 14:11 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/systemd
            Branch : f45
            Commit : 5a33cc16f586ac277ee16a9b2e0654214240bd5d
            Author : Zbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
            Date   : 2026-11-19T15:10:05+01:00
            Stats  : +20/-21 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/systemd/c/5a33cc16f586ac277ee16a9b2e0654214240bd5d?branch=f45

            Log:
            Specify tools list without the full paths

[skip changelog]

---
diff --git a/split-files.py b/split-files.py
index 3ebd1fb..3d0fba9 100644
--- a/split-files.py
+++ b/split-files.py
@@ -47,26 +47,25 @@ known_files = '''
 known_files = {line.split()[-1]:line for line in known_files.splitlines()
                if line and not line.startswith('#')}
 
-tool_paths = {
-    '/usr/bin/portablectl',
-    '/usr/bin/systemctl',
-    '/usr/bin/systemd-cat',
-    '/usr/bin/systemd-creds',
-    '/usr/bin/systemd-delta',
-    '/usr/bin/systemd-detect-virt',
-    '/usr/bin/systemd-escape',
-    '/usr/bin/systemd-id128',
-    '/usr/bin/systemd-inhibit',
-    '/usr/bin/systemd-notify',
-    '/usr/bin/systemd-path',
-    '/usr/bin/systemd-repart',
-    '/usr/bin/systemd-tmpfiles',
-    '/usr/bin/varlinkctl',
-    '/usr/lib/systemd/systemd-keyutil',
-    '/usr/lib/systemd/systemd-measure',
-    '/usr/lib/systemd/systemd-sbsign',
+tools = {
+    'portablectl',
+    'systemctl',
+    'systemd-cat',
+    'systemd-creds',
+    'systemd-delta',
+    'systemd-detect-virt',
+    'systemd-escape',
+    'systemd-id128',
+    'systemd-inhibit',
+    'systemd-keyutil',
+    'systemd-measure',
+    'systemd-notify',
+    'systemd-path',
+    'systemd-repart',
+    'systemd-sbsign',
+    'systemd-tmpfiles',
+    'varlinkctl',
 }
-tool_manpages = {os.path.basename(p) for p in tool_paths}
 
 def files(root):
     os.chdir(root)
@@ -178,9 +177,9 @@ for file in files(buildroot):
     ''', n, re.X):
         o = outputs['sysusers']
 
-    elif (n in tool_paths or
+    elif (file.name in tools or
           (n.startswith('/usr/share/man/') and
-           re.sub(r'\.[1-9](?:\.\w+)?$', '', file.name) in tool_manpages)):
+           re.sub(r'\.[1-9](?:\.\w+)?$', '', file.name) in tools)):
         o = outputs['tools']
 
     elif re.search(r'import-pubring', n):

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19 14:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 14:11 [rpms/systemd] f45: Specify tools list without the full paths 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox