[Piuparts-commits] [piuparts] 01/01: lib/db: fix undefined variable in _compute_package_states()

Holger Levsen holger at layer-acht.org
Wed Mar 15 15:25:38 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 166fbc30e190c0de89435dc44d6a05f4e13c15d2
Author: Andreas Beckmann <anbe at debian.org>
Date:   Wed Mar 15 14:43:22 2017 +0100

    lib/db: fix undefined variable in _compute_package_states()
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 debian/changelog          | 2 ++
 piupartslib/packagesdb.py | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index bf8d1ac..b890b8a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ piuparts (0.77) UNRELEASED; urgency=medium
   * piupartslib/packagesdb.py:
     - Add new state "outdated" to ignore packages if a dependency distro
       already has a newer version.  (Closes: #856846)
+    - Resolve packages in "outdated" state after dependency databases are
+      initialized.
   * piuparts-slave.py:
   * piuparts-analyze.py:
   * piuparts-report.py:
diff --git a/piupartslib/packagesdb.py b/piupartslib/packagesdb.py
index 6f04178..6478f82 100644
--- a/piupartslib/packagesdb.py
+++ b/piupartslib/packagesdb.py
@@ -613,7 +613,7 @@ class PackagesDB:
                     else:
                         self._in_state[state].append(package_name)
                         self._package_state[package_name] = state
-                        done.append(package)
+                        done.append(package_name)
             if not done:
                 # If we didn't do anything this time, we sure aren't going
                 # to do anything the next time either.

-- 
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