diff options
author | 2017-12-20 21:54:30 +0200 | |
---|---|---|
committer | 2017-12-20 22:23:07 +0200 | |
commit | 25beab675bbb7db7ed9139baaa86e6d985b4693a (patch) | |
tree | 98b4febdf0496c1aefcb4e436d86353396d3d609 /dev-python/python-slip/files | |
parent | dev-libs/totem-pl-parser: remove old (diff) | |
download | gentoo-25beab675bbb7db7ed9139baaa86e6d985b4693a.tar.gz gentoo-25beab675bbb7db7ed9139baaa86e6d985b4693a.tar.bz2 gentoo-25beab675bbb7db7ed9139baaa86e6d985b4693a.zip |
dev-python/python-slip: remove old
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-python/python-slip/files')
-rw-r--r-- | dev-python/python-slip/files/python-slip-0.4.0-no-selinux.patch | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/dev-python/python-slip/files/python-slip-0.4.0-no-selinux.patch b/dev-python/python-slip/files/python-slip-0.4.0-no-selinux.patch deleted file mode 100644 index 08a4fa80b880..000000000000 --- a/dev-python/python-slip/files/python-slip-0.4.0-no-selinux.patch +++ /dev/null @@ -1,93 +0,0 @@ -From a7bfeeb479d28c9a880d2a08d0102978fa711237 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 d670ed5..d5b8db8 100644 ---- a/setup.py.in -+++ b/setup.py.in -@@ -7,7 +7,7 @@ setup(name="slip", version="@VERSION@", - py_modules=["slip.__init__", "slip.util.__init__", - "slip.util.hookable", "slip.util.files", - "slip._wrappers.__init__", "slip._wrappers._gobject"], -- 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 27ba45c..53869f6 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 -@@ -134,8 +134,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, -@@ -234,8 +234,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, -@@ -244,10 +244,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 -@@ -259,11 +259,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.8.3.2 - |