aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-05-04 12:44:11 +0100
committerSam James <sam@gentoo.org>2024-05-04 12:47:05 +0100
commit9e889bc74012c4d7bedb9f7fa31d6625be93cf3c (patch)
treed349b5fc8802d3cc9b567a8bf368a9a85bf95b28
parentwrappers: mipsel-linux-gnu: fix ac_cv_type_uid_t cache value (diff)
downloadcrossdev-9e889bc74012c4d7bedb9f7fa31d6625be93cf3c.tar.gz
crossdev-9e889bc74012c4d7bedb9f7fa31d6625be93cf3c.tar.bz2
crossdev-9e889bc74012c4d7bedb9f7fa31d6625be93cf3c.zip
crossdev: write profiles/repo_name
PMS requires it, the key in layout.conf isn't enough. Noticed after pkgcraft rightly complained about it. Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xcrossdev6
1 files changed, 6 insertions, 0 deletions
diff --git a/crossdev b/crossdev
index 7a5ad37..1a63bb8 100755
--- a/crossdev
+++ b/crossdev
@@ -1490,6 +1490,12 @@ set_metadata() {
$(printf '%b' "${this_manifests}")
EOF
+ if [[ ! -f "${CROSSDEV_OVERLAY}"/profiles/repo_name ]] ; then
+ cat <<-EOF > "${CROSSDEV_OVERLAY}"/profiles/repo_name || die "could not write ${CROSSDEV_OVERLAY}/profiles/repo_name"
+ ${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"