[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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 will be freed. Why is a float used instead of
> a long?
> 
> >>> c = apt.Cache()
> >>> p = c["xterm"]
> >>> p.mark_delete()
> >>> c.required_space
> nan
 
Thanks for bugreport and test-case. I merged the fix into the
python-apt bzr repository and it will be part of the next upload.

Cheers,
 Michael



Reply to: