From: Ross Lagerwall Date: Tue, 10 May 2016 12:58:14 +0000 (+0100) Subject: Require --depends X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fd8dadf55f191a537f1eba47be0ba64962730796;p=livepatch-build-tools.git Require --depends WIth the version of xSplice in Xen 4.7, the build-id dependency is required, so require the option. --- diff --git a/xsplice-build b/xsplice-build index 35b9aae..2eb7993 100755 --- a/xsplice-build +++ b/xsplice-build @@ -138,10 +138,7 @@ function create_patch() fi # Create a dependency section - > depends.bin - if [ -n "$DEPENDS" ]; then - perl -e "print pack 'VVVZ*H*', 4, 20, 3, 'GNU', '${DEPENDS}'" >> depends.bin - fi + perl -e "print pack 'VVVZ*H*', 4, 20, 3, 'GNU', '${DEPENDS}'" > depends.bin echo "Creating patch module..." if [ -z "$PRELINK" ]; then @@ -239,6 +236,7 @@ done [ -z "$srcarg" ] && die "Xen directory not given" [ -z "$patcharg" ] && die "Patchfile not given" [ -z "$outputarg" ] && die "Output directory not given" +[ -z "$DEPENDS" ] && die "Build-id dependency not given" SRCDIR="$(realpath -m -- "$srcarg")" PATCHFILE="$(realpath -m -- "$patcharg")"