From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SIrhX-00046M-Kd for garchives@archives.gentoo.org; Sat, 14 Apr 2012 01:22:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9032E0C8D; Sat, 14 Apr 2012 01:22:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 79A7CE0C8D for ; Sat, 14 Apr 2012 01:22:42 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D84FA1B4034 for ; Sat, 14 Apr 2012 01:22:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 9AC5BE542C for ; Sat, 14 Apr 2012 01:22:40 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1333663349.0e573d1ab64ae999ef5ef5eaefbec537643705d8.vapier@gentoo> Subject: [gentoo-commits] proj/gcc-config:master commit in: / X-VCS-Repository: proj/gcc-config X-VCS-Files: gcc-config X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 0e573d1ab64ae999ef5ef5eaefbec537643705d8 X-VCS-Branch: master Date: Sat, 14 Apr 2012 01:22:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: df2c904a-0fe1-453b-8b40-7be8fa0e8f9b X-Archives-Hash: 0248296041cf3b06bc09d5312878402d commit: 0e573d1ab64ae999ef5ef5eaefbec537643705d8 Author: Mike Frysinger gentoo org> AuthorDate: Thu Apr 5 22:02:29 2012 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Apr 5 22:02:29 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gcc-config.gi= t;a=3Dcommit;h=3D0e573d1a gcc-config: slightly optimize env setup when switching profiles Since this code already sources the entire env.d file, there's no point in manually loading a single variable out of it. Signed-off-by: Mike Frysinger gentoo.org> --- gcc-config | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gcc-config b/gcc-config index 6f86179..dabae91 100755 --- a/gcc-config +++ b/gcc-config @@ -329,11 +329,11 @@ switch_profile() { if egrep -q '^(PATH|ROOTPATH)=3D' "${GCC_ENV_D}/${CC_COMP}" ; then convert_profile_paths "${GCC_ENV_D}/${CC_COMP}" || return 1 fi - source_var GCC_PATH "${GCC_ENV_D}/${CC_COMP}" =20 # Setup things properly again for this profile unset GCC_SPECS LDPATH source "${GCC_ENV_D}/${CC_COMP}" + # Ignore active profile errors here since we're switching away OLD_CC_COMP=3D$(get_current_profile 2>/dev/null) =20