Lines 20-26
Link Here
|
20 |
search_format = "<category> <name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] <homepage> <description>\n" |
20 |
search_format = "<category> <name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] <homepage> <description>\n" |
21 |
|
21 |
|
22 |
begin |
22 |
begin |
23 |
update_eix if !FileUtils.uptodate?("/var/cache/eix", %w{/usr/bin/eix /usr/portage/metadata/timestamp}) |
23 |
eix_file = File.directory?("/var/cache/eix") ? "/var/cache/eix/portage.eix" : "/var/cache/eix" |
|
|
24 |
update_eix if !FileUtils.uptodate?(eix_file, %w{/usr/bin/eix /usr/portage/metadata/timestamp}) |
24 |
|
25 |
|
25 |
search_output = nil |
26 |
search_output = nil |
26 |
Puppet::Util::Execution.withenv :LASTVERSION => version_format do |
27 |
Puppet::Util::Execution.withenv :LASTVERSION => version_format do |
Lines 81-87
Link Here
|
81 |
search_value = package_name |
82 |
search_value = package_name |
82 |
|
83 |
|
83 |
begin |
84 |
begin |
84 |
update_eix if !FileUtils.uptodate?("/var/cache/eix", %w{/usr/bin/eix /usr/portage/metadata/timestamp}) |
85 |
eix_file = File.directory?("/var/cache/eix") ? "/var/cache/eix/portage.eix" : "/var/cache/eix" |
|
|
86 |
update_eix if !FileUtils.uptodate?(eix_file, %w{/usr/bin/eix /usr/portage/metadata/timestamp}) |
85 |
|
87 |
|
86 |
search_output = nil |
88 |
search_output = nil |
87 |
Puppet::Util::Execution.withenv :LASTVERSION => version_format do |
89 |
Puppet::Util::Execution.withenv :LASTVERSION => version_format do |