diff options
author | Sam James <sam@gentoo.org> | 2024-05-04 12:47:08 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-05-04 12:47:33 +0100 |
commit | c012baee91797ddbd87fa26f4cb73c9a58de3c0c (patch) | |
tree | 46ef78bb54a70321219c0727b9d5344eda6814e3 | |
parent | crossdev: write profiles/repo_name (diff) | |
download | crossdev-c012baee91797ddbd87fa26f4cb73c9a58de3c0c.tar.gz crossdev-c012baee91797ddbd87fa26f4cb73c9a58de3c0c.tar.bz2 crossdev-c012baee91797ddbd87fa26f4cb73c9a58de3c0c.zip |
crossdev: declare EAPI in profiles/
Declare the EAPI in profiles/, otherwise we're EAPI 0. pkgcraft rightly
complains about this.
* Similar to 9e889bc74012c4d7bedb9f7fa31d6625be93cf3c.
* See also 7f2f74f4e471172ceeceb78913fd8f8c88aa031d in app-eselect/eselect-repository.
Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-x | crossdev | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1496,6 +1496,12 @@ set_metadata() { EOF fi + if [[ ! -f "${CROSSDEV_OVERLAY}"/profiles/eapi ]] ; then + cat <<-EOF > "${CROSSDEV_OVERLAY}"/profiles/eapi || die "could not write ${CROSSDEV_OVERLAY}/profiles/eapi" + ${repo_name} + EOF + fi + # If there is no repos.conf entry for the output overlay, create one here if [[ -n ${CROSSDEV_OVERLAY_CREATE_REPOS_CONF} ]]; then cat <<-EOF > "${CROSSDEV_OVERLAY_CREATE_REPOS_CONF}" || die "could not create the repo conf" |