[Piuparts-commits] [piuparts] 01/01: piuparts.py: Report adequate version used.

Holger Levsen holger at moszumanska.debian.org
Sat Jan 25 21:32:41 UTC 2014


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

holger pushed a commit to branch develop
in repository piuparts.

commit 4cd9ed2f04aebcf8080e0d1017cb12cb6ecebbb7
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Jan 25 21:32:20 2014 +0000

    piuparts.py: Report adequate version used.
---
 debian/changelog | 6 ++++--
 piuparts.py      | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 367203a..8647f32 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -32,8 +32,10 @@ piuparts (0.57) UNRELEASED; urgency=low
   * Add more piuparts exceptions.
 
   [ Holger Levsen ]
-  * piuparts.py: Check the installation status of the packages after
-    installing them. Thanks to Julien Cristau for the patch! (Closes: #718544)
+  * piuparts.py:
+    - Check the installation status of the packages after
+      installing them. Thanks to Julien Cristau for the patch! (Closes: #718544)
+    - Report adequate version used.
 
  -- Holger Levsen <holger at debian.org>  Fri, 10 Jan 2014 01:00:43 +0100
 
diff --git a/piuparts.py b/piuparts.py
index 473100e..12cf29a 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1279,6 +1279,8 @@ class Chroot:
         """Run adequate and categorize output according to our needs. """
         packages = [p.split("=", 1)[0].strip() for p in packages if not p.endswith("=None")]
         if packages and settings.adequate and os.path.isfile('/usr/bin/adequate'):
+            (status, output) = run(["dpkg-query", "-f", "${Version}\n", "-W", "adequate"], ignore_errors=True)
+            logging.info("Running adequate version %s now." % output)
             adequate_tags = [
                     'bin-or-sbin-binary-requires-usr-lib-library',
                     'library-not-found',

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