diff options
Diffstat (limited to 'backport')
-rwxr-xr-x | backport | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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/ \ |