Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r14157 - main/branches/prefix/bin
Date: Wed, 26 Aug 2009 20:32:34
Message-Id: E1MgF8q-0007S6-2x@stork.gentoo.org
1 Author: grobian
2 Date: 2009-08-26 09:50:07 +0000 (Wed, 26 Aug 2009)
3 New Revision: 14157
4
5 Modified:
6 main/branches/prefix/bin/dispatch-conf
7 Log:
8 import EPREFIX from portage.const, bug #282581
9
10 Modified: main/branches/prefix/bin/dispatch-conf
11 ===================================================================
12 --- main/branches/prefix/bin/dispatch-conf 2009-08-26 09:46:57 UTC (rev 14156)
13 +++ main/branches/prefix/bin/dispatch-conf 2009-08-26 09:50:07 UTC (rev 14157)
14 @@ -22,6 +22,7 @@
15 from portage import os
16 from portage import dispatch_conf
17 from portage.process import find_binary
18 +from portage.const import EPREFIX
19
20 FIND_EXTANT_CONFIGS = "find '%s' %s -name '._cfg????_%s' ! -name '.*~' ! -iname '.*.bak' -print"
21 DIFF_CONTENTS = "diff -Nu '%s' '%s'"
22 @@ -33,7 +34,7 @@
23 SCRATCH_DIR = None
24 while SCRATCH_DIR is None:
25 try:
26 - mydir = portage.const.EPREFIX+"/var/tmp/dispatch-conf."
27 + mydir = EPREFIX+"/var/tmp/dispatch-conf."
28 for x in range(0,8):
29 if int(random() * 3) == 0:
30 mydir += chr(int(65+random()*26.0))
31 @@ -82,7 +83,7 @@
32 #
33
34 for path in config_paths.split ():
35 - path = portage.normalize_path(portage.const.EPREFIX + path)
36 + path = portage.normalize_path(EPREFIX + path)
37 try:
38 mymode = os.stat(path).st_mode
39 except OSError: