-
Notifications
You must be signed in to change notification settings - Fork 352
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
rpmbuild should error out on conflicting %exclude directive #2952
Comments
You're instructing rpm to both exclude and include a file. It cannot possibly do both, so the only reasonable course of action is erroring out. |
Shall I open separate ticket? |
Hmm, it seems I misread the report because I thought that's what was happening, I guess the strange ticket summary set the stage for strange ideas what will follow. |
I have not really wanted to suggest this should be prohibited / reported as an error. But since duplicates are already detected and reported, reporting this would be in line with that and possibly prevented possible surprises, so that is acceptable. |
Given this .spec file:
where the file is excluded first and included later, I'd expect that the file will be included in the package, but that is not the case:
Please note that I have faced the issue when I was trying to remove some subpackages, but keep the files section as similar to the original state as possible.
The text was updated successfully, but these errors were encountered: