[Piuparts-commits] [piuparts] 01/01: p: query the apt version in the chroot

Holger Levsen holger at layer-acht.org
Tue Jan 17 13:22: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 647892d75d747ec1ac678d00f5128ef043394677
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue Jan 17 13:49:59 2017 +0100

    p: query the apt version in the chroot
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 debian/changelog | 1 +
 piuparts.py      | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 5d04cef..c68ee3e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ piuparts (0.75) UNRELEASED; urgency=medium
     - Add --shell-on-error option to simplify debugging of piuparts failures.
       Starts an interactive shell in the chroot if an error occurred.
     - Unmount /proc/sys/fs/binfmt_misc only if mounted.
+    - Query the apt version in the chroot.  (Closes: #851517)
   * piuparts.conf:
     - Add new suite: stretch-rcmd (test with --install-recommends).
     - Add new suite: jessie2stretch-rcmd (test with --install-recommends).
diff --git a/piuparts.py b/piuparts.py
index 73182cf..b013340 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1202,7 +1202,7 @@ class Chroot:
             # - the new approach successfully handles simultaneously
             #   installing a new binary package and its transitional
             #   dummy package
-            (status, output) = run(["dpkg-query", "-f", "${Version}\n", "-W", "apt"], ignore_errors=True)
+            (status, output) = self.run(["dpkg-query", "-f", "${Version}\n", "-W", "apt"], ignore_errors=True)
             apt_can_install_debs = LooseVersion(output.strip()) >= LooseVersion("1.1")
             apt_can_install_debs = False
 

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