Issue #3730 has been reported by Andreas Thienemann.

----------------------------------------
Bug #3730: yumhelper.py shows updates available which are not installable
http://projects.puppetlabs.com/issues/3730

Author: Andreas Thienemann
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Affected version: 0.25.4
Keywords: 
Branch: 


Current yumhelper.py has the problem that it shows packages ready to be updated 
which are actually not available for updates.
This only manifests itself with yum versions older than 3.0.0

[r...@mc101ppcapp-01 ~]# python 
/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py
_pkg perl-XML-LibXML 0 1.58 3.el4 i386
_pkg ImageMagick-perl 0 6.0.7.1 20.el4 i386
_pkg perl-IO-String 0 1.08 1.1.el4 noarch
_pkg perl-Cyrus 0 2.2.12 9.RHEL4 i386
_pkg perl-TimeDate 1 1.16 5.el4 noarch
_pkg perl-IO-Zlib 0 1.04 4.2.el4 noarch
_pkg perl-XML-LibXML-Common 0 0.13 8.el4 i386
_pkg perl-HTML-Parser 0 3.55 1.el4 i386
_pkg perl-Archive-Tar 0 1.30 1.el4 noarch
_pkg ImageMagick 0 6.0.7.1 20.el4 i386
[r...@mc101ppcapp-01 ~]# 

vs.

[r...@mc101ppcapp-01 ~]# yum check-update
Loading "priorities" plugin
Loading "packagelock" plugin
Setting up repositories
Reading repository metadata in from local files
708 packages excluded due to repository priority protections
Reading package lock configuration
[r...@mc101ppcapp-01 ~]# 

This difference is due to yumhelper disregarding plugins such as versionlock, 
priorities, protectbase or similar yum plugins which may affect package 
selection.

The attached patch adds plugin support to yumhelper, so that it has the same 
understanding of the repository that regular yum has. This should fix the 
observed problem.

Newer versions of yum.YumBase.doConfigSetup() already initialize plugins, so it 
is not an issue with these.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to