/[gentoo-alt]/trunk/ruby-checker/package.rb
Gentoo

Diff of /trunk/ruby-checker/package.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 861 Revision 862
41 newlist = Array.new # => new list 41 newlist = Array.new # => new list
42 42
43 case operator 43 case operator
44 when '>' 44 when '>'
45 list.each do |v| 45 list.each do |v|
46 v =~ /^#{@category}\/#{name_re}-(.*)$/
47 just_version = EbuildVersion.new($1) # => Split just the version
48 newlist << v if just_version > version 46 newlist << v if v.version > version
49 end 47 end
50 when '>=' 48 when '>='
51 list.each do |v| 49 list.each do |v|
52 v =~ /^#{@category}\/#{name_re}-(.*)$/
53 just_version = EbuildVersion.new($1) # => Split just the version
54 newlist << v if just_version >= version 50 newlist << v if v.version >= version
55 end 51 end
56 when '=' 52 when '='
57 list.each do |v| 53 list.each do |v|
58 v =~ /^#{@category}\/#{name_re}-(.*)$/
59 just_version = EbuildVersion.new($1) # => Split just the version
60 newlist << v if just_version == version 54 newlist << v if v.version == version
61 end 55 end
62 when '<' 56 when '<'
63 list.each do |v| 57 list.each do |v|
64 v =~ /^#{@category}\/#{name_re}-(.*)$/
65 just_version = EbuildVersion.new($1) # => Split just the version
66 newlist << v if just_version < version 58 newlist << v if v.version < version
67 end 59 end
68 when '<=' 60 when '<='
69 list.each do |v| 61 list.each do |v|
70 v =~ /^#{@category}\/#{name_re}-(.*)$/
71 just_version = EbuildVersion.new($1) # => Split just the version
72 newlist << v if just_version <= version 62 newlist << v if v.version <= version
73 end 63 end
74 when '~' 64 when '~'
75 list.each do |v| 65 list.each do |v|
76 v =~ /^#{@category}\/#{name_re}-(.*)$/
77 just_version = EbuildVersion.new($1) # => Split just the version
78 newlist << v if just_version.isRevision(version) 66 newlist << v if v.version.isRevision(version)
79 end 67 end
80 end 68 end
81 69
82 unless mask # =< If mask you must prune the list 70 unless mask # =< If mask you must prune the list
83 return newlist 71 return newlist

Legend:
Removed from v.861  
changed lines
  Added in v.862

  ViewVC Help
Powered by ViewVC 1.1.20