Condense a few portageq calls into one.
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Sep 2006 06:38:44 +0000 (06:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Sep 2006 06:38:44 +0000 (06:38 -0000)
svn path=/main/trunk/; revision=4422

bin/quickpkg

index f90e73089f2633435fa84f727f4ace7cdbf85df4..92c419929eb934cf3347029c5448551a965beaef 100755 (executable)
@@ -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