Bug#597421: python-apt: apt.cache.Cache.required_space returns NaN in the case of a removal

2010-09-20 Thread Michael Vogt
On Sun, Sep 19, 2010 at 04:54:45PM +0200, Sebastian Heinlein wrote: Package: python-apt Version: 0.7.97.1 Severity: normal If a package is marked for removal the required_space property of the apt.cache.Cache returns Not a Number. It should be a negative value to represent disk space which

Bug#597421: python-apt: apt.cache.Cache.required_space returns NaN in the case of a removal

2010-09-19 Thread Sebastian Heinlein
Package: python-apt Version: 0.7.97.1 Severity: normal If a package is marked for removal the required_space property of the apt.cache.Cache returns Not a Number. It should be a negative value to represent disk space which will be freed. Why is a float used instead of a long? c = apt.Cache() p