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.
*** This bug has been marked as a duplicate of bug 1207981 ***