Re: createrepo: file-pattern-match and dir-pattern-match?
seth vidal <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <1192717986.8542.109.camel@cutter> |
On Thu, 2007-10-18 at 16:29 +0200, Christoph Thiel wrote: > On Thu, Oct 18, 2007 at 10:20:07AM -0400, seth vidal wrote: > > > > On Thu, 2007-10-18 at 16:20 +0200, Christoph Thiel wrote: > > > Hi everyone, > > > > > > createrepo's genpkgmetadata.py has some file-pattern-match and > > > dir-pattern-match options, that basically make sure to some file and dir > > > provides to primary.xml. Currently, they default to: > > > > > > cmds['file-pattern-match'] = ['.*bin\/.*', '^\/etc\/.*','^\/usr\/lib\/sendmail$'] > > > cmds['dir-pattern-match'] = ['.*bin\/.*', '^\/etc\/.*'] > > > > > > To make real use of these file and dir patterns, we would need to somehow > > > put their values into primary.xml, so that a package manager can decide if > > > it needs to pull in filelist.xml or not (based on the information that it > > > has in primary.xml and the requires a certain package might have)? > > > > > > Thoughts, opinions? > > > > If we make it an option then we have to declare a version change in the > > metadata b/c the metadata won't be compatible with older versions of > > package managers. > > > > I think it should probably be done - but I'm not sure if that's the only > > change we need to make which will be a compat change, do you? > > I guess we could even introduce this, without breaking old package managers. > In case the information is available use it, if it's not there, assume > everything is as it used to be? > > Or are you asking for further fixes/changes that we could do to the > metadata, if we were to change to introduce a new version? > the latter. -sv