Bug 4867 - urpmi's --download-all is not working correctly
Summary: urpmi's --download-all is not working correctly
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-10 15:58 CET by Sander Lepik
Modified: 2012-03-26 22:21 CEST (History)
1 user (show)

See Also:
Source RPM: urpmi-6.46-1.mga2
CVE:
Status comment:


Attachments

Description Sander Lepik 2012-03-10 15:58:41 CET
Description of problem:

urpmi's --download-all is downloading some packages twice. For example when i was installing first packages (meta-task, urpmi, rpm, glibc) meta-task and urpmi got downloaded twice.

With small packages i could live with this bug but downloading KDE's wallpapers twice is just overkill. And when upgrading with wifi it's usful to download all packages first, before network might go down. But if some packages are later missing then this option is not doing its job.
Comment 1 Thierry Vignaud 2012-03-10 17:44:02 CET
What version of urpmi do you use (rpm -q urpmi) ?
I'm pretty sure it's a duplicate of bug 4038 or 4322 ...

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Comment 2 Sander Lepik 2012-03-10 17:50:00 CET
urpmi was the latest version when it was downloading kde4's wallpapers again. At least i think that it is used when urpmi is restarted after installing urpmi, meta-task, rpm, etc.

Keywords: NEEDINFO => (none)

Comment 3 Thierry Vignaud 2012-03-10 18:06:15 CET
Again, please update the "RPM package" field with the result of the "rpm -q urpmi" command

Keywords: (none) => NEEDINFO

Sander Lepik 2012-03-10 18:42:43 CET

Keywords: NEEDINFO => (none)
Source RPM: urpmi => urpmi-6.46-1.mga2

Comment 4 Thierry Vignaud 2012-03-11 00:31:14 CET
This is only for noarch packages?

Keywords: (none) => NEEDINFO

Comment 5 Sander Lepik 2012-03-11 10:19:35 CET
It seems so. At least all the packages i noticed downloading twice were noarch. Tho' i can't be 100% sure.

Keywords: NEEDINFO => (none)

Comment 6 Sander Lepik 2012-03-25 17:22:02 CEST
Tested with another bigger update (~200+ packages) - only noarch packages are downloaded twice.

And even if curl fails to download package again (don't know why) it will install just fine as it's already downloaded. So some check before downloading is missing. It should check if the package already exists or not.
Comment 7 Thierry Vignaud 2012-03-26 11:28:05 CEST
Fixed in git

Status: NEW => REOPENED

Comment 8 Thierry Vignaud 2012-03-26 22:21:52 CEST
I landed a different fix in SVN (the first one caused regressions in the test suite)

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


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