On 02/03/2013 12:07 PM, heroxbd wrote:
self.eroot = self.target_root.rstrip(os.sep) + self.eprefix + os.sep
wouldn't be this more robust
import os
os.path.normpath('/some/' + os.path.sep + '/stuff/') + os.path.sep
'/some/stuff/'
--
Michael Weber
Gentoo Developer
web: https://xmw.de/
On 02/04/2013 03:01 AM, Michael Weber wrote:
On 02/03/2013 12:07 PM, heroxbd wrote:
self.eroot = self.target_root.rstrip(os.sep) + self.eprefix + os.sep
wouldn't be this more robust
import os
os.path.normpath('/some/' + os.path.sep + '/stuff/') + os.path.sep
'/some/stuff/'
In this
Dear All,
I am a bit confused with the meaning of EROOT.
In a usual Prefix installation, ROOT=/ and EPREFIX=/opt/gentoo,
EROOT=/opt/gentoo/.
Naturally, EROOT=${EPREFIX}${ROOT}, right?
But for example in ./python.eclass
EROOT=${ROOT%/}${EPREFIX}/
and in LocationsManager.py of portage
On 02/03/2013 03:07 AM, heroxbd wrote:
Dear All,
I am a bit confused with the meaning of EROOT.
In a usual Prefix installation, ROOT=/ and EPREFIX=/opt/gentoo,
EROOT=/opt/gentoo/.
Naturally, EROOT=${EPREFIX}${ROOT}, right?
No, it's EROOT=${ROOT%/}${EPREFIX}/
But for example in