|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
ignatenkobrain commented 6 years ago | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
mprahl commented 6 years ago Bike shedding: You could replace this with a join instead. For instance: solvable.name = ':'.join(mmd.get_name(), mmd.get_stream(), mmd.get_version(), mmd.get_context()) | ||
mprahl commented 6 years ago The context won't be set on the modulemd we are trying to solve yet when this is called since the context is done from the resulting buildrequires and requires we end up allowing. | ||
|
||
|
||
ignatenkobrain commented 6 years ago after some thinking, I would go with just version in evr (without stream) so it won't crack through comparing streams | ||
mprahl commented 6 years ago @ignatenkobrain but a version by itself doesn't determine if a module is newer or not, you need the stream as well. What are the repercussions/benefits if stream is dropped from the evr? | ||
ignatenkobrain commented 6 years ago stream is in the name. whatever is in version must be comparable.. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
mprahl commented 6 years ago The modulemd spec says "Each list item describes a combination of dependencies this module can be built or run against". That means there could be repeat dependencies in each list item. Will this code handle that? | ||
ignatenkobrain commented 6 years ago it won't, we should create multiple solvables. | ||
|
||
|
||
|
||
|
||
|
||
mprahl commented 6 years ago I don't understand this line. In particular, why is the relationship done with the stream? Can you please explain it? | ||
mprahl commented 6 years ago Ah I see, so you are saying that the module depends on this build dependency of a specific stream. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
mprahl commented 6 years ago Seems like most of the code is the same as the requires loop. You could likely avoid duplicating the code by using a for loop around this and dynamically determine the function to call. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
ignatenkobrain commented 6 years ago this part seems wrong. does it req | ||
mprahl commented 6 years ago What part seems wrong here? I don't think it is "A" or "A" since we assume each stream in the list is unique. Can you further explain? | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
ignatenkobrain commented 6 years ago no, just | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
sounds like a workaround ;) You probably need to check all combinations against all arches separately. But let's leave this for now.