From 4f64e4e4e821699b3328f350dd77d11222fcb090 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 12 Dec 2017 11:59:04 +0100 Subject: [PATCH] linux-4.9.68: Check for existing revision number We want our kernel revision numbers to be unique over all linux kernel packages. Avoid conflicts by doing a quick check against the available bee files. Patch by Thomas Kreitler --- linux-4.9.68-193.bee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-4.9.68-193.bee b/linux-4.9.68-193.bee index 43758ac59..b7e25db05 100755 --- a/linux-4.9.68-193.bee +++ b/linux-4.9.68-193.bee @@ -25,6 +25,9 @@ FULLKERNELVERSION="${KERNELVERSION}${KERNELLOCAL}" B=${S} +ls ${BEE_PKGDIR}/linux-[0-9].[0-9]*-${PKGREVISION}.x86_64.bee.* 2>/dev/null \ + && echo "A kernel with revision ${PKGREVISION} has already been build." && exit + mee_patch() { echo "PATCH $@" bee_patch $@