From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-742789-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 89D501389FF
	for <garchives@archives.gentoo.org>; Fri, 31 Oct 2014 01:56:57 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E8D67E087F;
	Fri, 31 Oct 2014 01:56:55 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 68B85E087F
	for <gentoo-commits@lists.gentoo.org>; Fri, 31 Oct 2014 01:56:55 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 328483404D9
	for <gentoo-commits@lists.gentoo.org>; Fri, 31 Oct 2014 01:56:54 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id D37A891C2
	for <gentoo-commits@lists.gentoo.org>; Fri, 31 Oct 2014 01:56:52 +0000 (UTC)
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" <vapier@gentoo.org>
Message-ID: <1414718914.56e043405b71288bcb82d032a84a5c4d448c054a.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: 56e043405b71288bcb82d032a84a5c4d448c054a
X-VCS-Branch: master
Date: Fri, 31 Oct 2014 01:56:52 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 15d9725d-84f4-4421-8199-b68fdd833e33
X-Archives-Hash: f3f33eae36293a368aaa37133376970e

commit:     56e043405b71288bcb82d032a84a5c4d448c054a
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 31 01:28:34 2014 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Oct 31 01:28:34 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/crossdev.git;a=commit;h=56e04340

crossdev: mask live versions by default

When users use something like '>=2.24', they don't want to also unmask
the 9999 versions, so add that to package.mask by default.  They can
get that version only if they explicitly request it.

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

---
 crossdev | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/crossdev b/crossdev
index 831ebc6..aa7be29 100755
--- a/crossdev
+++ b/crossdev
@@ -847,6 +847,11 @@ set_keywords() {
 			ver=$(ver_chop_op "${ver}")
 			echo "cross-${CTARGET}/${pkg} -*" >> ${output}
 			echo "${op}cross-${CTARGET}/${pkg}-${ver} * ~* **" >> ${output}
+			if [[ ${ver} != "9999" ]] ; then
+				# Disable live versions unless exactly requested.
+				output=$(_set_portage_file ${pkg} package.mask)
+				echo ">=cross-${CTARGET}/${pkg}-9999" >> ${output}
+			fi
 		else
 			echo "cross-${CTARGET}/${pkg} * ~* **" >> ${output}
 			output=$(_set_portage_file ${pkg} package.mask)