Bug 1365593 - dnf: misleading error message when trying to "upgrade" src.rpm
Summary: dnf: misleading error message when trying to "upgrade" src.rpm
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Štěpán Smetana
QA Contact: Fedora Extras Quality Assurance
Keywords: EasyFix, Triaged, UserExperience
Depends On:
TreeView+ depends on / blocked
Reported: 2016-08-09 15:51 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2016-10-04 18:06 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2016-10-04 18:06:22 UTC

Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2016-08-09 15:51:20 UTC
Description of problem:
I was installing some rpms using a wildcard, and saw the message
"Package … not installed, cannot update it.", even though the package
was clearly present. It is because dnf warns about the source package
without giving any hint that it is a source package.

Version-Release number of selected component (if applicable):

Actual results:
$ sudo dnf upgrade /var/lib/mock/fedora-24-x86_64/result/systemd-229-11.fc24.src.rpm
Package systemd not installed, cannot update it.

Expected results:
$ sudo dnf upgrade /var/lib/mock/fedora-24-x86_64/result/systemd-229-11.fc24.src.rpm
Package /var/lib/mock/fedora-24-x86_64/result/systemd-229-11.fc24.src.rpm is a source package and cannot be updated, ignoring.

Comment 1 Igor Gnatenko 2016-08-09 17:06:16 UTC
totally agree

Comment 2 Štěpán Smetana 2016-08-11 16:05:03 UTC
Created PR: https://github.com/rpm-software-management/dnf/pull/560

Note You need to log in before you can comment on or make changes to this bug.