Bug#597421: marked as done (python-apt: apt.cache.Cache.required_space returns NaN in the case of a removal)
Your message dated Wed, 10 Nov 2010 17:51:40 +0100
with message-id <1289407900.2368.18.camel@jak-thinkpad>
and subject line Re: Bug#597421: python-apt: apt.cache.Cache.required_space returns NaN in the case of a removal
has caused the Debian Bug report #597421,
regarding python-apt: apt.cache.Cache.required_space returns NaN in the case of a removal
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--
597421: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597421
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: python-apt: apt.cache.Cache.required_space returns NaN in the case of a removal
- From: Sebastian Heinlein <devel@glatzor.de>
- Date: Sun, 19 Sep 2010 16:54:45 +0200
- Message-id: <20100919145445.28972.98757.reportbug@klapprechner.daheim>
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
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-apt depends on:
ii apt [libapt-pkg4.10] 0.8.5 Advanced front-end for dpkg
ii apt-utils [libapt-inst1.2] 0.8.5 APT utility programs
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.4-15 GCC support library
ii libstdc++6 4.4.4-15 The GNU Standard C++ Library v3
ii python 2.6.6-1 interactive high-level object-orie
ii python-central 0.6.16+nmu1 register and build utility for Pyt
Versions of packages python-apt recommends:
ii iso-codes 3.20-1 ISO language, territory, currency,
ii lsb-release 3.2-23.1 Linux Standard Base version report
ii python2.6 2.6.6-5 An interactive high-level object-o
Versions of packages python-apt suggests:
pn python-apt-dbg <none> (no description available)
ii python-apt-doc 0.7.97.1 Python interface to libapt-pkg (AP
ii python-gtk2 2.17.0-4 Python bindings for the GTK+ widge
ii python-vte 1:0.24.3-1 Python bindings for the VTE widget
-- no debconf information
--- End Message ---
--- Begin Message ---
- To: 597421-close@bugs.debian.org
- Subject: Re: Bug#597421: python-apt: apt.cache.Cache.required_space returns NaN in the case of a removal
- From: Julian Andres Klode <jak@debian.org>
- Date: Wed, 10 Nov 2010 17:51:40 +0100
- Message-id: <1289407900.2368.18.camel@jak-thinkpad>
- In-reply-to: <20100919145445.28972.98757.reportbug@klapprechner.daheim>
- References: <20100919145445.28972.98757.reportbug@klapprechner.daheim>
Source: python-apt
Source-Version: 0.7.98
This bug is closed in version 0.7.98 by mvo:
* fix return type of DebSize() and UsrSize(), thanks to
Sebastian Heinlein, LP: #642936
On So, 2010-09-19 at 16:54 +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
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
--- End Message ---
Reply to: