Allow hotfixes.

Useful for quick binary searches while avoiding the
"dput" delay in the PPA.
Some problems are only reproducible in the Upstream CI, sadly...

Change-Id: I541fedcb7c793fc5b4a1dd28607af7f01fbbfb84
This commit is contained in:
Philipp Marek 2016-08-05 10:51:47 +02:00
parent d4497771b3
commit c76a1dedc5

View File

@ -14,7 +14,7 @@ function pre_install_drbd_devstack {
# install packages normally
sudo apt-get update
sudo apt-get install --yes debhelper python-dbus dbus \
sudo apt-get install --yes debhelper python-dbus dbus patch \
lvm2 thin-provisioning-tools drbd-utils drbd-dkms python-drbdmanage
# ensure we're starting with upstream config file, ie.
@ -22,6 +22,14 @@ function pre_install_drbd_devstack {
# processes later on work as intended
sudo apt-get install --reinstall -o Dpkg::Options::=--force-confnew python-drbdmanage
# Hotfix needed? Avoid dput delay.
HOTFIXURL=http://openstack-ci-pkgs.linbit.com/hotfix/hf.patch
HOTFIXFILE="${FILES}/drbdhotfix.patch"
if wget -O "$HOTFIXFILE" "$HOTFIXURL" ; then
( cd / ; sudo patch --dry-run --forward --verbose -p0 ) < "$HOTFIXFILE" &&
( cd / ; sudo patch --forward --verbose -p0 ) < "$HOTFIXFILE"
fi
return 0
}