Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1686107

Summary: Dirty exception when failing dependencies of a build
Product: [Fedora] Fedora EPEL Reporter: Phil Wyett <philwyett>
Component: mockAssignee: Miroslav Suchý <msuchy>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: jdisnard, jkeating, mebrown, msuchy, praiskup, williams
Target Milestone: ---   
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: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Phil Wyett 2019-03-06 18:05:59 UTC
Description of problem:

Dirty exception when failing dependencies of a build.

Error: No Package found for libfilezilla-devel >= 0.9.2
Error: No Package found for libstorj-devel
Error: No Package found for wxGTK3-devel >= 3.0.3
ERROR: Exception(SRPMS/filezilla-3.41.0-1.fc31.src.rpm) Config(epel-7-x86_64) 0 minutes 4 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
ERROR: global name 'FileNotFoundError' is not defined
Traceback (most recent call last):
  File "/usr/libexec/mock/mock", line 977, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 766, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 861, in run_command
    do_rebuild(config_opts, commands, buildroot, options, args)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 541, in do_rebuild
    post=post_build, clean=clean)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 482, in rebuild_generic
    ret = cmd(item)
  File "/usr/libexec/mock/mock", line 522, in build
    check=config_opts['check'], spec=options.spec)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/backend.py", line 275, in build
    self.installSrpmDeps(rebuilt_srpm)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/backend.py", line 203, in installSrpmDeps
    self.buildroot.pkg_manager.builddep(*srpms, check=True)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/package_manager.py", line 162, in builddep
    except (FileNotFoundError) as error:
NameError: global name 'FileNotFoundError' is not defined

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

1.4.14-2

How reproducible:

Always

Steps to Reproduce:
1. Download 'filezilla-3.41.0-1.fc31.src.rpm' from fedora packages site.
2. Build with mock using 'epel-7-x86_64' config.

Actual results:

Exception and trace as seen above.

Expected results:

A clean failure with no exception.