Bug 1365593 - dnf: misleading error message when trying to "upgrade" src.rpm
dnf: misleading error message when trying to "upgrade" src.rpm
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
Unspecified Unspecified
low Severity unspecified
: ---
: ---
Assigned To: Štěpán Smetana
Fedora Extras Quality Assurance
: EasyFix, Triaged, UserExperience
Depends On:
  Show dependency treegraph
Reported: 2016-08-09 11:51 EDT by Zbigniew Jędrzejewski-Szmek
Modified: 2016-10-04 14:06 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-10-04 14:06:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Zbigniew Jędrzejewski-Szmek 2016-08-09 11:51:20 EDT
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 13:06:16 EDT
totally agree
Comment 2 Štěpán Smetana 2016-08-11 12:05:03 EDT
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.