-
Notifications
You must be signed in to change notification settings - Fork 18
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
common: implement an explicit preference order in sambacc installation #195
common: implement an explicit preference order in sambacc installation #195
Conversation
a32f9cd
to
5c192bd
Compare
@phlogistonjohn : the requests you had on a previous version of this patch in #193 have all been addressed |
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.
I think this has (unintentionally) inverted the priority of the various installation sources. Previously, if it found a wheel and then an rpm it would "prefer" the RPM. Now, AFAICT it will find a wheel and stop looking for anything else, implicitly preferring the wheel.
I strongly recommend undoing the restructuring of the if blocks so that every if block still gets visited and the various log lines can be emitted. Then after the sequence of if-blocks you can log the state of action
to indicate what the 'preferred' action is going to be.
5c192bd
to
a5795e4
Compare
@phlogistonjohn wrote:
Indeed, this analysis is correct and it was not intentional.
I have changed it this way now, making the original preference order explicit instead of reverting it. |
a5795e4
to
0c030f9
Compare
0fe7938
to
223712d
Compare
ab072d6
to
9ae5ef3
Compare
9ae5ef3
to
e732a27
Compare
this explicitly implements a preference order for sambacc custom installation sources like so: local repo -> rpm -> wheeel -> copr. It makes the output a bit more verbose while at it. Signed-off-by: Michael Adam <[email protected]>
e732a27
to
3a2e16b
Compare
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.
lgtm, thanks
this explicitly implements a preference order for sambacc
custom installation sources like so:
It makes the output a bit more verbose while at it.
overall, the behavior of the sambacc installation is made a bit more consistent and predictable