Bug 1425228 - dnf bails out in a middle of transaction on an error in some package script
Summary: dnf bails out in a middle of transaction on an error in some package script
Keywords:
Status: CLOSED DUPLICATE of bug 1340507
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-20 22:57 UTC by Michal Jaegermann
Modified: 2017-02-27 14:45 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-02-27 14:45:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2017-02-20 22:57:22 UTC
Description of problem:

While running rawhide updates in a cleanup phase of a substantial update the following happened:

error: %preun(emacs-1:25.1-2.fc26.x86_64) scriptlet failed, exit status 2
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/yum/rpmtrans.py", line 427, in callback
    self._scriptError(amount, total, key)
  File "/usr/lib/python3.6/site-packages/dnf/yum/rpmtrans.py", line 551, in _scriptError
    name = pkg.name
AttributeError: 'NoneType' object has no attribute 'name'
FATAL ERROR: python callback ??? failed, aborting!

The net effect of this bail out was that I was left with close to 500 duplicate packages and hard to asses number of posttrans scriptlets which were NOT run.  In particular  /usr/bin/emacs was missing as this is a link created with a help of /usr/sbin/alternatives


Version-Release number of selected component (if applicable):
dnf-2.0.0-2.fc26


Expected results:
dnf noting an error and continuing with a remainder of a transaction.

Comment 1 Igor Gnatenko 2017-02-27 14:45:06 UTC

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


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