-
-
Notifications
You must be signed in to change notification settings - Fork 61
Fix edge-cases of virtual packages #203
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,7 +74,7 @@ def _is_satisfied_by(va, vb): | |
| if vb[0] != "=": | ||
| fail("Per https://www.debian.org/doc/debian-policy/ch-relationships.html only = is allowed for Provides field.") | ||
|
|
||
| return _version_relop(va[1], vb[1], va[0]) | ||
| return _version_relop(vb[1], va[1], va[0]) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you explain this change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In the context of With this change we do the correct operation. Note that there is some tests here but they all pass because for these specific test cases the inversion doesn't matter. In particular if you change the last one to |
||
|
|
||
| version_constraint = struct( | ||
| relop = _version_relop, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be merged with other arch virtual packages even if there are some?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point. In the case we encountered there was no arch-specific virtual package but some all virtual package but I don't think it's impossible to have some of both?
I have changed the code to extend the initial list with the one from the all architecture.