Bug 1431486 - dnf wants to check gpg key on builddep from src.rpm
Summary: dnf wants to check gpg key on builddep from src.rpm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Igor Gnatenko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-13 01:20 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2017-04-01 17:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-01 17:22:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2017-03-13 01:20:22 UTC
Description of problem:
$ sudo dnf builddep molequeue-0.8.0-1.20161222giteb397e.fc27.src.rpm 
Last metadata expiration check: 0:57:01 ago on Sun Mar 12 20:11:48 2017.
Error: public key not available, add '--nogpgcheck' option to ignore package sign
Dependencies resolved.
Nothing to do.
Complete!
$ echo $?
0

Version-Release number of selected component (if applicable):
dnf-1.1.10-5.fc25.noarch
dnf-2.0.0-2.fc26.noarch
(same behaviour)

How reproducible:
deterministic

Two errors:
1. checking the gpg key on the src.rpm package makes no sense. I'm not trusting that package for anything except to provide a list of packages which I'll be installing from a trusted source. And I do not want to add --nogpgcheck as a work-around, because that'd also impact the installation phase, I expressly do not want to install unsigned packages.

AFAIK, dnf is NOT parsing the spec file, it's just looking at the list of requirements that the rpm itself declares.

2. the return code is wrong. I opened a bug for that somewhere, so just making a  note.

Comment 2 Fedora Update System 2017-03-21 13:04:31 UTC
dnf-plugins-core-1.1.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f56311f5dd

Comment 3 Fedora Update System 2017-03-22 15:26:43 UTC
dnf-plugins-core-1.1.0-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f56311f5dd

Comment 4 Fedora Update System 2017-04-01 17:22:57 UTC
dnf-plugins-core-1.1.0-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


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