* [gentoo-commits] repo/gentoo:master commit in: dev-python/python-slip/files/
@ 2016-09-29 20:42 Patrice Clement
0 siblings, 0 replies; only message in thread
From: Patrice Clement @ 2016-09-29 20:42 UTC (permalink / raw
To: gentoo-commits
commit: 510e955cf08fdc3edd3d8fa19399728ba2a14aa1
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Wed Sep 14 17:12:59 2016 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Thu Sep 29 20:36:13 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=510e955c
dev-python/python-slip: remove unused patch.
Closes: https://github.com/gentoo/gentoo/pull/2329
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
.../files/python-slip-0.2.20-no-selinux.patch | 93 ----------------------
1 file changed, 93 deletions(-)
diff --git a/dev-python/python-slip/files/python-slip-0.2.20-no-selinux.patch b/dev-python/python-slip/files/python-slip-0.2.20-no-selinux.patch
deleted file mode 100644
index b4ff165..00000000
--- a/dev-python/python-slip/files/python-slip-0.2.20-no-selinux.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-From 13474db085f5ae550248d93ccf0f92b987f2244b Mon Sep 17 00:00:00 2001
-From: Alexandre Rostovtsev <tetromino@gentoo.org>
-Date: Wed, 18 Jul 2012 20:07:01 -0400
-Subject: [PATCH] Disable selinux
-
----
- setup.py.in | 2 +-
- slip/util/files.py | 28 ++++++++++++++--------------
- 2 files changed, 15 insertions(+), 15 deletions(-)
-
-diff --git a/setup.py.in b/setup.py.in
-index 554dc40..f3d9d55 100644
---- a/setup.py.in
-+++ b/setup.py.in
-@@ -6,7 +6,7 @@ from distutils.core import setup
- setup(name="slip", version="@VERSION@",
- py_modules=["slip.__init__", "slip.util.__init__",
- "slip.util.hookable", "slip.util.files"],
-- requires=["selinux"])
-+ requires=[ ])
-
- setup(name="slip.dbus", version="@VERSION@",
- py_modules=["slip.dbus.__init__", "slip.dbus.bus",
-diff --git a/slip/util/files.py b/slip/util/files.py
-index 4e98238..141aa86 100644
---- a/slip/util/files.py
-+++ b/slip/util/files.py
-@@ -24,7 +24,7 @@ __all__ = ["issamefile", "linkfile", "copyfile", "linkorcopyfile",
- "overwrite_safely"]
-
- import os
--import selinux
-+# import selinux
- import shutil
- import tempfile
- import errno
-@@ -135,8 +135,8 @@ def copyfile(srcpath, dstpath, copy_mode_from_dst=True, run_restorecon=True):
-
- os.rename(dsttmpfile.name, dstpath)
-
-- if run_restorecon and selinux.is_selinux_enabled() > 0:
-- selinux.restorecon(dstpath)
-+# if run_restorecon and selinux.is_selinux_enabled() > 0:
-+# selinux.restorecon(dstpath)
-
-
- def linkorcopyfile(srcpath, dstpath, copy_mode_from_dst=True,
-@@ -176,8 +176,8 @@ def overwrite_safely(path, content, preserve_mode=True, preserve_context=True):
-
- exists = os.path.exists(path)
-
-- if preserve_context and selinux.is_selinux_enabled() <= 0:
-- preserve_context = False
-+# if preserve_context and selinux.is_selinux_enabled() <= 0:
-+# preserve_context = False
-
- try:
- fd, tmpname = tempfile.mkstemp(prefix=base + os.path.extsep,
-@@ -186,10 +186,10 @@ def overwrite_safely(path, content, preserve_mode=True, preserve_context=True):
- if exists and preserve_mode:
- shutil.copymode(path, tmpname)
-
-- if exists and preserve_context:
-- ret, ctx = selinux.getfilecon(path)
-- if ret < 0:
-- raise RuntimeError("getfilecon(%r) failed" % path)
-+# if exists and preserve_context:
-+# ret, ctx = selinux.getfilecon(path)
-+# if ret < 0:
-+# raise RuntimeError("getfilecon(%r) failed" % path)
-
- f = os.fdopen(fd, "w")
- fd = None
-@@ -201,11 +201,11 @@ def overwrite_safely(path, content, preserve_mode=True, preserve_context=True):
-
- os.rename(tmpname, path)
-
-- if preserve_context:
-- if exists:
-- selinux.setfilecon(path, ctx)
-- else:
-- selinux.restorecon(path)
-+# if preserve_context:
-+# if exists:
-+# selinux.setfilecon(path, ctx)
-+# else:
-+# selinux.restorecon(path)
-
- finally:
- if f:
---
-1.7.8.6
-
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-29 20:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-29 20:42 [gentoo-commits] repo/gentoo:master commit in: dev-python/python-slip/files/ Patrice Clement
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox