From 80dac92b3a5ebd2cb8904505845d63759b5cebb3 Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 19 Mar 2007 06:42:46 +0000 Subject: [PATCH] Following Russ Allbery's advice and using the Candidate field in the apt-cache output. Apparently I'm blind. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2312 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/provider/package/apt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/package/apt.rb b/lib/puppet/provider/package/apt.rb index cf69b4468..d19276cc1 100755 --- a/lib/puppet/provider/package/apt.rb +++ b/lib/puppet/provider/package/apt.rb @@ -78,7 +78,7 @@ Puppet::Type.type(:package).provide :apt, :parent => :dpkg do def latest output = aptcache :policy, @model[:name] - if output =~ /\*\*\*\s+(\S+)\s/ + if output =~ /Candidate:\s+(\S+)\s/ return $1 else self.err "Could not find latest version"