[Rpm-maint] Support "magic_and_path" flag in fileaattrs

Panu Matilainen pmatilai at laiskiainen.org
Thu May 19 12:40:18 UTC 2011


On 05/16/2011 07:18 PM, Michael Schroeder wrote:
>
> This patch adds support for a new fileattrs flag, "magic_and_path".
> Normally files get fed into the dependency helper if either the
> path regexp or the magic regexp matches. With the flag, both
> have to match.
>
> (If you don't like the name, feel free to choose a better one.)

After a bit of further pondering about the name ... applied (I just 
stripped the unused magic_and_path variable out), and thanks.

For the exclude part, I think I'll refactor the surroundings a bit so 
that both exclude- and include-matches can be handled with a single 
"does this file match this rule" function, then any added flags (such as 
this) will work automatically for both rule-types.

	- Panu -


More information about the Rpm-maint mailing list