[pbuilder] 01/03: modules: remove_packages: check for package existence in the chroot, not in the host
Mattia Rizzolo
mattia at debian.org
Sun Oct 9 17:20:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository pbuilder.
commit bf1acdc14fbc1e9ab68a1c78e1c6d0baa1291b29
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
---
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