[entropy.client.interfaces.trigger] fix issue that caused ebuild pkg_setup to not be called

This commit is contained in:
Fabio Erculiani
2009-09-20 08:41:31 +02:00
parent eab2e33796
commit c0d1a548a5

View File

@@ -625,7 +625,7 @@ class Trigger:
def __ebuild_setup_phase(self, ebuild, portage_atom):
rc = 0
env_file = self.pkgdata['unpackdir']+"/portage/"+portage_atom+"/temp/environment"
if not os.access(env_file, os.R_OK) and os.path.isfile(env_file):
if not (os.access(env_file, os.R_OK) and os.path.isfile(env_file)):
rc = self.Spm.execute_package_phase(portage_atom, ebuild,
"setup",
work_dir = self.pkgdata['unpackdir'],