aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-11-12 20:00:39 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-11-12 20:01:12 +0000
commit81aa5b61afed5296a5845a3ccab81c390fda43b9 (patch)
treea9bf9c6e5db325c7ec2049a4520a783c82839ea5
parent6b9210150fe78984d81b705e981bf3f97d0f5ad0 (diff)
downloadpbuilder-81aa5b61afed5296a5845a3ccab81c390fda43b9.tar
pbuilder-81aa5b61afed5296a5845a3ccab81c390fda43b9.tar.gz
{create,update}buildenv: consider APTGETOPT also when running apt-get update
-rwxr-xr-xpbuilder-createbuildenv2
-rwxr-xr-xpbuilder-updatebuildenv2
2 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv
index 7f579d2..39f3c31 100755
--- a/pbuilder-createbuildenv
+++ b/pbuilder-createbuildenv
@@ -93,7 +93,7 @@ log "I: Refreshing the base.tgz "
log "I: upgrading packages"
mountproc
$TRAP umountproc_cleanbuildplace_trap exit sighup
-$CHROOTEXEC /usr/bin/apt-get -q update
+$CHROOTEXEC /usr/bin/apt-get -q "${APTGETOPT[@]}" update
case "$(readlink -e "$PBUILDERSATISFYDEPENDSCMD")" in
*-aptitude)
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index ff5a1c4..f0441eb 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -37,7 +37,7 @@ $TRAP umountproc_cleanbuildplace_trap exit sighup
log "I: Refreshing the base.tgz "
log "I: upgrading packages"
-$CHROOTEXEC /usr/bin/apt-get -q update
+$CHROOTEXEC /usr/bin/apt-get -q "${APTGETOPT[@]}" update
# automatically add packages needed for optional features to the chroot