Commit 50ce701e authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [Debian] rebuild should only trigger for non-linux packages

BugLink: http://bugs.launchpad.net/bugs/1498862Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent cc2ab0c8
#!/bin/sh
# If we are triggering for just linux or linux-meta we know we have
# just built the kernel and there is no point in repeating that
# build, it just wastes time. (LP: #1498862)
build_needed=0
for trigger in ${ADT_TEST_TRIGGERS:-force}
do
case "$trigger" in
linux/*|linux-lts-*/*|linux-meta*/*) ;;
*) build_needed=1 ;;
esac
done
if [ "$build_needed" -eq 0 ]; then
echo "rebuild: short circuiting build for '${ADT_TEST_TRIGGERS}'"
exit 0
fi
set -e
dpkg-buildpackage -rfakeroot -us -uc -b
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment