openSUSE / libzypp

ZYpp Package Management library
http://doc.opensuse.org/projects/libzypp/HEAD/
Other
116 stars 82 forks source link

CombinedProgressData: reportAlive if source OR target ProgressData ha… #544

Closed mlandres closed 6 months ago

mlandres commented 6 months ago

…s no range

If the target _pd has no range, _pd.max-_pd.min == 0 and so parent_factor=_weight/0 == INFINITY. And so _pd is wrongly incremented (by -2147483648). Actually the value should not be touched if the ProgressData has no range.