Bug 1245402

Summary: dnf deletes downloaded rpms if "dnf update" fails?!?!?
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 08:02:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Petersen 2015-07-22 02:17:22 UTC
Description of problem:
As far as I can tell, dnf seems to delete or ignore all the rpms
it downloaded during a failed "dnf update" invocation. Ie next time
one runs "dnf update" it starts downloading all the files again. :-(

Version-Release number of selected component (if applicable):
dnf-1.0.1-2.fc22

How reproducible:
100%

Steps to Reproduce:
1. run "dnf update" and it fails due to some mirror being down
2. run "dnf update" again

Actual results:
1. various rpms/drpms get downloaded until fail due to missing rpm
from down server.
2. dnf downloads all the rpms/drpms (and fails again)

Expected results:
2. dnf should cache the rpms it already downloaded or not ignore them.

Additional info:
Yum did this correctly.

Comment 1 Radek Holy 2015-07-22 08:02:33 UTC
This is a duplicate of a lot of other bugs.

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