aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2007-12-03 22:59:31 +0000
committerAndrew Gaffney <agaffney@gentoo.org>2007-12-03 22:59:31 +0000
commit212053c68d2b9547861efa49a60161b581a56856 (patch)
tree0601843209f43b35e1b62ef13fdb6ce69c4a2c74
parentadd in metadata_overlay for faster dep calculation (diff)
downloadgli-212053c68d2b9547861efa49a60161b581a56856.tar.gz
gli-212053c68d2b9547861efa49a60161b581a56856.tar.bz2
gli-212053c68d2b9547861efa49a60161b581a56856.zip
force livecd and bindist USE
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1882 f8877401-5920-0410-a79b-8e2d7e04ca0d
-rw-r--r--ChangeLog3
-rw-r--r--src/GLIPortage.py8
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index c4c5033..ce7abb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 2005-2007 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 03 Dec 2007; Andrew Gaffney <agaffney@gentoo.org> src/GLIPortage.py:
+ force livecd and bindist USE
+
03 Dec 2007; Andrew Gaffney <agaffney@gentoo.org>
src/GLIArchitectureTemplate.py:
add in metadata_overlay for faster dep calculation
diff --git a/src/GLIPortage.py b/src/GLIPortage.py
index 29d20bc..29b8fd4 100644
--- a/src/GLIPortage.py
+++ b/src/GLIPortage.py
@@ -38,7 +38,7 @@ class GLIPortage(object):
# The runtimedeps.py script generates a package install order that is *very* different from emerge itself
# tmppkglist = GLIUtility.spawn("python ../../runtimedeps.py " + self._chroot_dir + " " + pkg, return_output=True)[1].strip().split("\n")
tmppkglist = []
- for tmppkg in GLIUtility.spawn("emerge -p " + pkg + r" 2>/dev/null | grep -e '^\[[a-z]' | cut -d ']' -f2 | sed -e 's:^ ::' -e 's: .\+$::'", chroot=self._chroot_dir, return_output=True)[1].strip().split("\n"):
+ for tmppkg in GLIUtility.spawn("env USE='livecd bindist' emerge -p " + pkg + r" 2>/dev/null | grep -e '^\[[a-z]' | cut -d ']' -f2 | sed -e 's:^ ::' -e 's: .\+$::'", chroot=self._chroot_dir, return_output=True)[1].strip().split("\n"):
if self._debug: self._logger.log("get_deps(): looking at " + tmppkg)
if self.get_best_version_vdb("=" + tmppkg):
if self._debug: self._logger.log("get_deps(): package " + tmppkg + " in host vdb...adding to tmppkglist")
@@ -218,12 +218,12 @@ class GLIPortage(object):
# Run pkg_setup
if self._debug: self._logger.log("DEBUG: copy_pkg_to_chroot(): running pkg_setup for " + package)
- if not GLIUtility.exitsuccess(GLIUtility.spawn("env " + root_cmd + " PORTAGE_TMPDIR=" + portage_tmpdir + " FEATURES=noauto ebuild " + vdb_dir + package + "/*.ebuild setup", chroot=tmp_chroot_dir, logfile=self._compile_logfile, append_log=True)):
+ if not GLIUtility.exitsuccess(GLIUtility.spawn("env " + root_cmd + " PORTAGE_TMPDIR=" + portage_tmpdir + " FEATURES=noauto USE='livecd bindist' ebuild " + vdb_dir + package + "/*.ebuild setup", chroot=tmp_chroot_dir, logfile=self._compile_logfile, append_log=True)):
raise GLIException("CopyPackageToChrootError", 'fatal', 'copy_pkg_to_chroot', "Could not execute pkg_setup for " + package)
# Run pkg_preinst
if self._debug: self._logger.log("DEBUG: copy_pkg_to_chroot(): running preinst for " + package)
- if not GLIUtility.exitsuccess(GLIUtility.spawn("env " + root_cmd + " PORTAGE_TMPDIR=" + portage_tmpdir + " FEATURES=noauto ebuild " + vdb_dir + package + "/*.ebuild preinst", chroot=tmp_chroot_dir, logfile=self._compile_logfile, append_log=True)):
+ if not GLIUtility.exitsuccess(GLIUtility.spawn("env " + root_cmd + " PORTAGE_TMPDIR=" + portage_tmpdir + " FEATURES=noauto USE='livecd bindist' ebuild " + vdb_dir + package + "/*.ebuild preinst", chroot=tmp_chroot_dir, logfile=self._compile_logfile, append_log=True)):
raise GLIException("CopyPackageToChrootError", 'fatal', 'copy_pkg_to_chroot', "Could not execute preinst for " + package)
# Copy files from image_dir to chroot
@@ -237,7 +237,7 @@ class GLIPortage(object):
# Run pkg_postinst
if self._debug: self._logger.log("DEBUG: copy_pkg_to_chroot(): running postinst for " + package)
- if not GLIUtility.exitsuccess(GLIUtility.spawn("env " + root_cmd + " PORTAGE_TMPDIR=" + portage_tmpdir + " FEATURES=noauto ebuild " + vdb_dir + package + "/*.ebuild postinst", chroot=tmp_chroot_dir, logfile=self._compile_logfile, append_log=True)):
+ if not GLIUtility.exitsuccess(GLIUtility.spawn("env " + root_cmd + " PORTAGE_TMPDIR=" + portage_tmpdir + " FEATURES=noauto USE='livecd bindist' ebuild " + vdb_dir + package + "/*.ebuild postinst", chroot=tmp_chroot_dir, logfile=self._compile_logfile, append_log=True)):
raise GLIException("CopyPackageToChrootError", 'fatal', 'copy_pkg_to_chroot', "Could not execute postinst for " + package)
# Remove image_dir