summaryrefslogtreecommitdiffstats
path: root/bin/quickpkg
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-07 07:01:09 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-07 07:01:09 +0000
commit5a10c3d351dbd92668d88afa9bd4bac24490b45d (patch)
tree1804e156c22c9d1ccb5d5d5ea6ab450728fd094b /bin/quickpkg
parentd5b351746e2d2b6c9e60c06fa1659aded6cde5ce (diff)
downloadportage-5a10c3d351dbd92668d88afa9bd4bac24490b45d.tar.gz
portage-5a10c3d351dbd92668d88afa9bd4bac24490b45d.tar.bz2
portage-5a10c3d351dbd92668d88afa9bd4bac24490b45d.zip
Substitute isolated-functions.sh in place of /sbin/functions.sh.
svn path=/main/trunk/; revision=4423
Diffstat (limited to 'bin/quickpkg')
-rwxr-xr-xbin/quickpkg13
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index 92c419929..e6bf9167b 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -17,7 +17,8 @@ fi
# We need to ensure a sane umask for the packages that will be created.
umask 022
-eval $(portageq envvar -v PKGDIR PORTAGE_PYM_PATH PORTAGE_TMPDIR ROOT)
+eval $(portageq envvar -v NOCOLOR PKGDIR PORTAGE_BIN_PATH PORTAGE_NICENESS \
+ PORTAGE_PYM_PATH PORTAGE_TMPDIR ROOT)
export PKGDIR PORTAGE_TMPDIR ROOT
# Make sure the xpak module is in PYTHONPATH
@@ -43,7 +44,15 @@ if [ -z "$1" ] || [ $1 == "-h" ] || [ $1 == "--help" ] ; then
exit 1
fi
-source /sbin/functions.sh
+source "${PORTAGE_BIN_PATH}/isolated-functions.sh"
+case "${NOCOLOR:-false}" in
+ yes|true)
+ unset_colors
+ ;;
+ no|false)
+ set_colors
+ ;;
+esac
# here we make a package given a little info
# $1 = package-name w/version