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

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


Ok, thanks for your answer.

Have a nice day,
FP


Florian Festi wrote:
> 
> Frédéric PICA wrote:
>> 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
> 
> rpm -q gnupg doesn't give you a file name
> 
> try rpm -q --qf "%{name}-%{version}-%{release}.%{arch}\n" gnupg
> 
> or put %_query_all_fmt         %%{name}-%%{version}-%%{release}.%%{arch}
> in 
> your ~/.rpmmacros
> 
> Altough one could argue that splitFilename() could check for valid arch
> names...
> 
> Florian
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at linux.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
> 
> 

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




More information about the Yum-devel mailing list