1
0

Fix openSUSE-MicroOS product definition

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/000package-groups?expand=0&rev=70
This commit is contained in:
Dominique Leuenberger 2019-05-05 08:53:26 +00:00 committed by Git OBS Bridge
parent 81a06fc00c
commit 74e1ef669f
2 changed files with 12 additions and 11 deletions

View File

@ -90,14 +90,14 @@ ___CREATE_PRODUCT_FILES___
%post %post
# Update from openSUSE-Tumbleweed-Kubic to openSUSE-MicroOS # Update from openSUSE-Tumbleweed-Kubic to openSUSE-MicroOS
# Fix the baseproduct symlink and make sure, it exists # Fix the baseproduct symlink and make sure, it exists
if [ -L /etc/products.d/baseproduct ] ; then if [ -L %{_sysconfdir}/products.d/baseproduct ] ; then
PRODLINK=$(basename $(readlink -f /etc/products.d/baseproduct)) PRODLINK=$(basename $(readlink -f %{_sysconfdir}/products.d/baseproduct))
if [ "$PRODLINK" == "openSUSE-Tumbleweed-Kubic.prod" ]; then if [ "$PRODLINK" == "openSUSE-Tumbleweed-Kubic.prod" ]; then
rm -f /etc/products.d/baseproduct rm -f %{_sysconfdir}/products.d/baseproduct
fi fi
fi fi
if [ ! -e /etc/products.d/baseproduct ]; then if [ ! -e %{_sysconfdir}/products.d/baseproduct ]; then
ln -sf openSUSE-MicroOS.prod /etc/products.d/baseproduct ln -sf openSUSE-MicroOS.prod %{_sysconfdir}/products.d/baseproduct
fi fi
%files %files

View File

@ -102,7 +102,6 @@
<use group="opensuse_kubic" create_pattern="false"/> <use group="opensuse_kubic" create_pattern="false"/>
<use group="opensuse_kubic.x86_64" create_pattern="false"/> <use group="opensuse_kubic.x86_64" create_pattern="false"/>
</media> </media>
</mediasets>
<media type="image" <media type="image"
flavor="appliance" flavor="appliance"
@ -117,6 +116,8 @@
name="openSUSE-Kubic-appliance" > name="openSUSE-Kubic-appliance" >
<!-- Create no product media, but a flavor release subpackage --> <!-- Create no product media, but a flavor release subpackage -->
</media> </media>
</mediasets>
<xi:include href="opensuse_microos.group"/> <xi:include href="opensuse_microos.group"/>
<xi:include href="opensuse_kubic.group"/> <xi:include href="opensuse_kubic.group"/>