[pbuilder] 01/02: modules: remove_packages: check for package existence in the chroot, not in the host

Mattia Rizzolo mattia at debian.org
Thu Dec 15 21:56:06 UTC 2016


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

mattia pushed a commit to annotated tag 0.226.1ubuntu0.1
in repository pbuilder.

commit 8a097aedaa0baac41879ca1988eea94535171b2f
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun Oct 9 15:32:18 2016 +0000

    modules: remove_packages: check for package existence in the chroot, not in the host
    
    Closes: #840146
    LP: #1640892
---
 pbuilder-modules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pbuilder-modules b/pbuilder-modules
index 6e2377f..e6a9e08 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -544,7 +544,7 @@ function remove_packages () {
     local pkg
     local toremove=()
     for pkg in "$@"; do
-        if (dpkg -s "$pkg" 2>&1)>/dev/null ; then
+        if ($CHROOTEXEC dpkg -s "$pkg" 2>&1)>/dev/null ; then
             if (_contains ${EXTRAPACKAGES[@]} "$pkg" || _contains ${EXTRAPACKAGES[@]} "${pkg}-"); then
                 log.d "not removing $pkg as it's also explicitely listed in EXTRAPACKAGES"
             else

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



More information about the Pbuilder-maint mailing list