Bug 1244954 - RPM Failure during dnf install doesn't fail dnf command
Summary: RPM Failure during dnf install doesn't fail dnf command
Keywords:
Status: CLOSED DUPLICATE of bug 1207981
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-20 20:48 UTC by Eric Harney
Modified: 2015-08-10 12:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-10 12:23:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Eric Harney 2015-07-20 20:48:08 UTC
Description of problem:
RPM failure during dnf install doesn't cause a dnf failure.

Version-Release number of selected component (if applicable):
dnf-1.0.1-2.fc22.noarch
rpm-4.12.0.1-12.fc22.x86_64
rpm-libs-4.12.0.1-12.fc22.x86_64

How reproducible:
Every time

Steps to Reproduce:
1.  Create an empty dir /usr/lib/python2.7/site-packages/requests/packages/chardet
2. "dnf install python-requests".


Actual results:
dnf reports  "Installed: python-requests" and exits with code 0.

Expected results:
Failure message and an error code.

Additional info:

$ rpm -q python-requests
package python-requests is not installed


$ dnf info python-requests
Last metadata expiration check performed 1:44:04 ago on Mon Jul 20 14:56:12 2015.
Available Packages
Name        : python-requests
Arch        : noarch
Epoch       : 0
Version     : 2.7.0
Release     : 1.fc22
Size        : 99 k
Repo        : updates
Summary     : HTTP library, written in Python, for human beings
URL         : http://pypi.python.org/pypi/requests
License     : ASL 2.0
Description : Most existing Python modules for sending HTTP requests are extremely verbose and
            : cumbersome. Python’s built-in urllib2 module provides most of the HTTP
            : capabilities you should need, but the API is thoroughly broken. This library is
            : designed to make HTTP requests easy for developers.


$ sudo dnf install python-requests
Last metadata expiration check performed 2:28:38 ago on Mon Jul 20 14:11:45 2015.
Dependencies resolved.
===============================================================================================================================================
 Package                           Arch                     Version                                            Repository                 Size
===============================================================================================================================================
Installing:
 python-requests                   noarch                   2.7.0-1.fc22                                       updates                    99 k
 python-urllib3                    noarch                   1.10.4-2.20150503gita91975b.fc22                   updates                   108 k

Transaction Summary
===============================================================================================================================================
Install  2 Packages

Total download size: 207 k
Installed size: 721 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): python-requests-2.7.0-1.fc22.noarch.rpm                                                                  85 kB/s |  99 kB     00:01    
(2/2): python-urllib3-1.10.4-2.20150503gita91975b.fc22.noarch.rpm                                               93 kB/s | 108 kB     00:01    
-----------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                           91 kB/s | 207 kB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : python-urllib3-1.10.4-2.20150503gita91975b.fc22.noarch                                                                     1/2 
Error unpacking rpm package python-urllib3-1.10.4-2.20150503gita91975b.fc22.noarch
error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname: cpio: rename
  Installing  : python-requests-2.7.0-1.fc22.noarch                                                                                        2/2 
Error unpacking rpm package python-requests-2.7.0-1.fc22.noarch
error: python-urllib3-1.10.4-2.20150503gita91975b.fc22.noarch: install failed
error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/requests/packages/chardet: cpio: rename
python-requests-2.7.0-1.fc22.noarch was supposed to be installed but is not!
  Verifying   : python-requests-2.7.0-1.fc22.noarch                                                                                        1/2 
python-urllib3-1.10.4-2.20150503gita91975b.fc22.noarch was supposed to be installed but is not!
  Verifying   : python-urllib3-1.10.4-2.20150503gita91975b.fc22.noarch                                                                     2/2 

Installed:
  python-requests.noarch 2.7.0-1.fc22                          python-urllib3.noarch 1.10.4-2.20150503gita91975b.fc22                         

Complete!


$ echo $?
0


$ rpm -q python-requests
package python-requests is not installed


$ dnf info python-requests
Last metadata expiration check performed 1:44:26 ago on Mon Jul 20 14:56:12 2015.
Available Packages
Name        : python-requests
Arch        : noarch
Epoch       : 0
Version     : 2.7.0
Release     : 1.fc22
Size        : 99 k
Repo        : updates
Summary     : HTTP library, written in Python, for human beings
URL         : http://pypi.python.org/pypi/requests
License     : ASL 2.0
Description : Most existing Python modules for sending HTTP requests are extremely verbose and
            : cumbersome. Python’s built-in urllib2 module provides most of the HTTP
            : capabilities you should need, but the API is thoroughly broken. This library is
            : designed to make HTTP requests easy for developers.

Comment 1 Honza Silhan 2015-08-10 12:23:56 UTC

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


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