Bug 1418298

Summary: source_name attribute contains NVR
Product: [Fedora] Fedora Reporter: Lubomír Sedlář <lsedlar>
Component: dnfAssignee: rpm-software-management
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 26CC: jmracek, mmraka, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-24 17:54:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
list info about packages in repo
none
Test specfile none

Description Lubomír Sedlář 2017-02-01 13:52:07 UTC
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:

Comment 1 Lubomír Sedlář 2017-02-01 13:52:51 UTC
Created attachment 1246653 [details]
Test specfile

Comment 2 Michael Mráka 2017-02-02 10:14:59 UTC
Fixed by https://github.com/rpm-software-management/dnf/pull/724

Comment 3 Fedora End Of Life 2017-02-28 11:09:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 4 Jaroslav Mracek 2017-04-24 17:54:06 UTC
It was released in dnf-2.1.0 into rawhide