release: Don't publish CW if !WITH_CLOUDWARE

If WITH_CLOUDWARE is not set, we didn't build BASIC-CLOUDWARE; don't try
to install it into the /VM-IMAGES/ directory as part of ftp-stage.

Fixes:	4771c2e9d1 "release: Publish non-uploaded cloudware bits"
MFC after:	6 days
This commit is contained in:
Colin Percival 2024-06-20 17:38:46 -07:00
parent f34aca55ad
commit 836f00ebb9

View file

@ -209,6 +209,7 @@ vm-images-stage:
${OSRELEASE}-${FS}.${VMFORMAT}.xz
. endfor
. endfor
. if defined(WITH_CLOUDWARE) && !empty(WITH_CLOUDWARE)
. for CW in ${CLOUDWARE}
. if ${CW} == BASIC-CLOUDINIT
. for VMFORMAT in ${${CW}_FORMAT}
@ -225,6 +226,7 @@ vm-images-stage:
. endfor
. endif
. endfor
. endif
cd ${RELEASEDIR}/vmimages && rm -f CHECKSUM.*
. for CHECKSUM in ${CHECKSUM_FILES}
cd ${RELEASEDIR}/vmimages && \
@ -248,6 +250,7 @@ vm-images-stage:
${VM_DIR}/Latest/${OSRELEASE}-${FS}.${VMFORMAT}.xz
. endfor
. endfor
. if defined(WITH_CLOUDWARE) && !empty(WITH_CLOUDWARE)
. for CW in ${CLOUDWARE}
. if ${CW} == BASIC-CLOUDINIT
. for VMFORMAT in ${${CW}_FORMAT}
@ -258,6 +261,7 @@ vm-images-stage:
. endfor
. endif
. endfor
. endif
. for CHECKSUM in ${CHECKSUM_FILES}
cp -p ${RELEASEDIR}/vmimages/CHECKSUM.${CHECKSUM} \
${VM_DIR}/Latest/CHECKSUM.${CHECKSUM}