diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chroot-run.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index 10285488..924d8f82 100755 --- a/bin/chroot-run.sh +++ b/bin/chroot-run.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2012-2014 Holger Levsen <holger@layer-acht.org> +# Copyright 2012-2016 Holger Levsen <holger@layer-acht.org> # Copyright 2013 Antonio Terceiro <terceiro@debian.org> # released under the GPLv=2 @@ -138,11 +138,18 @@ EOF cat >> $CHROOT_TARGET/tmp/chroot-testrun <<-EOF echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/23jenkins apt-get install build-essential devscripts git +if [ "$1" = "gbp" ] ; then + apt-get install git-buildpackage + git checkout debian +fi if [ -f debian/control ] ; then cat debian/control # install build-depends mk-build-deps -ir fi +if [ "$1" = "gbp" ] ; then + git checkout - +fi EOF fi echo "$*" >> $CHROOT_TARGET/tmp/chroot-testrun |