public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/systemd] rawhide: Also move zsh completion scripts to -tools
@ 2026-11-19 20:15 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-19 20:15 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/systemd
            Branch : rawhide
            Commit : c545cb120afa8de75f21ade6ebb664877569781d
            Author : Zbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
            Date   : 2026-11-19T21:15:40+01:00
            Stats  : +13/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/systemd/c/c545cb120afa8de75f21ade6ebb664877569781d?branch=rawhide

            Log:
            Also move zsh completion scripts to -tools

[skip changelog]

---
diff --git a/split-files.py b/split-files.py
index f9a5abc..4181e67 100644
--- a/split-files.py
+++ b/split-files.py
@@ -178,9 +178,19 @@ for file in files(buildroot):
     ''', n, re.X):
         o = outputs['sysusers']
 
-    elif (file.name in tools or
-          (n.startswith('/usr/share/man/') and
-           re.sub(r'\.[1-9](?:\.\w+)?$', '', file.name) in tools)):
+    elif (
+            # files with the specified name: the binary and the bash completion script
+            file.name in tools
+            # zsh completion scripts, prefixed with '_'
+            or (n.startswith('/usr/share/zsh/') and
+                re.sub(r'^_', '', file.name) in tools)
+            # compressed or non-compressed man pages
+            or (n.startswith('/usr/share/man/') and
+                re.sub(r'\.[1-9](?:\.\w+)?$', '', file.name) in tools)
+            # shared zsh helpers
+            or (n.startswith('/usr/share/zsh/') and
+                file.name.startswith('_sd_'))
+    ):
         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 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 20:15 [rpms/systemd] rawhide: Also move zsh completion scripts to -tools 

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