[Piuparts-commits] [piuparts] 37/51: p-m: status: do not report obsolete states (with 0 packages)

Holger Levsen holger at layer-acht.org
Thu Jul 20 21:15:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 64cd6ba660ccbe4128788236f7fbdb524448289a
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sat Jul 1 17:20:04 2017 +0200

    p-m: status: do not report obsolete states (with 0 packages)
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 piuparts-master-backend.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/piuparts-master-backend.py b/piuparts-master-backend.py
index 3e87c41..ef6f6df 100644
--- a/piuparts-master-backend.py
+++ b/piuparts-master-backend.py
@@ -312,7 +312,7 @@ class Master(Protocol):
         if self._binary_db._recycle_mode:
             stats += "(recycle) "
         total = 0
-        for state in self._binary_db.get_states():
+        for state in self._binary_db.get_active_states():
             count = len(self._binary_db.get_pkg_names_in_state(state))
             total += count
             stats += "%s=%d " % (state, count)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list