Am 26.03.2010 23:10, schrieb Nigel Kersten:
@@ -47,9 +49,12 @@ Puppet::Type.type(:package).provide :dpkg, :parent =>  
Puppet::Provider::Package

              if hash[:status] == 'not-installed'
                  hash[:ensure] = :purged
-            elsif hash[:status] != "installed"
+            elsif ['config-files', 'half-installed', 'unpacked', 
'half-configured'].include?(hash[:status])
                  hash[:ensure] = :absent
              end
+            if hash[:desired] == 'hold'
+                hash[:ensure] = :held
+            end

I've never spent any thought on this, but reading this chunk, the question arose whether this is the right policy? Arguably, packages which are 'half-installed', 'unpacked', or 'half-configured' would still need some action to actually make them :absent, no?


Best Regards, David
--
dasz.at OG              Tel: +43 (0)664 2602670     Web: http://dasz.at
Klosterneuburg                                         UID: ATU64260999

       FB-Nr.: FN 309285 g          FB-Gericht: LG Korneuburg

--
You received this message because you are subscribed to the Google Groups "Puppet 
Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to