Mageia Bugzilla – Attachment 6884 Details for
Bug 16524
Adapting msec to python 3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
adapt shebang
0002-adapt-shebang.patch (text/plain), 3.13 KB, created by
Thierry Vignaud
on 2015-08-02 19:31:41 CEST
(
hide
)
Description:
adapt shebang
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-08-02 19:31:41 CEST
Size:
3.13 KB
patch
obsolete
>From d794903f5f2e6c20474fcca0f546087e85d6b553 Mon Sep 17 00:00:00 2001 >From: Thierry Vignaud <thierry.vignaud@gmail.com> >Date: Sun, 9 Feb 2014 19:59:16 +0100 >Subject: [PATCH 2/4] adapt shebang > >--- > src/msec/compile.py | 2 +- > src/msec/config.py | 2 +- > src/msec/help_draksec.py | 2 +- > src/msec/libmsec.py | 2 +- > src/msec/man.py | 2 +- > src/msec/msec.py | 2 +- > src/msec/msecgui.py | 2 +- > src/msec/msecperms.py | 2 +- > src/msec/tools.py | 2 +- > 9 files changed, 9 insertions(+), 9 deletions(-) > >diff --git a/src/msec/compile.py b/src/msec/compile.py >index 150a180..2983271 100755 >--- a/src/msec/compile.py >+++ b/src/msec/compile.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > ############################################################################# > # File : compile.py > # Package : rpmlint >diff --git a/src/msec/config.py b/src/msec/config.py >index 64d423d..89b060f 100755 >--- a/src/msec/config.py >+++ b/src/msec/config.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """This is the configuration file for msec. > The following variables are defined here: > SECURITY_LEVELS: list of supported security levels >diff --git a/src/msec/help_draksec.py b/src/msec/help_draksec.py >index f4536a3..6863038 100755 >--- a/src/msec/help_draksec.py >+++ b/src/msec/help_draksec.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > # > # This script creates DrakSec help strings from libmsec code docstrings. > # >diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py >index 83aeb26..3ce0409 100755 >--- a/src/msec/libmsec.py >+++ b/src/msec/libmsec.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """This is the main msec module, responsible for all msec operations. > > The following classes are defined here: >diff --git a/src/msec/man.py b/src/msec/man.py >index a937b07..d3983b5 100755 >--- a/src/msec/man.py >+++ b/src/msec/man.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > #--------------------------------------------------------------- > # Project : Mandriva Linux > # Module : share >diff --git a/src/msec/msec.py b/src/msec/msec.py >index c238469..1823eca 100755 >--- a/src/msec/msec.py >+++ b/src/msec/msec.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """This is the main msec module. > It checks/sets the security levels, configures security variables, > and works as a frontend to libmsec. >diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py >index 4d79213..991a958 100755 >--- a/src/msec/msecgui.py >+++ b/src/msec/msecgui.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """ > This is graphical frontend to msec. > """ >diff --git a/src/msec/msecperms.py b/src/msec/msecperms.py >index 1e783f2..8d37573 100755 >--- a/src/msec/msecperms.py >+++ b/src/msec/msecperms.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python -O >+#!/usr/bin/python3 -O > """This file is responsible for permissions checking and > (optionally) enforcing. > """ >diff --git a/src/msec/tools.py b/src/msec/tools.py >index 34f77f8..7383928 100755 >--- a/src/msec/tools.py >+++ b/src/msec/tools.py >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+#!/usr/bin/python3 > # > # msec: helper tools > # >-- >2.4.5 >
From d794903f5f2e6c20474fcca0f546087e85d6b553 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud <thierry.vignaud@gmail.com> Date: Sun, 9 Feb 2014 19:59:16 +0100 Subject: [PATCH 2/4] adapt shebang --- src/msec/compile.py | 2 +- src/msec/config.py | 2 +- src/msec/help_draksec.py | 2 +- src/msec/libmsec.py | 2 +- src/msec/man.py | 2 +- src/msec/msec.py | 2 +- src/msec/msecgui.py | 2 +- src/msec/msecperms.py | 2 +- src/msec/tools.py | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/msec/compile.py b/src/msec/compile.py index 150a180..2983271 100755 --- a/src/msec/compile.py +++ b/src/msec/compile.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O ############################################################################# # File : compile.py # Package : rpmlint diff --git a/src/msec/config.py b/src/msec/config.py index 64d423d..89b060f 100755 --- a/src/msec/config.py +++ b/src/msec/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """This is the configuration file for msec. The following variables are defined here: SECURITY_LEVELS: list of supported security levels diff --git a/src/msec/help_draksec.py b/src/msec/help_draksec.py index f4536a3..6863038 100755 --- a/src/msec/help_draksec.py +++ b/src/msec/help_draksec.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # This script creates DrakSec help strings from libmsec code docstrings. # diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py index 83aeb26..3ce0409 100755 --- a/src/msec/libmsec.py +++ b/src/msec/libmsec.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """This is the main msec module, responsible for all msec operations. The following classes are defined here: diff --git a/src/msec/man.py b/src/msec/man.py index a937b07..d3983b5 100755 --- a/src/msec/man.py +++ b/src/msec/man.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #--------------------------------------------------------------- # Project : Mandriva Linux # Module : share diff --git a/src/msec/msec.py b/src/msec/msec.py index c238469..1823eca 100755 --- a/src/msec/msec.py +++ b/src/msec/msec.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """This is the main msec module. It checks/sets the security levels, configures security variables, and works as a frontend to libmsec. diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py index 4d79213..991a958 100755 --- a/src/msec/msecgui.py +++ b/src/msec/msecgui.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """ This is graphical frontend to msec. """ diff --git a/src/msec/msecperms.py b/src/msec/msecperms.py index 1e783f2..8d37573 100755 --- a/src/msec/msecperms.py +++ b/src/msec/msecperms.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/python3 -O """This file is responsible for permissions checking and (optionally) enforcing. """ diff --git a/src/msec/tools.py b/src/msec/tools.py index 34f77f8..7383928 100755 --- a/src/msec/tools.py +++ b/src/msec/tools.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # msec: helper tools # -- 2.4.5
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16524
:
6881
|
6883
| 6884 |
6885
|
6886
|
6898
|
6899
|
6900
|
6901
|
6913
|
6922
|
6928