summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-09-09 12:38:25 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-09-09 12:38:25 +0000
commit13e090d785004b05e563b3b1262923b0fddf318e (patch)
tree0ffc7251ee8f28fd805b22b8cfea5f501b8b5356 /eclass/java-pkg.eclass
parentproper gnuconfig/uclibc lovin (diff)
downloadhistorical-13e090d785004b05e563b3b1262923b0fddf318e.tar.gz
historical-13e090d785004b05e563b3b1262923b0fddf318e.tar.bz2
historical-13e090d785004b05e563b3b1262923b0fddf318e.zip
java-pkg_do_write_: properly detect when variables are empty
Diffstat (limited to 'eclass/java-pkg.eclass')
-rw-r--r--eclass/java-pkg.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/java-pkg.eclass b/eclass/java-pkg.eclass
index 0c362ef174a5..89d5deb1fea0 100644
--- a/eclass/java-pkg.eclass
+++ b/eclass/java-pkg.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.11 2004/09/09 12:30:00 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.12 2004/09/09 12:38:25 axxo Exp $
inherit base
ECLASS=java-pkg
@@ -47,10 +47,10 @@ java-pkg_do_init_() {
java-pkg_do_write_() {
# Create package.env
echo "DESCRIPTION=${DESCRIPTION}" > "${package_env}"
- if [ -n ${cp_pkg} ]; then
+ if [ -n "${cp_pkg}" ]; then
echo "CLASSPATH=${cp_prepend}:${cp_pkg}:${cp_append}" >> "${package_env}"
fi
- if [ -n ${lp_pkg} ]; then
+ if [ -n "${lp_pkg}" ]; then
echo "LIBRARY_PATH=${lp_prepend}:${lp_pkg}:${lp_append}" >> "${package_env}"
fi
}