-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute marker in -V
mode undefined for multi-attribute files
#2846
Comments
I think it's slighly more subtle: whether a file is a %license or not has little relevance to verify results. However a content mismatch on a %config file is something entirely different (with possible noreplace/missingok modifiers) and yet again quite different for a %ghost which can also have be a %config. But %license doesn't combine with anything else. Using different letters/uppercase for the various combos is a no-go: we may currently only have 11 such attributes but there's room for 32 in total. That is already more than the alphabets have, and when you consider their combinations... |
Description
The attribute marker in
--verify
mode is only one character long, however file entries may in fact have multiple attributes. For example, the following are all valid entries:In these cases, the marker will currently show whichever attribute comes first in the internal
attrFormat
string returned fromrpmFFlagsString()
:As a result, the actual marker shown in the output is not well-defined for such combined file entries. There are two ways to fix this:
g
for%ghost
is more specific and so should be shown instead ofc
for%config
.%ghost
and%config
entry would show up as aG
.To Reproduce
Steps to reproduce the behavior:
%build
and%files
section:Actual output
Expected output
Variant 1:
Variant 2:
Environment
Additional context
This was originally filed in Red Hat Jira: https://issues.redhat.com/browse/RHEL-20649
The text was updated successfully, but these errors were encountered: