mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-18 11:20:44 +00:00
python: always use python3 in the shebang of programs using setools
setools 4.2.0 dropped support for Python 2. On systems where /usr/bin/python is Python 2, several tools are now broken because of this. Update the shebang of these tools to /usr/bin/python3. For future reference, as semanage/seobject.py, sepolicy and sepolgen import setools, every program that uses one of these modules need to be run with Python 3. The following programs do not use any of these modules so their shebangs have not been modified: dbus/selinux_server.py libsemanage/utils/semanage_migrate_store mcstrans/share/util/mlscolor-test mcstrans/share/util/mlstrans-test sandbox/start Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
9336e435dd
commit
72dc5c6241
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python -Es
|
||||
#!/usr/bin/python3 -Es
|
||||
#
|
||||
# polgengui.py - GUI for SELinux Config tool in system-config-selinux
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python -Es
|
||||
#!/usr/bin/python3 -Es
|
||||
#
|
||||
# system-config-selinux.py - GUI for SELinux Config tool in system-config-selinux
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /usr/bin/python -Es
|
||||
#!/usr/bin/python3 -Es
|
||||
# Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
|
||||
# Authors: Dan Walsh <dwalsh@redhat.com>
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /usr/bin/python -Es
|
||||
#!/usr/bin/python3 -Es
|
||||
#
|
||||
# Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /usr/bin/python -Es
|
||||
#!/usr/bin/python3 -Es
|
||||
# Copyright (C) 2005 Red Hat
|
||||
# see file 'COPYING' for use and warranty information
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /usr/bin/python -Es
|
||||
#!/usr/bin/python3 -Es
|
||||
# Copyright (C) 2012 Red Hat
|
||||
# AUTHOR: Dan Walsh <dwalsh@redhat.com>
|
||||
# see file 'COPYING' for use and warranty information
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /usr/bin/python -Es
|
||||
#!/usr/bin/python3 -Es
|
||||
# Authors: Dan Walsh <dwalsh@redhat.com>
|
||||
# Authors: Thomas Liu <tliu@fedoraproject.org>
|
||||
# Authors: Josh Cogliati
|
||||
|
Loading…
Reference in New Issue
Block a user