[Yum-devel] versionlock / rpmUtils.miscutils.splitFilename

Frédéric PICA frederic.pica at gmail.com
Tue Jul 3 09:22:15 UTC 2007


Greets,

I saw versionlock not locking a package, I'm using the latest versionlock
with the yum provided in RHEL5
The package not locked is gnupg:

#rpm -q gnupg
gnupg-1.4.5-12

#rpm -q gnupg >> /etc/yum/pluginconf.d/locklist

I have modified version lock to be able to see what happens :

for pkg in locklist:
        print pkg
        print splitFilename("%s" % pkg)
        (n, v, r, e, a) = splitFilename("%s" % pkg)


Here is what I get from yum :
Reading version lock configuration
gnupg-1.4.5-12
('gnupg-1.4.5-1', 'gnupg', '1.4', '', '5-12')
freetype-2.2.1-16.el5
('freetype', '2.2.1', '16', '', 'el5')

gnupg in not parsed correctly. Addind a point to the end of the package in
the locklist corrected the problem.

What's wrong with splitFilename ?? Is there a way to correct that ?
Package name have to be splitted correctly, a package name is like that
isn't it ? name-version-release.arch

Regards,
FP
-- 
View this message in context: http://www.nabble.com/versionlock---rpmUtils.miscutils.splitFilename-tf4017139.html#a11408727
Sent from the YUM - Dev mailing list archive at Nabble.com.




More information about the Yum-devel mailing list