Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: Marek Szuba <marecki@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] cuda.eclass: EAPI support: add 8, drop 5 and 6
Date: Thu, 15 Jul 2021 05:59:07
Message-Id: ueec0ktic@gentoo.org
In Reply to: [gentoo-dev] [PATCH] cuda.eclass: EAPI support: add 8, drop 5 and 6 by Marek Szuba
1 >>>>> On Thu, 15 Jul 2021, Marek Szuba wrote:
2
3 > case "${EAPI:-0}" in
4 > - 0|1|2|3|4)
5 > + [0-6])
6 > die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
7 > ;;
8 > - 5|6|7)
9 > + 7|8)
10 > ;;
11 > *)
12 > die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
13
14 In the latest bunch of updates, we have changed many eclasses to have
15 only a single error case, and also standardized the die message.
16 Maybe simplify this eclass as well?
17
18 case ${EAPI} in
19 7|8) ;;
20 *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
21 esac

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies