aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRitesh Raj Sarraf <rrs@debian.org>2015-10-03 16:09:43 +0530
committerMattia Rizzolo <mattia@mapreri.org>2015-10-04 08:21:44 +0000
commit015fe5bc9e7f373013b16b18f09f109646af1787 (patch)
tree866520f2860305602a12baf8743350bbf4b75d8b
parentb15f043056c5cd4eb5f70f3f68e25bdd89f14f93 (diff)
downloadpbuilder-015fe5bc9e7f373013b16b18f09f109646af1787.tar
pbuilder-015fe5bc9e7f373013b16b18f09f109646af1787.tar.gz
Add debdelta support, enable optionally via pbuilderrc or the command line.
Closes: #602711 Signed-off-by: Ritesh Raj Sarraf <rrs@debian.org>
-rwxr-xr-xpbuilder-checkparams4
-rwxr-xr-xpbuilder-updatebuildenv5
2 files changed, 9 insertions, 0 deletions
diff --git a/pbuilder-checkparams b/pbuilder-checkparams
index 07534ba..15f26cc 100755
--- a/pbuilder-checkparams
+++ b/pbuilder-checkparams
@@ -217,6 +217,10 @@ while [ -n "$1" ]; do
ALLOWUNTRUSTED=yes;
shift;
;;
+ --debdelta)
+ DEBDELTA=yes;
+ shift;
+ ;;
--keyring)
APTKEYRINGS[${#APTKEYRINGS[@]}]="$2";
shift; shift;
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index 13dd043..713ad6e 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -41,6 +41,11 @@ log "I: Refreshing the base.tgz "
log "I: upgrading packages"
$CHROOTEXEC /usr/bin/apt-get -q update
+if [ "$DEBDELTA" = "yes" ]; then
+ log "I: Using debdelta-upgrade for available deltas"
+ $CHROOTEXEC /usr/bin/debdelta-upgrade
+fi
+
case "$(readlink -e "$PBUILDERSATISFYDEPENDSCMD")" in
*-aptitude)
EXTRAPACKAGES="$EXTRAPACKAGES aptitude"