createrepo changes

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <1105213470.28377.42.camel@cutter>
Hi,
 Two items I wanted to bring mention:
1. createrepo was opening each rpm 3 times for 3 different operations on
the file. I reduced that to 1 time and got a 30% savings in time.
2. Some folks had asked if primary.xml.gz's file listing could include
as a provided file any file that another package depended on that was
not a part of the *bin/* /etc/* /usr/lib/sendmail match. I thought about
this and considered doing it - then a problem occurred:

The packages are added to xml one at a time, not as a single bulk save.
So if you had a package that was indexed first that
included /usr/share/some/file and another package that
required /usr/share/some/file you'd have no way of
including /usr/share/some/file in the provided package list for the
first package.

In short, it would all be based on which order the files were read in,
as.

Any suggestions on how to remedy that?

-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.