Bug 1160616

Summary: builddep plugin does not print missing deps
Product: [Fedora] Fedora Reporter: Miroslav Suchý <msuchy>
Component: dnf-plugins-coreAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: akozumpl, jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-11 12:45:46 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
Proposed patch to resolve this issue none

Description Miroslav Suchý 2014-11-05 09:11:32 UTC
Description of problem:
When you run:
  dnf builddep some.src.rpm
and there is missing dependency, it will just print:
  Error: no package matched
While previously
  yum-builddep some.src.rpm
print nicely:
  Error: No Package found for bar
  Error: No Package found for foo

It would be nice to preserve this functionality, so mock can parse the output and do something about it.

Version-Release number of selected component (if applicable):
dnf-plugins-core-0.1.3-1.fc21.noarch

How reproducible:
always

Steps to Reproduce:
1. create src.rpm with 
   BuildRequires: foo bar
2. compare output of:
  dnf builddep some.src.rpm
  yum-builddep some.src.rpm

Actual results:
  Error: no package matched

Expected results:
  Error: No Package found for bar
  Error: No Package found for foo

Comment 1 Radek Holy 2014-11-05 09:19:57 UTC
Thank you for the report.

I'd just add that it would be even necessary to document the expected output. Otherwise Miroslav would be depending on an undocumented (ie. unsupported) feature. I would introduce a switch or a new command that would have a documented output (not only) for this purpose like Git's plumbing and porcelain functions (http://git-scm.com/book/en/Git-Internals-Plumbing-and-Porcelain).

Comment 2 Miroslav Suchý 2014-11-05 09:30:50 UTC
Created attachment 953972 [details]
Proposed patch to resolve this issue

Comment 3 Honza Silhan 2014-11-11 12:45:46 UTC

*** This bug has been marked as a duplicate of bug 1155211 ***