puppet 3.3.1.rc2 → 3.3.1.rc3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d2fd11250a51541a228242c70e648a625e8fc08
4
- data.tar.gz: c0f9bc3f60a9306296d01e6b4f40520399230d6e
3
+ metadata.gz: 0efbe0e0e21b0391a01f1f2faab2d1b0226a26e7
4
+ data.tar.gz: 3ec5f8c802c8be9915e9442e3f4c2ee9d0b512ec
5
5
  SHA512:
6
- metadata.gz: 3aac39e3ed1d2eeb992fa912576ae3a26749ee3e0b26c642616000080c961f471448b2ecc1f2ac920b1aaad04d2d3eb9c1fae2e252d49bd72985f6b5d50ef2f3
7
- data.tar.gz: dd42835bc9e0049cc3d1b3145e9395efd3a0700a894a24bc34756e2cfcf9a3ba080a1e445900f57c5846b5d9fdefe7f4ac5731b554ca3502fb6945d612d60eeb
6
+ metadata.gz: 343e12a8a203d0c1eca34bc7f850d3e456717e09961b0fb62d5a826f635c911f4578619f3c4f4c8d201378cb0f0080526a341af514b61b51ea4ea9d779358c98
7
+ data.tar.gz: 51b63bad22e5ab099b2233fbef0b88e10f609432d74de59b2def5de71e6e8c9ad7a30b75f15bc89116b3ece9fed520eb0483a951dbe6f604338a70f7658e0f72
@@ -44,7 +44,7 @@ Puppet::Type.type(:package).provide :dpkg, :parent => Puppet::Provider::Package
44
44
  self::DPKG_DESCRIPTION_DELIMITER = ':DESC:'
45
45
  self::DPKG_QUERY_FORMAT_STRING = %Q{'${Status} ${Package} ${Version} #{self::DPKG_DESCRIPTION_DELIMITER} ${Description}\\n#{self::DPKG_DESCRIPTION_DELIMITER}\\n'}
46
46
  self::FIELDS_REGEX = %r{^(\S+) +(\S+) +(\S+) (\S+) (\S*) #{self::DPKG_DESCRIPTION_DELIMITER} (.*)$}
47
- self::DPKG_PACKAGE_NOT_FOUND_REGEX = /No packages found matching/
47
+ self::DPKG_PACKAGE_NOT_FOUND_REGEX = /no package.*match/i
48
48
  self::FIELDS= [:desired, :error, :status, :name, :ensure, :description]
49
49
  self::END_REGEX = %r{^#{self::DPKG_DESCRIPTION_DELIMITER}$}
50
50
 
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
  module Puppet
10
- PUPPETVERSION = '3.3.1-rc2'
10
+ PUPPETVERSION = '3.3.1-rc3'
11
11
 
12
12
  ##
13
13
  # version is a public API method intended to always provide a fast and
@@ -290,12 +290,24 @@ desired ok status name ensure :DESC: summary text
290
290
  parser_test(no_description, package_hash.merge(:description => ''))
291
291
  end
292
292
 
293
- it "parses dpkg reporting that package does not exist without warning about a failed match (#22529)" do
294
- Puppet.expects(:warning).never
295
- pipe = StringIO.new("No packages found matching non-existent-package")
296
- Puppet::Util::Execution.expects(:execpipe).with(query_args).yields(pipe).raises(Puppet::ExecutionFailure.new('no package found'))
293
+ context "dpkg-query versions < 1.16" do
294
+ it "parses dpkg-query 1.15 reporting that package does not exist without warning about a failed match (#22529)" do
295
+ Puppet.expects(:warning).never
296
+ pipe = StringIO.new("No packages found matching non-existent-package")
297
+ Puppet::Util::Execution.expects(:execpipe).with(query_args).yields(pipe).raises(Puppet::ExecutionFailure.new('no package found'))
298
+
299
+ expect(provider.query).to eq({:ensure=>:purged, :status=>"missing", :name=>"name", :error=>"ok"})
300
+ end
301
+ end
302
+
303
+ context "dpkg-query versions >= 1.16" do
304
+ it "parses dpkg-query 1.16 reporting that package does not exist without warning about a failed match (#22529)" do
305
+ Puppet.expects(:warning).never
306
+ pipe = StringIO.new("dpkg-query: no packages found matching non-existent-package")
307
+ Puppet::Util::Execution.expects(:execpipe).with(query_args).yields(pipe).raises(Puppet::ExecutionFailure.new('no package found'))
297
308
 
298
- expect(provider.query).to eq({:ensure=>:purged, :status=>"missing", :name=>"name", :error=>"ok"})
309
+ expect(provider.query).to eq({:ensure=>:purged, :status=>"missing", :name=>"name", :error=>"ok"})
310
+ end
299
311
  end
300
312
  end
301
313
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1.rc2
4
+ version: 3.3.1.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-27 00:00:00.000000000 Z
11
+ date: 2013-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter