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 1RxOwC-0003pz-EP for garchives@archives.gentoo.org; Tue, 14 Feb 2012 20:25:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99EA8E0AE8; Tue, 14 Feb 2012 20:24:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 69B95E0AE3 for ; Tue, 14 Feb 2012 20:24:53 +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 CDF8E1B401D for ; Tue, 14 Feb 2012 20:24:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id AC4D1E5408 for ; Tue, 14 Feb 2012 20:24:50 +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: <1329249048.6718fc4763bec5c385fa8c112b32fd4d94106c6b.vapier@gentoo> Subject: [gentoo-commits] proj/crossdev:master commit in: / X-VCS-Repository: proj/crossdev X-VCS-Files: crossdev X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 6718fc4763bec5c385fa8c112b32fd4d94106c6b X-VCS-Branch: master Date: Tue, 14 Feb 2012 20:24:50 +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: 513d9d6a-63b3-4fdf-978d-c4e6febca061 X-Archives-Hash: a2777454b928df06980fe2a13e0394c8 commit: 6718fc4763bec5c385fa8c112b32fd4d94106c6b Author: Mike Frysinger gentoo org> AuthorDate: Tue Feb 14 19:47:23 2012 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Feb 14 19:50:48 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/crossdev.git;= a=3Dcommit;h=3D6718fc47 crossdev: use `has` for verbose/pretend flag detection Signed-off-by: Mike Frysinger gentoo.org> --- crossdev | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crossdev b/crossdev index ed625ec..a9447f5 100755 --- a/crossdev +++ b/crossdev @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 =20 CROSSDEV_VER=3D"@CDEVPV@" @@ -867,7 +867,7 @@ doemerge() { =20 set_use $1 ${USE} $( [[ ${MULTILIB_USE} =3D=3D "no" ]] && echo - )multi= lib =20 - if [[ ${UOPTS/-v} !=3D ${UOPTS} || ${UOPTS/-p} !=3D ${UOPTS} ]] ; then + if has -v ${UOPTS} || has -p ${UOPTS} || has -vp ${UOPTS} || has -pv ${= UOPTS} ; then emerge cross-${CTARGET}/$1 ${EOPTS} \ 2>&1 | tee "${logfile}" else