aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-05-04 12:47:08 +0100
committerSam James <sam@gentoo.org>2024-05-04 12:47:33 +0100
commitc012baee91797ddbd87fa26f4cb73c9a58de3c0c (patch)
tree46ef78bb54a70321219c0727b9d5344eda6814e3 /crossdev
parentcrossdev: write profiles/repo_name (diff)
downloadcrossdev-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>
Diffstat (limited to 'crossdev')
-rwxr-xr-xcrossdev6
1 files changed, 6 insertions, 0 deletions
diff --git a/crossdev b/crossdev
index 1a63bb8..5eef531 100755
--- a/crossdev
+++ b/crossdev
@@ -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"