aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2012-09-26 01:12:13 -0500
committerPaul Varner <fuzzyray@gentoo.org>2012-09-26 01:12:13 -0500
commit2ab755734b81867c6139278c65a1765b1b642c76 (patch)
tree7ac5e4e4df669fdde11fc9c319ea1415b0c1f028
parentRemove check of isatty when guessing color. (diff)
downloadgentoolkit-2ab755734b81867c6139278c65a1765b1b642c76.tar.gz
gentoolkit-2ab755734b81867c6139278c65a1765b1b642c76.tar.bz2
gentoolkit-2ab755734b81867c6139278c65a1765b1b642c76.zip
Fix euse to always prefer /etc/portage/make.conf over /etc/make.conf. Bug 434672
-rwxr-xr-xbin/euse8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/euse b/bin/euse
index 3b7556f..1279a2c 100755
--- a/bin/euse
+++ b/bin/euse
@@ -35,11 +35,9 @@ warn() {
echo -e "WARNING: ${*}"
}
-# /etc/make.conf can now exist in /etc/portage/make.conf, prefer it over
-# /etc/make.conf for changes. Since this will only be used for modifying
-# the USE variable, we need to make sure the one we pick is the one with
-# the USE variable defined.
-if [[ -n $(grep '^USE="' "${ETC}/portage/make.conf" 2>/dev/null) ]]; then
+# /etc/make.conf now exists as /etc/portage/make.conf by default, prefer
+# it over /etc/make.conf for changes.
+if [[ -e "${ETC}/portage/make.conf" ]]; then
MAKE_CONF_PATH="${ETC}/portage/make.conf"
elif [[ -e "${ETC}/make.conf" ]]; then
MAKE_CONF_PATH="${ETC}/make.conf"