[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:36 UTC 2009


The following commit has been merged in the master branch:
commit 0a3d34dbe7b5175f4822b6f1bfaa6f0ba05e9bd2
Author: James Turnbull <james at lovedthanlost.net>
Date:   Sat Nov 1 10:56:52 2008 +1100

    Fixes #1714 - yumhelper handling with yum 2.2.x is broken

diff --git a/lib/puppet/provider/package/yumhelper.py b/lib/puppet/provider/package/yumhelper.py
index 8eab0d0..6263d34 100644
--- a/lib/puppet/provider/package/yumhelper.py
+++ b/lib/puppet/provider/package/yumhelper.py
@@ -39,6 +39,15 @@ def pkg_lists(my):
 
     my.doTsSetup()
     my.doRpmDBSetup()
+
+    # Yum 2.2/2.3 python libraries require a couple of extra function calls to setup package sacks.
+    # They also don't have a __version__ attribute
+    try:
+	yumver = yum.__version__
+    except AttributeError:
+        my.doRepoSetup()
+        my.doSackSetup()
+
     return my.doPackageLists('updates')
 
 def shell_out():

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list