createrepo -c problems
John Newbigin <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
This is a follow up to the thread "yum won't update vmware" on the yum
list. I was having problems which were introduced by using createrepo -c
I did some digging, and found that the cache relies of the rpm header
field %HDRID (or %SHA1HEADER, depending on your version). A quick check
showed that this was missing from the vmware packages, resulting in
duplicate hashes for the key in the cache directory (ie, blank (well it
uses [] for some reason)).
The Sun j2sdk also missing the tags, but surprisingly Sun jdk has them.
The command
rpm -q --queryformat '%{NAME}-%{HDRID}\n' -p *.rpm
will show more or less the problem. Example output:
j2sdk-(none)
j2sdk-(none)
jdk-8bfd4b333a68559d382f5683d845f4ae91e6a410
jdk-ee3a94f8e4cb4b4253cc67dc162c442ba0231b04
Perhaps if there is no useful id/sum then use the version-release
strings? Or just refuse to use the cache for that file.
I am not much good with python but I might have a play.
John.
--
John Newbigin
Computer Systems Officer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin