From: | "Michael Weber (xmw)" <xmw@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-wm/xpra/files: xpra-0.7.4-prefix.patch |
Date: | Fri, 30 Nov 2012 16:11:04 |
Message-Id: | 20121130161050.218CA20C65@flycatcher.gentoo.org |
1 | xmw 12/11/30 16:10:50 |
2 | |
3 | Added: xpra-0.7.4-prefix.patch |
4 | Log: |
5 | Prefix support by Benda Xu (bug 445332). |
6 | |
7 | (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 62EEF090) |
8 | |
9 | Revision Changes Path |
10 | 1.1 x11-wm/xpra/files/xpra-0.7.4-prefix.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xpra/files/xpra-0.7.4-prefix.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xpra/files/xpra-0.7.4-prefix.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: xpra-0.7.4-prefix.patch |
16 | =================================================================== |
17 | --- xpra-0.7.4/setup.py |
18 | +++ xpra-0.7.4/setup.py |
19 | @@ -459,8 +459,8 @@ |
20 | |
21 | if 'install' in sys.argv: |
22 | #prepare default [/usr/local]/etc configuration files: |
23 | - if sys.prefix == '/usr': |
24 | - etc_prefix = '/etc/xpra' |
25 | + if sys.prefix[-4:] == '/usr': |
26 | + etc_prefix = sys.prefix[:-4] + '/etc/xpra' |
27 | else: |
28 | etc_prefix = sys.prefix + '/etc/xpra' |
29 | etc_files = ["etc/xpra/xorg.conf"] |