Gentoo Archives: gentoo-commits

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.12.0-prefix.patch
Date: Thu, 27 Mar 2014 00:17:02
Message-Id: 20140327001654.248F72004F@flycatcher.gentoo.org
1 xmw 14/03/27 00:16:54
2
3 Added: xpra-0.12.0-prefix.patch
4 Log:
5 Version bump
6
7 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
8
9 Revision Changes Path
10 1.1 x11-wm/xpra/files/xpra-0.12.0-prefix.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xpra/files/xpra-0.12.0-prefix.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xpra/files/xpra-0.12.0-prefix.patch?rev=1.1&content-type=text/plain
14
15 Index: xpra-0.12.0-prefix.patch
16 ===================================================================
17 --- xpra-0.12.0/xpra/scripts/config.py
18 +++ xpra-0.12.0/xpra/scripts/config.py
19 @@ -188,9 +188,9 @@
20 #OSX and win32 use binary installers,
21 #we must look for the default config in the bundled resource location:
22 conf_dir = get_resources_dir()
23 - elif sys.prefix == '/usr':
24 + elif sys.prefix[-4:] == '/usr':
25 #default posix config location:
26 - conf_dir = '/etc/xpra'
27 + conf_dir = sys.prefix[:-4] + '/etc/xpra'
28 else:
29 #hope the prefix is something like "/usr/local":
30 conf_dir = sys.prefix + '/etc/xpra/'
31 --- xpra-0.12.0/setup.py
32 +++ xpra-0.12.0/setup.py
33 @@ -990,8 +990,8 @@
34 return {}
35 if "install" in sys.argv:
36 #prepare default [/usr/local]/etc configuration files:
37 - if sys.prefix == '/usr':
38 - etc_prefix = '/etc/xpra'
39 + if sys.prefix[-4:] == '/usr':
40 + etc_prefix = sys.prefix[:-4] + '/etc/xpra'
41 else:
42 etc_prefix = sys.prefix + '/etc/xpra'