]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Add SPDX license headers to python scripts
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 18 Nov 2017 16:32:46 +0000 (17:32 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 19 Nov 2017 18:08:15 +0000 (19:08 +0100)
12 files changed:
test/create-sys-script.py
test/networkd-test.py
test/rule-syntax-check.py
test/sys-script.py
test/sysv-generator-test.py
test/test-exec-deserialization.py
tools/catalog-report.py
tools/gdb-sd_dump_hashmaps.py
tools/make-directive-index.py
tools/make-man-index.py
tools/make-man-rules.py
tools/xml_helper.py

index a4f1f302f60cd40a0a45131fe81b294dc5984168..e25f3b4f8f069748ade9c866a6461ddcca7e9ffa 100755 (executable)
@@ -1,6 +1,8 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1+
 
 OUTFILE_HEADER = """#!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1+
 #
 # create-sys-script.py
 #
index 5760ca5137a0c8841deaa9200e46083ab4f97513..3918d85ef0ab61fade766a176d4465b8d4b55e52 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1+
 #
 # networkd integration test
 # This uses temporary configuration in /run and temporary veth devices, and
index 14739df49321cba8a3194b004bdb9434260fb79e..4f27fb015b4b3b4df13815d743cdf381de1cc533 100755 (executable)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1+
+#
 # Simple udev rules syntax checker
 #
 # (C) 2010 Canonical Ltd.
index 2de7d7ea3094d56fa74752eaee1ddfe63970d0f3..468c1dc9724910c7919bba72aea51c9be2be5ea2 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1+
 #
 # sys-script.py
 #
index 18bb40f8128151b3aaf6bdafd33ddf1ce0a00203..0b4710aeabd3900d6fd76275320aa2706bee9755 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: LGPL-2.1+
 #
 # systemd-sysv-generator integration test
 #
index c3fe0824c7d09ca8422db953fba8c6223628e571..1b8863746ce93cb86ffbd2858d61e76368dcd492 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python3
-
+# SPDX-License-Identifier: LGPL-2.1+
 #
 #  Copyright 2017 Michal Sekletar <msekleta@redhat.com>
 #
index 357e498cdcf075effd811c44b51ece830fab80b6..426ea0d8916a4d79727995fe1841d711822e655b 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
+# SPDX-License-Identifier: MIT
 #
 # This file is part of systemd. It is distrubuted under the MIT license, see
 # below.
index 62ce8006f53ab4eef89a87775625f1ee34fcc573..b3c356b57910472f026b9c2c57f29d54b329772c 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
+# SPDX-License-Identifier: LGPL-2.1+
 #
 #  This file is part of systemd.
 #
index f9203ddd1a5a999be51eb87afb4730248f6b6471..fb2b0b7c6fde6c8e4bfeb21f600fbb0f77547467 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
+# SPDX-License-Identifier: LGPL-2.1+
 #
 #  This file is part of systemd.
 #
index 0618e2e677f9dc71ac0836e4cc93b3589fb27d21..5ff36166526234f63f3be69899f44da8ce04fd9d 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
+# SPDX-License-Identifier: LGPL-2.1+
 #
 #  This file is part of systemd.
 #
index e0f18d6fbee941801f0050f6210bde4dbb544ae0..444d4a6ee4518a9c55d543d803e1a003f2c040e1 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
+#  SPDX-License-Identifier: LGPL-2.1+
 #
 #  This file is part of systemd.
 #
index 0088be5bd9e50d4997a668850bace36cb57947fe..47434c7156ddfe26dc79dc8a39634757e99eae82 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
+#  SPDX-License-Identifier: LGPL-2.1+
 #
 #  This file is part of systemd.
 #
@@ -27,9 +28,11 @@ class CustomResolver(tree.Resolver):
 
 _parser = tree.XMLParser()
 _parser.resolvers.add(CustomResolver())
+
 def xml_parse(page):
     doc = tree.parse(page, _parser)
     doc.xinclude()
     return doc
+
 def xml_print(xml):
     return tree.tostring(xml, pretty_print=True, encoding='utf-8')