Merge remote branch 'overlays-gentoo-org/master' into prefix
authorFabian Groffen <grobian@gentoo.org>
Sat, 4 Sep 2010 17:29:22 +0000 (19:29 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sat, 4 Sep 2010 17:29:22 +0000 (19:29 +0200)
Dropped EPREFIX from vars that are used with target_root accordingly.

Conflicts:
pym/portage/const.py

1  2 
pym/portage/const.py

index 9b64d312b4140ad86985b8e07907a8d069a86db1,c1ae458be9aba06a50c84c11425350eb07105a78..dcae9b58e857aad561446b449104682e71fe3297
@@@ -1,20 -1,9 +1,20 @@@
  # portage: Constants
- # Copyright 1998-2009 Gentoo Foundation
+ # Copyright 1998-2010 Gentoo Foundation
  # Distributed under the terms of the GNU General Public License v2
  
 +# ===========================================================================
 +# autotool supplied constants.
 +# ===========================================================================
 +from portage.const_autotool import *
 +
  import os
  
 +# save the original prefix
 +BPREFIX = EPREFIX
 +# pick up EPREFIX from the environment if set
 +if "EPREFIX" in os.environ:
 +      EPREFIX = os.path.normpath(os.environ["EPREFIX"])
 +
  # ===========================================================================
  # START OF CONSTANTS -- START OF CONSTANTS -- START OF CONSTANTS -- START OF
  # ===========================================================================
@@@ -62,12 -48,12 +61,12 @@@ PRIVATE_PATH             = "var/lib/por
  WORLD_FILE               = PRIVATE_PATH + "/world"
  WORLD_SETS_FILE          = PRIVATE_PATH + "/world_sets"
  CONFIG_MEMORY_FILE       = PRIVATE_PATH + "/config"
- NEWS_LIB_PATH            = EPREFIX_LSTRIP + "/" + "var/lib/gentoo"
+ NEWS_LIB_PATH            = "var/lib/gentoo"
  
  # these variables are not used with target_root or config_root
 -DEPCACHE_PATH            = "/var/cache/edb/dep"
 -GLOBAL_CONFIG_PATH       = "/usr/share/portage/config"
 -PORTAGE_BASE_PATH        = os.path.join(os.sep, os.sep.join(__file__.split(os.sep)[:-3]))
 +DEPCACHE_PATH            = EPREFIX + "/var/cache/edb/dep"
 +GLOBAL_CONFIG_PATH       = DATADIR + "/portage/config"
 +PORTAGE_BASE_PATH        = PORTAGE_BASE
  PORTAGE_BIN_PATH         = PORTAGE_BASE_PATH + "/bin"
  PORTAGE_PYM_PATH         = PORTAGE_BASE_PATH + "/pym"
  LOCALE_DATA_PATH         = PORTAGE_BASE_PATH + "/locale"  # FIXME: not used