Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 429648
Collapse All | Expand All

(-)puppet-2.7.18.orig/lib/puppet/provider/package/portage.rb (-2 / +4 lines)
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

Return to bug 429648