# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 10 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+ modules/generic_stage_target.py, targets/grp/grp-chroot.sh,
+ targets/support/chroot-functions.sh:
+ Fix some spacing on the -* warning, revert Andrew's last change, since it
+ didn't do anything, and clean up the GRP chroot code so it works smarter and
+ set clst_FETCH when clst_grp_type is something other than pkgset.
+
10 Mar 2008; Andrew Gaffney <agaffney@gentoo.org>
targets/support/chroot-functions.sh:
Don't set --usepkg and --buildpkg when fetching
myf.write('USE="'+string.join(myusevars)+'"\n')
if '-*' in myusevars:
print "\nWarning!!! "
- print "\tThe use of -* in " + self.settings["spec_prefix"] + "/use will cause portage to ignore\n"
+ print "\tThe use of -* in "+self.settings["spec_prefix"]+\
+ "/use will cause portage to ignore"
print "\tpackage.use in the profile and portage_confdir. You've been warned!"
""" Setup the portage overlay """
## START BUILD
setup_pkgmgr
-if [ "${clst_grp_type}" = "pkgset" ]
-then
- export PKGDIR="/tmp/grp/${clst_grp_target}"
+export DISTDIR="/tmp/grp/${clst_grp_target}"
+export PKGDIR="/tmp/grp/${clst_grp_target}"
- run_merge --usepkg --buildpkg --noreplace --newuse ${clst_myemergeopts} \
- ${clst_grp_packages} || exit 1
-else
- DISTDIR="/tmp/grp/${clst_grp_target}" run_merge --fetchonly \
- ${clst_grp_packages} || exit 1
+if [ "${clst_grp_type}" != "pkgset" ]
+then
+ export clst_FETCH=1
fi
+
+run_merge --noreplace ${clst_grp_packages} || exit 1
then
export bootstrap_opts="-f"
export clst_myemergeopts="${clst_myemergeopts} -f"
- elif [ -n "${clst_PKGCACHE}" -a -z "${clst_FETCH}" ]
+ elif [ -n "${clst_PKGCACHE}" ]
then
export clst_myemergeopts="${clst_myemergeopts} --usepkg --buildpkg --newuse"
export bootstrap_opts="-r"