summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-11-30 06:22:37 +0000
committerMike Frysinger <vapier@gentoo.org>2004-11-30 06:22:37 +0000
commit7b14c0e33b299ef0cdd50d6df90edaa1637a7564 (patch)
tree93776151b1178f83319ad6c436e495112d26d94a /sys-devel/binutils-config
parents390 stable for #71613 (Manifest recommit) (diff)
downloadgentoo-2-7b14c0e33b299ef0cdd50d6df90edaa1637a7564.tar.gz
gentoo-2-7b14c0e33b299ef0cdd50d6df90edaa1637a7564.tar.bz2
gentoo-2-7b14c0e33b299ef0cdd50d6df90edaa1637a7564.zip
dont lookup CHOST if only listing profiles
Diffstat (limited to 'sys-devel/binutils-config')
-rwxr-xr-xsys-devel/binutils-config/files/binutils-config-1.04
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-devel/binutils-config/files/binutils-config-1.0 b/sys-devel/binutils-config/files/binutils-config-1.0
index aae12c6cabd6..397afb756c3c 100755
--- a/sys-devel/binutils-config/files/binutils-config-1.0
+++ b/sys-devel/binutils-config/files/binutils-config-1.0
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.0,v 1.1 2004/11/14 08:50:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.0,v 1.2 2004/11/30 06:22:37 vapier Exp $
# Format of /etc/env.d/binutils/:
# config-TARGET: CURRENT=version for TARGET
@@ -188,7 +188,7 @@ for x in "$@" ; do
esac
done
-HOST="$(portageq envvar CHOST)"
+[ "${DOIT}" != "list_profiles" ] && HOST="$(portageq envvar CHOST)"
[ -z "${PROFILE}" ] && PROFILE="${HOST}"
eval ${DOIT}