From: Eric Edgar Date: Thu, 7 Jul 2005 21:35:00 +0000 (+0000) Subject: Fix FETCH code so it will run for Pylon X-Git-Tag: CATALYST_2_0_6_916~684 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eadab3c31c4cb42efd36ec3103097626d767b2e3;p=catalyst.git Fix FETCH code so it will run for Pylon git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@771 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index 8e889bbb..a3b13727 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.302 2005/07/07 19:57:17 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.303 2005/07/07 21:35:00 rocket Exp $ + + 07 Jul 2005; Eric Edgar modules/catalyst_support.py, + targets/support/chroot-functions.sh: + Fix FETCH code so it will run for Pylon 07 Jul 2005; Chris Gianelloni modules/grp_target.py, targets/grp/grp-chroot.sh: diff --git a/modules/catalyst_support.py b/modules/catalyst_support.py index 02a0ca5e..1a7e1916 100644 --- a/modules/catalyst_support.py +++ b/modules/catalyst_support.py @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.50 2005/07/06 18:28:13 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.51 2005/07/07 21:35:00 rocket Exp $ import sys,string,os,types,re,signal,traceback,md5,time selinux_capable = False @@ -106,6 +106,7 @@ valid_config_file_values.append("CCACHE") valid_config_file_values.append("DISTCC") valid_config_file_values.append("ENVSCRIPT") valid_config_file_values.append("AUTORESUME") +valid_config_file_values.append("FETCH") valid_config_file_values.append("CLEAR_AUTORESUME") valid_config_file_values.append("options") valid_config_file_values.append("DEBUG") diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index 9ea83bb5..0b74fecd 100755 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -81,12 +81,6 @@ setup_myemergeopts(){ export clst_myemergeopts="--usepkg --buildpkg --newuse" export bootstrap_opts="-r" fi - - if [ -n "${clst_FETCH}" ] - then - export clst_myemergeopts="${clst_myemergeopts} -f" - export bootstrap_opts="-f" - fi } @@ -169,7 +163,15 @@ run_emerge() { read -s -n 1 fi fi + echo "emerge ${clst_myemergeopts} $@" || exit 1 + + if [ -n "${clst_FETCH}" ] + then + export bootstrap_opts="-f" + emerge ${clst_myemergeopts} -f $@ || exit 1 + fi + emerge ${clst_myemergeopts} $@ || exit 1 }