From 7430f108c3d9e07871c66daedcbce4aa2f5ff9a7 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 11 Mar 2017 13:48:58 +0100 Subject: Support stretch (testing) instead of wheezy (oldstable) --- backport | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'backport') diff --git a/backport b/backport index c363875..ed47e2f 100755 --- a/backport +++ b/backport @@ -24,7 +24,7 @@ rcrandir=/home/jranke/svn/website/www/ranke/r-cran usage() { -echo "Usage: ./backport [options] sourcepackage wheezy|jessie" +echo "Usage: ./backport [options] sourcepackage stretch|jessie" echo "Options:" echo " -k, --keep Keep copied source package and directory used for package building" echo " -s, --skip Skip apt-get update/upgrade and pbuilder update" @@ -60,7 +60,7 @@ pkg=$1 DIST=$2 # Validate distribution argument -if [ $DIST != "wheezy" ] && [ $DIST != "jessie" ]; then usage; exit 1; fi +if [ $DIST != "stretch" ] && [ $DIST != "jessie" ]; then usage; exit 1; fi export DIST # Set required r-base-dev version for packages build-depending on R @@ -129,7 +129,10 @@ else if [ "$skip" = false ] then - sudo -E pbuilder update + sudo -E pbuilder update \ + --distribution $DIST \ + --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz \ + --aptcache /var/cache/pbuilder/$DIST-$ARCH/aptcache fi sudo -E pdebuild --debbuildopts '-sa' \ --buildresult $rcrandir/$DIST-cran3/ \ -- cgit v1.2.1