Personal tools
     DOCUMENTATION

FAQ:Conary Regexp

From rPath Wiki

Jump to: navigation, search
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)


Image:Bulbgraph.png   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)
Image:Bulbgraph.png   Remember that using allowUnusedFilters will affect future recooks of your recipe. If the specific invocation in question ceases to match anything due to upstream contents changing, you will not be notified.