The global progress bar is calculated at line 192 of /usr/lib/perl5/vendor_perl/5.16.3/gurpm/RPMProgressDialog.pm In some cases (I always launch tools from terminal to see messages) a lot of error messages are displayed, telling the percent value is out of bond (it must be betwenn 0.00 and 1.00). After doing some tests, it appears the problem is triggered when downloading of some packages fail; if a lot of them fail (for example, due to a network problem :) ), and you click on "continue anyway"; then the calculated number of packages can become negative; and as a result the calculated fraction becomes negative, that is, inferior to 0.00, which isn't allowed. The number of packages to install should obiously never be negative, so there is a bug in the logic calculating that value somewhere. PS: a maybe related bug (maybe fixed?) : bug #778 Reproducible: Steps to Reproduce:
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)"
Keywords: (none) => TriagedAssignee: bugsquad => thierry.vignaud
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 => NEEDINFOCC: (none) => marja11
It surely is
Keywords: NEEDINFO => (none)
CC: (none) => mageiatools