From: Fabian Groffen Date: Wed, 26 Aug 2009 09:50:07 +0000 (-0000) Subject: import EPREFIX from portage.const, bug #282581 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4c3b9166e77c15b08285ef4f2c274ae7c60f0d01;p=portage.git import EPREFIX from portage.const, bug #282581 svn path=/main/branches/prefix/; revision=14157 --- diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 0fce21fce..bdc5c82ec 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -22,6 +22,7 @@ import atexit, commands, re, shutil, stat, sys from portage import os from portage import dispatch_conf from portage.process import find_binary +from portage.const import EPREFIX FIND_EXTANT_CONFIGS = "find '%s' %s -name '._cfg????_%s' ! -name '.*~' ! -iname '.*.bak' -print" DIFF_CONTENTS = "diff -Nu '%s' '%s'" @@ -33,7 +34,7 @@ oldmask = os.umask(0077) SCRATCH_DIR = None while SCRATCH_DIR is None: try: - mydir = portage.const.EPREFIX+"/var/tmp/dispatch-conf." + mydir = EPREFIX+"/var/tmp/dispatch-conf." for x in range(0,8): if int(random() * 3) == 0: mydir += chr(int(65+random()*26.0)) @@ -82,7 +83,7 @@ class dispatch: # for path in config_paths.split (): - path = portage.normalize_path(portage.const.EPREFIX + path) + path = portage.normalize_path(EPREFIX + path) try: mymode = os.stat(path).st_mode except OSError: