Bug 1151740 - dnf base api should not use errorSummary from dnf.cli.BaseCli
dnf base api should not use errorSummary from dnf.cli.BaseCli
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Honza Silhan
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2014-10-11 05:00 EDT by Tim Lauridsen
Modified: 2014-12-13 04:53 EST (History)
6 users (show)

See Also:
Fixed In Version: dnf-0.6.3-2.fc21
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-12-13 04:53:53 EST
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 Tim Lauridsen 2014-10-11 05:00:48 EDT
Description of problem:

If there is some kind of error in the transaction dnf.Base.do_transaction will call self.errorSummary, that is only defined in dnf.cli.BaseCli
So an dnf api user will get a traceback like this.

File "/usr/lib/python3.4/site-packages/dnfdaemon/server/init.py", line 531, in run_transaction
File "/usr/lib/python3.4/site-packages/dnf/base.py", line 542, in do_transaction
AttributeError: 'DnfBase' object has no attribute 'errorSummary'

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


How reproducible:
every time

Steps to Reproduce:

Actual results:


Expected results:
No traceback, use an exception

Additional info:
Comment 1 Honza Silhan 2014-10-13 16:43:26 EDT
Thanks for report.
Comment 2 Honza Silhan 2014-11-04 08:13:28 EST
Fixed in the upstream.
Comment 3 Fedora Update System 2014-12-09 09:06:46 EST
dnf-0.6.3-2.fc21,dnf-plugins-core-0.1.4-1.fc21,hawkey-0.5.2-1.fc21 has been submitted as an update for Fedora 21.
Comment 4 Fedora Update System 2014-12-11 23:32:52 EST
Package dnf-0.6.3-2.fc21, hawkey-0.5.2-1.fc21, dnf-plugins-core-0.1.4-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.6.3-2.fc21 hawkey-0.5.2-1.fc21 dnf-plugins-core-0.1.4-1.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 5 Fedora Update System 2014-12-13 04:53:53 EST
dnf-0.6.3-2.fc21, hawkey-0.5.2-1.fc21, dnf-plugins-core-0.1.4-1.fc21 has been pushed to the Fedora 21 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.