summaryrefslogtreecommitdiff
path: root/backport
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2017-03-11 13:48:58 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2017-03-11 13:48:58 +0100
commit7430f108c3d9e07871c66daedcbce4aa2f5ff9a7 (patch)
treecb160bb17d367d09326663b1bdbab33445d8a6a0 /backport
parent995e65c8ed9d66ed6206c47f01ef2ef503bf790e (diff)
Support stretch (testing) instead of wheezy (oldstable)
Diffstat (limited to 'backport')
-rwxr-xr-xbackport9
1 files changed, 6 insertions, 3 deletions
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/ \

Contact - Imprint