Created attachment 1246651 [details] list info about packages in repo Description of problem: The source_name attribute on a dnf.package.Package class should contain name of SRPM (according to documentation), but sometimes there is full NVR. This happens for subpackages with different version than the source package Version-Release number of selected component (if applicable): How reproducible: Always. Steps to Reproduce: 1. build the attached specfile 2. createrepo_c on the results 3. run attached reproducer.py script Actual results: Name: dummy Version: 0.1.0 Source Name: None Source Name: None Name: dummy Version: 0.1.0 Source Name: dummy Source Name: dummy-0.1.0-1.fc25.src.rpm Name: foo Version: 0.2.0 Source Name: dummy-0.1.0-1.fc25 Source Name: dummy-0.1.0-1.fc25.src.rpm Expected results: The foo subpackage should have source name set to dummy. Additional info:
Created attachment 1246653 [details] Test specfile
Fixed by https://github.com/rpm-software-management/dnf/pull/724
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle. Changing version to '26'.
It was released in dnf-2.1.0 into rawhide