summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-19 06:42:46 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-19 06:42:46 +0000
commit80dac92b3a5ebd2cb8904505845d63759b5cebb3 (patch)
treefbd7320982fb7077f808cbf0b763bac959e2a44b /lib
parent3606482b279863b2ea9abf2c2c97070260ec0626 (diff)
downloadpuppet-80dac92b3a5ebd2cb8904505845d63759b5cebb3.tar.gz
puppet-80dac92b3a5ebd2cb8904505845d63759b5cebb3.tar.xz
puppet-80dac92b3a5ebd2cb8904505845d63759b5cebb3.zip
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
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/provider/package/apt.rb2
1 files changed, 1 insertions, 1 deletions
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"