I wanted to test this test case: https://fedoraproject.org/wiki/QA:Testcase_Mediakit_FileConflicts, and realized that the involved script potential_conflict.py does not work.
potential_conflict.py
I tried running it on Fedora 28 to see if perhaps it would work, but no difference. I could not find any package that would provide the required yum module.
What shall we do? Rewrite the script? Is it actually possible? Or drop the test case? Or test differently?
Metadata Update from @kparal: - Issue assigned to kparal
I have just realized that you can fix the problem by installing yum.
dnf install yum makes the script work again.
dnf install yum
Yes, that works even in Fedora 30. I was wrongly looking just for sudo dnf provides '**/site-packages/**/yum.py' when I should have also been looking for sudo dnf provides '**/site-packages/yum/__init__.py'
sudo dnf provides '**/site-packages/**/yum.py'
sudo dnf provides '**/site-packages/yum/__init__.py'
However, the script is very old, yum is going away, and we should consider replacing it or getting rid of it.
For a related https://fedoraproject.org/wiki/QA:Testcase_Mediakit_Repoclosure test case, I already replaced the call with dnf some time ago. For this file conflicts check, the issue is more tricky. I wanted to use rpmdeplint for it, but found it broken at that time: https://bugzilla.redhat.com/show_bug.cgi?id=1562029
dnf
rpmdeplint
Since then, there hasn't been any new release and the previous maintainer left. So that's probably not an option. We can ask DNF team to provide such a tool for us. Or we can drop the test case. Let's keep this ticket open to figure out what to do about this.
I have requested this check to be in a dnf plugin: https://bugzilla.redhat.com/show_bug.cgi?id=1702652
We can close this now as it got ported to DNF, thanks @frantisekz !
Metadata Update from @adamwill: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.