Ticket #666: portage-eix.patch
| File portage-eix.patch, 1.3 kB (added by rainhead, 2 years ago) |
|---|
-
lib/puppet/provider/package/portage.rb
old new 5 5 6 6 has_feature :versionable 7 7 8 commands :emerge => "/usr/bin/emerge", :eix => "/usr/bin/eix" 8 commands :emerge => "/usr/bin/emerge", :eix => "/usr/bin/eix", :update_eix => "/usr/bin/update-eix" 9 9 10 10 defaultfor :operatingsystem => :gentoo 11 11 … … 16 16 search_format = "{installedversionsshort}<category> <name> [<installedversionsshort>] [<best>] <homepage> <description>{}" 17 17 18 18 begin 19 if !FileUtils.uptodate?("/var/cache/eix", %w(/usr/bin/eix /usr/portage/metadata/timestamp)) 20 update_eix 21 end 19 22 search_output = eix "--nocolor", "--format", search_format 20 23 21 24 packages = [] … … 72 75 search_format = "<category> <name> [<installedversionsshort>] [<best>] <homepage> <description>" 73 76 74 77 begin 78 if !FileUtils.uptodate?("/var/cache/eix", %w(/usr/bin/eix /usr/portage/metadata/timestamp)) 79 update_eix 80 end 75 81 search_output = eix "--nocolor", "--format", search_format, "--exact", search_field, search_value 76 82 77 83 packages = []