Re: discussion of createrepo and repodata format future
Michael Schroeder <[email protected]> Sat, 7 Aug 2010 17:51:38 +0200
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 06, 2010 at 09:40:54AM -0400, seth vidal wrote: > On Fri, 2010-08-06 at 14:51 +0200, Michael Schroeder wrote: > > > the equivalent of: yum install /usr/bin/myprogram > > > > This would work because /usr/bin/ files are in primary.xml. > > libzypp doesn't support on-demand download of the filelist, > > libsatsolver offers an interface for it. > > rhel/fedora has a fair number of non *bin/* filedeps that we have to > look up. And try as I might, I can't seem to make that number go down. Hmm, but *bin/* dependencies are already in primary, right? (At least for the xml version.) So that doesn't hurt. AFAIK you also have lots of dependencies for stuff in /usr/lib, thats why you need to transfer the complete filelist. Would it make sense to find out which directories are used in the dependencies and also add them to the primary data like the *bin/* files? The idea is that you have to download that part of the filelist anyways if you want to do depsolving (i.e. for yum install/update). You would need to store the used glob patterns somewhere in the primary file, so that yum knows when the primary data is sufficient and when it has to download the complete file list. Cheers, Michael. -- Michael Schroeder [email protected] SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}