]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson-extract-unit-files: apply "ruff format"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Feb 2026 17:11:31 +0000 (02:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 May 2026 17:44:47 +0000 (02:44 +0900)
tools/meson-extract-unit-files.py

index f2b4fa30e71bb5b082a2d58111239fd94aa2980b..df4c5593469c4ae8dc5394ae3568069499afcb28 100755 (executable)
@@ -6,15 +6,20 @@ import re
 import subprocess
 import sys
 
+
 def main():
     build_dir = sys.argv[1]
 
-    out = subprocess.run(["meson", "introspect", "--installed", build_dir],
-                         stdout=subprocess.PIPE, check=True)
+    out = subprocess.run(
+        ['meson', 'introspect', '--installed', build_dir],
+        stdout=subprocess.PIPE,
+        check=True,
+    )
     files = json.loads(out.stdout)
     for file in sorted(files.values()):
-        if re.search("^/usr/lib/systemd/(system|user)/", file) and not file.endswith(".conf"):
+        if re.search('^/usr/lib/systemd/(system|user)/', file) and not file.endswith('.conf'):
             print(file)
 
-if __name__ == "__main__":
+
+if __name__ == '__main__':
     main()