Fix euse to always prefer /etc/portage/make.conf over /etc/make.conf. Bug 434672
authorPaul Varner <fuzzyray@gentoo.org>
Wed, 26 Sep 2012 06:12:13 +0000 (01:12 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Wed, 26 Sep 2012 06:12:13 +0000 (01:12 -0500)
bin/euse

index 3b7556f5011632ecbe6f6734cc2079471f6fc2c3..1279a2c6efbec5245e9dd97a7f7088f1e99df31d 100755 (executable)
--- 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"