portageq: fix root/eroot handling for Prefix
authorFabian Groffen <grobian@gentoo.org>
Sat, 3 Dec 2011 16:47:25 +0000 (17:47 +0100)
committerFabian Groffen <grobian@gentoo.org>
Sat, 3 Dec 2011 16:47:25 +0000 (17:47 +0100)
commit680c4144051d0b72a0066de5dbec2f20e8d0d71b
tree61651ea520818d2873252ec7dc89ae0f4974b3c8
parentd6b379cff421282d6a0dac5f4ea65be40df4175a
portageq: fix root/eroot handling for Prefix

__PORTAGE_TEST_EPREFIX will almost always be empty, hence the code
believes that no offset prefix is in use.  In Prefix, this is always on
the contrary, so when not set, use the hardwired EPREFIX from
portage.const.  This avoids double prefixes seen for the portageq
functions, and hence funcs like has_version always return false.
bin/portageq