Commit 584d7e292ca12e07a84643cf881610eb8e425c53

Authored by samuel thibault
1 parent cc557e4b
Exists in master

Make sure chroot creation/update worked

Showing 1 changed file with 8 additions and 2 deletions   Show diff stats
build
... ... @@ -85,9 +85,15 @@ dch -r -D $dist ""
85 85 basetgz=/var/cache/pbuilder/base-$builddist.tgz
86 86 if [ ! -f $basetgz ]
87 87 then
88   - sudo pbuilder create --distribution $builddist --basetgz $basetgz --othermirror "deb http://security.debian.org/debian-security $builddist/updates main"
  88 + if ! sudo pbuilder create --distribution $builddist --basetgz $basetgz --othermirror "deb http://security.debian.org/debian-security $builddist/updates main" ; then
  89 + echo "couldn't create chroot"
  90 + exit 1
  91 + fi
89 92 else
90   - sudo pbuilder update --basetgz $basetgz
  93 + if ! sudo pbuilder update --basetgz $basetgz ; then
  94 + echo "couldn't update chroot"
  95 + exit 1
  96 + fi
91 97 fi
92 98  
93 99 DEB_BUILD_OPTIONS="nocheck noddebs parallel=64" pdebuild --debbuildopts -B -- --basetgz "$basetgz"
... ...