From: | "Ryan Hill (dirtyepic)" <dirtyepic@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-editors/editra/files: editra-0.5.32-sandbox.patch |
Date: | Fri, 19 Feb 2010 00:21:16 |
Message-Id: | E1NiGcN-0002q2-AQ@stork.gentoo.org |
1 | dirtyepic 10/02/19 00:21:15 |
2 | |
3 | Added: editra-0.5.32-sandbox.patch |
4 | Log: |
5 | Fix sandbox violations, bug #298752. |
6 | (Portage version: 2.2_rc62/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 app-editors/editra/files/editra-0.5.32-sandbox.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/editra/files/editra-0.5.32-sandbox.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/editra/files/editra-0.5.32-sandbox.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: editra-0.5.32-sandbox.patch |
15 | =================================================================== |
16 | diff --git a/setup.py b/setup.py |
17 | index 8db801c..80aa3bf 100755 |
18 | --- a/setup.py |
19 | +++ b/setup.py |
20 | @@ -482,20 +482,6 @@ def DoSourcePackage(): |
21 | else: |
22 | from distutils.core import setup |
23 | |
24 | - # Try to remove possibly conflicting files from an old install |
25 | - try: |
26 | - import Editra |
27 | - path = Editra.__file__ |
28 | - if '__init__' in path: |
29 | - path = os.path.dirname(path) |
30 | - path = os.path.join(path, 'src') |
31 | - del sys.modules['Editra'] |
32 | - shutil.rmtree(path) |
33 | - except (ImportError, OSError): |
34 | - pass |
35 | - except: |
36 | - sys.stderr.write("[ERROR] Failed to remove old source files") |
37 | - |
38 | # Make sure to delete any existing MANIFEST file beforehand to |
39 | # prevent stale file lists |
40 | if os.path.exists('MANIFEST'): |