summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-03 20:49:12 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-03 20:49:12 +0000
commit83fb56baf15355e41e939157a46bad5297ec5b95 (patch)
treea0f85153f9102ea12b00e7977ecfb19adbb15362 /sys-devel
parentforward port gcc-config RDEPEND update (diff)
downloadgentoo-2-83fb56baf15355e41e939157a46bad5297ec5b95.tar.gz
gentoo-2-83fb56baf15355e41e939157a46bad5297ec5b95.tar.bz2
gentoo-2-83fb56baf15355e41e939157a46bad5297ec5b95.zip
handle the case where all we got was a CTARGET and no version
(Portage version: 2.0.53)
Diffstat (limited to 'sys-devel')
-rwxr-xr-xsys-devel/gcc-config/files/gcc-config-1.3.1211
1 files changed, 10 insertions, 1 deletions
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 : "")
}'
}