Fix cross-prefix bugs, and test.
authorZac Medico <zmedico@gentoo.org>
Wed, 19 Jun 2013 23:41:12 +0000 (16:41 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 19 Jun 2013 23:41:12 +0000 (16:41 -0700)
commit40400439b0c48fbc822b622c1758be3587f4a1f1
treeb96e9ec9b74ca036e823638ee441412b5073ad11
parentf74f301e869b3cac9060a1f35b89df673805c08a
Fix cross-prefix bugs, and test.

* Fix create_trees to correctly handle the case where ROOT=/ for two
  different EPREFIX offsets.
* For best/has_version, handle the case where ROOT=/ for bug prefixes,
  though each has a different EPREFIX offset.
* Use portage.const.EPREFIX for default EMERGE_LOG_DIR offset, which
  is analogous to existing un-prefixed behavior.
* Use portage.const.EPREFIX for default PORTAGE_CONFIGROOT, which is
  analogous to existing un-prefixed behavior.
* Add cross-prefix cases to emerge tests, including chpathtool for
  binpkgs.
bin/phase-helpers.sh
pym/_emerge/actions.py
pym/portage/__init__.py
pym/portage/package/ebuild/_config/LocationsManager.py
pym/portage/tests/emerge/test_simple.py