add test if we have correct kernel on staging

This commit is contained in:
Dietmar Maurer 2017-11-14 10:43:13 +01:00
parent de416bd67f
commit 95dcef8f94

View File

@ -11,10 +11,17 @@ KREL=1
EXTRAVERSION=-${KREL}-pve
KVNAME=${KERNEL_VER}${EXTRAVERSION}
ARCH=amd64
DIST=stretch
STAGING_REPO=/pve/repoman/staging/pmg/dists/${DIST}/pmg-${RELEASE}/binary-${ARCH}/
KERNEL:=$(shell find ${STAGING_REPO} -name "pve-kernel-${KVNAME}_*deb")
all: ${DEB}
${DEB}: control copyright changelog.Debian postinst postrm proxmox-release-5.x.pubkey
rm -rf build
test -n "${KERNEL}" || false "kernel not found"
mkdir -p build/DEBIAN
mkdir -p build/usr/share/doc/${PACKAGE}
mkdir -p build/etc/apt/trusted.gpg.d