From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 85FD613877A for ; Mon, 4 Aug 2014 23:45:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BFE60E097B; Mon, 4 Aug 2014 23:45:15 +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 5FEB4E097B for ; Mon, 4 Aug 2014 23:45:15 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 43B10340241 for ; Mon, 4 Aug 2014 23:45:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 0AA881881E for ; Mon, 4 Aug 2014 23:45:12 +0000 (UTC) From: "Pavlos Ratis" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pavlos Ratis" Message-ID: <1305752557.42c7aba9fcb5d8f28d1b778812f6eec6c352012d.dastergon@gentoo> Subject: [gentoo-commits] proj/security:master commit in: bin/ X-VCS-Repository: proj/security X-VCS-Files: bin/target X-VCS-Directories: bin/ X-VCS-Committer: dastergon X-VCS-Committer-Name: Pavlos Ratis X-VCS-Revision: 42c7aba9fcb5d8f28d1b778812f6eec6c352012d X-VCS-Branch: master Date: Mon, 4 Aug 2014 23:45:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 68820625-665d-4a02-ac5f-f909b672d0f7 X-Archives-Hash: 1be9c161cea8cb3c02e56ce71254bab9 commit: 42c7aba9fcb5d8f28d1b778812f6eec6c352012d Author: Alex Legler gentoo org> AuthorDate: Wed May 18 21:02:37 2011 +0000 Commit: Pavlos Ratis gentoo org> CommitDate: Wed May 18 21:02:37 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/security.git;a=commit;h=42c7aba9 filter -* keywords svn path=/; revision=2229 --- bin/target | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/target b/bin/target index 22001dd..701886c 100755 --- a/bin/target +++ b/bin/target @@ -110,7 +110,7 @@ module GenSec already_stable = [] end - need_stable = metadata[:stable_arches] - NOSTABLE_ARCHES + need_stable = filter_negative_keywords(metadata[:stable_arches] - NOSTABLE_ARCHES) i("Arches this package was ever stable on: #{$ui.color(need_stable.join(', '), :red, :bold)}") unless $opts[:quiet] @@ -130,7 +130,7 @@ module GenSec msg += "=%s-%s\n" % [metadata[:package], best_version] end - msg += "Target keywords : \"%s\"\n" % metadata[:stable_arches].join(' ') + msg += "Target keywords : \"%s\"\n" % need_stable.join(' ') if already_stable.length > 0 and not $opts[:prestable] msg += "Already stable : \"%s\"\n" % (already_stable.join(' ')) @@ -335,7 +335,11 @@ module GenSec end def filter_unstable(ary) - ary.reject {|item| item =~ /^~/} + ary.reject {|item| item =~ /^[~-]/} + end + + def filter_negative_keywords(ary) + ary.reject {|item| item =~ /^[-]/} end end end