Ticket #838: dpkg-update.patch
| File dpkg-update.patch, 0.7 kB (added by DavidS, 1 year ago) |
|---|
-
a/lib/puppet/provider/package/dpkg.rb
old new 56 56 dpkg "-i", file 57 57 end 58 58 59 def update 60 self.install 61 end 62 59 63 # Return the version from the package. 60 64 def latest 61 65 output = dpkg_deb "--show", @resource[:source] 66 matches = /^(\S+)\t(\S+)$/.match(output).captures 67 unless matches[0].match(@resource[:name]) 68 Puppet.warning "source doesn't contain named package, but %s" % matches[0] 69 end 70 matches[1] 62 71 end 63 72 64 73 def query