diff options
author | 2011-05-18 21:02:37 +0000 | |
---|---|---|
committer | 2011-05-18 21:02:37 +0000 | |
commit | 42c7aba9fcb5d8f28d1b778812f6eec6c352012d (patch) | |
tree | 1afe61b2591b977368c0b0d6a3f9346fce880323 | |
parent | acutally add the new tool (diff) | |
download | security-42c7aba9fcb5d8f28d1b778812f6eec6c352012d.tar.gz security-42c7aba9fcb5d8f28d1b778812f6eec6c352012d.tar.bz2 security-42c7aba9fcb5d8f28d1b778812f6eec6c352012d.zip |
filter -* keywords
svn path=/; revision=2229
-rwxr-xr-x | bin/target | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |