summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-01 03:46:46 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-01 03:46:46 +0000
commit299fd03aa91b8f7b4af4b62f6e9f42a9ff8d96d1 (patch)
tree55e076f29e4e64cd3a8d21c7a63837c707a8b90c /sys-devel/binutils-config/files
parentarm love (diff)
downloadgentoo-2-299fd03aa91b8f7b4af4b62f6e9f42a9ff8d96d1.tar.gz
gentoo-2-299fd03aa91b8f7b4af4b62f6e9f42a9ff8d96d1.tar.bz2
gentoo-2-299fd03aa91b8f7b4af4b62f6e9f42a9ff8d96d1.zip
fix passing version number when it is large and contains no dots (aka version 060130)
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'sys-devel/binutils-config/files')
-rwxr-xr-xsys-devel/binutils-config/files/binutils-config-1.88
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-devel/binutils-config/files/binutils-config-1.8 b/sys-devel/binutils-config/files/binutils-config-1.8
index 904264a9e9f0..588e9dda1b6b 100755
--- a/sys-devel/binutils-config/files/binutils-config-1.8
+++ b/sys-devel/binutils-config/files/binutils-config-1.8
@@ -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/binutils-config/files/binutils-config-1.8,v 1.10 2006/01/13 11:16:42 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.11 2006/02/01 03:46:46 vapier Exp $
# Format of /etc/env.d/binutils/:
# config-TARGET: CURRENT=version for TARGET
@@ -304,7 +304,7 @@ while [[ $# -gt 0 ]] ; do
exit 0
;;
-v|--version)
- cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.10 2006/01/13 11:16:42 vapier Exp $"
+ cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.11 2006/02/01 03:46:46 vapier Exp $"
cvsver=${cvsver##*binutils-config-}
echo "binutils-config-${cvsver%%,v *}"
exit 0
@@ -345,7 +345,9 @@ while [[ $# -gt 0 ]] ; do
fi
((++i))
done
- else
+ fi
+
+ if [[ -z ${PROFILE} ]] ; then
# User gave us a full HOST-ver
x=${x##*/}
if [[ ! -f ${ENV_D}/${x} ]] && [[ ! -f ${ENV_D}/config-${x} ]] ; then