-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from _emerge.EbuildPhase import EbuildPhase
import codecs
import logging
from portage.output import colorize
+from portage.package.ebuild.doebuild import _prepare_env_file
class Binpkg(CompositeTask):
finally:
f.close()
+ rval = _prepare_env_file(self.settings)
+ if rval != os.EX_OK:
+ self._current_phase = None
+ self.returncode = rval
+ self._unlock_builddir()
+ self.wait()
+ return
+
# This gives bashrc users an opportunity to do various things
# such as remove binary packages after they're installed.
settings = self.settings