mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-26 16:11:56 +02:00
eclass/vcs-snapshot: Sync with Gentoo
It's from Gentoo commit 34858e23de6ac549ca662a1dcc7823173567a210.
This commit is contained in:
parent
89247b2a2f
commit
275be745e7
@ -1,10 +1,10 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: vcs-snapshot.eclass
|
# @ECLASS: vcs-snapshot.eclass
|
||||||
# @MAINTAINER:
|
# @MAINTAINER:
|
||||||
# mgorny@gentoo.org
|
# mgorny@gentoo.org
|
||||||
# @SUPPORTED_EAPIS: 6 7 8
|
# @SUPPORTED_EAPIS: 7 8
|
||||||
# @BLURB: support eclass for unpacking VCS snapshot tarballs
|
# @BLURB: support eclass for unpacking VCS snapshot tarballs
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# THIS ECLASS IS NOT NECESSARY FOR MODERN GITHUB AND GITLAB SNAPSHOTS.
|
# THIS ECLASS IS NOT NECESSARY FOR MODERN GITHUB AND GITLAB SNAPSHOTS.
|
||||||
@ -43,7 +43,7 @@
|
|||||||
# in ${WORKDIR}/${P} and ${WORKDIR}/${P}-otherstuff respectively.
|
# in ${WORKDIR}/${P} and ${WORKDIR}/${P}-otherstuff respectively.
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI} in
|
||||||
6|7|8) ;;
|
7|8) ;;
|
||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -102,13 +102,10 @@ vcs-snapshot_src_unpack() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ ! ${renamed_any} ]]; then
|
if [[ ! ${renamed_any} ]]; then
|
||||||
local w=eerror
|
eerror "${FUNCNAME} did not find any archives that needed renaming."
|
||||||
[[ ${EAPI} == 6 ]] && w=eqawarn
|
eerror "Please verify that its usage is really necessary, and remove"
|
||||||
"${w}" "${FUNCNAME} did not find any archives that needed renaming."
|
eerror "the inherit if it is not."
|
||||||
"${w}" "Please verify that its usage is really necessary, and remove"
|
die "${FUNCNAME}: Unnecessary usage detected"
|
||||||
"${w}" "the inherit if it is not."
|
|
||||||
|
|
||||||
[[ ${w} == eerror ]] && die "${FUNCNAME}: Unnecessary usage detected"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user