From 83fb56baf15355e41e939157a46bad5297ec5b95 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 3 Dec 2005 20:49:12 +0000 Subject: handle the case where all we got was a CTARGET and no version (Portage version: 2.0.53) --- sys-devel/gcc-config/files/gcc-config-1.3.12 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sys-devel') diff --git a/sys-devel/gcc-config/files/gcc-config-1.3.12 b/sys-devel/gcc-config/files/gcc-config-1.3.12 index 3105577d8e15..fd1cbec0ddcb 100755 --- a/sys-devel/gcc-config/files/gcc-config-1.3.12 +++ b/sys-devel/gcc-config/files/gcc-config-1.3.12 @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.12,v 1.9 2005/11/19 05:23:08 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.12,v 1.10 2005/12/03 20:49:12 vapier Exp $ trap ":" INT QUIT TSTP @@ -476,6 +476,15 @@ split_gcc_ver() { if (state == 1) targ = pushit(targ, $i) } + + if (targ == "") { + if (ver == "") { + ver=spec + spec="" + } + targ=ver + ver="" + } print targ " " ver (spec != "" ? " " spec : "") }' } -- cgit v1.2.3-65-gdbad