FAQ:Conary Regexp
From rPath Wiki
| FAQ | ||
| Question: How does Conary handle regexps inside recipes? Will it produce useful output on regexps that don't match? | ||
Conary will produce a warning message on regexps that do not match when cooking recipes. There are two ways to make the warning go away:
1. Make the filter match something:
r.Config(exceptions = '/ect/wrongfile') changed to r.Config(exceptions = '/etc/rightfile')
2. Instruct conary to ignore unused regexps for this invocation. For example:
r.Config(exceptions = 'ect/foo', allowUnusedFilters = True)
| Instructing conary to ignore unused regexps should be used wisely. If your intent was to make an exception or inclusion for a single file, the warning is likely valid. |
If you intended to ignore a broad category of items, regardless of if they actually existed, you can safely use allowUnusedFilters. eg;
r.SharedLibrary(exceptions = '.*\.so', allowUnusedFilters = True)
