Bug 1283601 - dnf system-upgrade redownloads everything after errors
Summary: dnf system-upgrade redownloads everything after errors
Keywords:
Status: CLOSED DUPLICATE of bug 1276886
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugin-system-upgrade
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Will Woods
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-19 11:50 UTC by Kriton Kyrimis
Modified: 2015-11-19 19:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 19:59:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kriton Kyrimis 2015-11-19 11:50:56 UTC
Description of problem:

After erasing packages, to resolve conflicts or problems with repositories that time out, and rerun "sudo dnf system-upgrade download --releasever=23", dnf ignores the packages that are in the cache and redownloads everything. In my case, this means that to correct two minor problems (the repository from which I had installed opera was timing out, and google earth has a permission conflict) which would involve uninstalling these two packages and trying again, I had to download six gigabytes of data.

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


How reproducible:
Always.


Steps to Reproduce:
1.Install a package that is known to produce conflicts. E.g., install google-earth-stable-6.0.3.2197-0.x86_64.rpm from google, using rpm --force
2.If you install the above rpm: chmod -w /usr/bin, to restore the permissions in /usr/bin, which the rpm will change.
3.sudo dnf system-upgrade download --releasever=23
4.sudo dnf erase google-earth-stable-6.0.3.2197-0.x86_64
5.sudo dnf system-upgrade download --releasever=23

Actual results:
On step 5, the packages downloaded in step 3 are downloaded again.


Expected results:
Tons of "[SKIPPED]" messages, with no packages downloaded.

Additional info:
If no packages are removed, and a repository times out during the download, then
retrying "sudo dnf system-upgrade download --releasever=23" will produce the expected "[SKIPPED]" messages, so the functionality is there, but not invoked.

These are the messages from the last failed run, showing that dnf claims to have kept the downloaded packages in the cache: 

Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache till the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
  file /usr/bin from install of filesystem-3.2-35.fc23.x86_64 conflicts with file from package google-earth-stable-6.0.3.2197-0.x86_64

Comment 1 Zbigniew Jędrzejewski-Szmek 2015-11-19 19:59:13 UTC
Yeah, we are working on it.

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


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