| Summary: | gurpmi: progress bar miscalculation if download of some packages fail | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Pablo Saratxaga <pablo> |
| Component: | RPM Packages | Assignee: | Thierry Vignaud <thierry.vignaud> |
| Status: | NEW --- | QA Contact: | |
| Severity: | minor | ||
| Priority: | Normal | CC: | mageiatools, marja11, pablo |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | gurpmi-7.27.3-2.mga3 | CVE: | |
| Status comment: | |||
|
Description
Pablo Saratxaga
2013-06-05 10:21:55 CEST
Pablo Saratxaga
2013-06-05 10:22:15 CEST
CC:
(none) =>
pablo it is $urpm->{nb_install} that sometimes get negative (value: -35)
it can be seen also in the text info: "installing foo.rpm (112/-35)"
Manuel Hiebel
2013-06-08 16:47:35 CEST
Keywords:
(none) =>
Triaged We decrement the number of total packages when some packages are missing:
$urpm->{nb_install} -= scalar @missing;
in /usr/lib/perl5/vendor_perl/5.18.0/urpm/main_loop.pm
Else we see urpmi ending with eg:
"(...)
14/20: foo
15/20: bar
While some packages may have been installed, there were failures."
Obviously something went wrong here.
Do you have the log of such a failure?
I don't have the log anymore; but it can be easily reproduced (or something similar) by shutting down network (eg: unplug cable, or do ifdown eth0) when downloading rpm packages. it then complains about "something went wrong" and ask if I want to install anyway. It seems the missed packages are removed twice (or maybe even more?) from nb_install. BTW, it would be a nice improvement to have a "try downloading missing packages again?" option for such cases, instead of just dropping the whole transaction, or going ahead with missing packages. This bug report saw no action since over 3 years ago. Is it still valid? Keywords:
Triaged =>
NEEDINFO It surely is
Marja Van Waes
2016-06-24 21:39:22 CEST
Keywords:
NEEDINFO =>
(none)
Marja Van Waes
2017-12-02 12:26:49 CET
CC:
(none) =>
mageiatools |