summaryrefslogtreecommitdiffstats
path: root/bin/quickpkg
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-07 06:38:44 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-07 06:38:44 +0000
commitd5b351746e2d2b6c9e60c06fa1659aded6cde5ce (patch)
treeba0bd0b50fa9a1d1ef7bf32ce93ff08360ca3b10 /bin/quickpkg
parent36673e3b9bfbf6b6c2618a99ca693538bdb48d13 (diff)
downloadportage-d5b351746e2d2b6c9e60c06fa1659aded6cde5ce.tar.gz
portage-d5b351746e2d2b6c9e60c06fa1659aded6cde5ce.tar.bz2
portage-d5b351746e2d2b6c9e60c06fa1659aded6cde5ce.zip
Condense a few portageq calls into one.
svn path=/main/trunk/; revision=4422
Diffstat (limited to 'bin/quickpkg')
-rwxr-xr-xbin/quickpkg10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index f90e73089..92c419929 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -17,11 +17,12 @@ 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)
+export PKGDIR PORTAGE_TMPDIR ROOT
+
# Make sure the xpak module is in PYTHONPATH
-export PYTHONPATH=$(portageq envvar PORTAGE_PYM_PATH)
+export PYTHONPATH=${PORTAGE_PYM_PATH}
export PORTAGE_DB=$(portageq vdb_path)
-export ROOT=$(portageq envvar ROOT)
-export ROOT=${ROOT%/}/
if [ -z "$1" ] || [ $1 == "-h" ] || [ $1 == "--help" ] ; then
echo "QUICKPKG ver 1.2"
@@ -42,9 +43,6 @@ if [ -z "$1" ] || [ $1 == "-h" ] || [ $1 == "--help" ] ; then
exit 1
fi
-export PKGDIR=$(portageq envvar PKGDIR)
-export PORTAGE_TMPDIR=$(portageq envvar PORTAGE_TMPDIR)
-
source /sbin/functions.sh
# here we make a package given a little info