Skip to content

Commit

Permalink
linux: Check for existing revision number
Browse files Browse the repository at this point in the history
We do 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.
  • Loading branch information
thomas authored and pmenzel committed Jan 8, 2018
1 parent 4211d4b commit 80d1902
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions linux-4.14.4-192.bee
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,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 $@
Expand Down

0 comments on commit 80d1902

Please sign in to comment.