summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-08-30 17:26:39 +0200
committerHolger Levsen <holger@layer-acht.org>2016-08-30 17:26:39 +0200
commite3954ec16b041e1c3b2380e74042a60290430b9e (patch)
tree1ad4911e52ff3d7a9f5a9211194304ecaa95f6f0 /bin
parent8e3ac6f88587a4d8dfc0c9faea71a7e1cf7b7d81 (diff)
downloadjenkins.debian.net-e3954ec16b041e1c3b2380e74042a60290430b9e.tar.xz
reproducible gpb packages: install gpb when gbp shall be used
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chroot-run.sh9
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