forked from pool/000package-groups
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:
parent
81a06fc00c
commit
74e1ef669f
@ -90,14 +90,14 @@ ___CREATE_PRODUCT_FILES___
|
||||
%post
|
||||
# Update from openSUSE-Tumbleweed-Kubic to openSUSE-MicroOS
|
||||
# Fix the baseproduct symlink and make sure, it exists
|
||||
if [ -L /etc/products.d/baseproduct ] ; then
|
||||
PRODLINK=$(basename $(readlink -f /etc/products.d/baseproduct))
|
||||
if [ -L %{_sysconfdir}/products.d/baseproduct ] ; then
|
||||
PRODLINK=$(basename $(readlink -f %{_sysconfdir}/products.d/baseproduct))
|
||||
if [ "$PRODLINK" == "openSUSE-Tumbleweed-Kubic.prod" ]; then
|
||||
rm -f /etc/products.d/baseproduct
|
||||
rm -f %{_sysconfdir}/products.d/baseproduct
|
||||
fi
|
||||
fi
|
||||
if [ ! -e /etc/products.d/baseproduct ]; then
|
||||
ln -sf openSUSE-MicroOS.prod /etc/products.d/baseproduct
|
||||
if [ ! -e %{_sysconfdir}/products.d/baseproduct ]; then
|
||||
ln -sf openSUSE-MicroOS.prod %{_sysconfdir}/products.d/baseproduct
|
||||
fi
|
||||
|
||||
%files
|
||||
|
@ -102,7 +102,6 @@
|
||||
<use group="opensuse_kubic" create_pattern="false"/>
|
||||
<use group="opensuse_kubic.x86_64" create_pattern="false"/>
|
||||
</media>
|
||||
</mediasets>
|
||||
|
||||
<media type="image"
|
||||
flavor="appliance"
|
||||
@ -117,6 +116,8 @@
|
||||
name="openSUSE-Kubic-appliance" >
|
||||
<!-- Create no product media, but a flavor release subpackage -->
|
||||
</media>
|
||||
</mediasets>
|
||||
|
||||
|
||||
<xi:include href="opensuse_microos.group"/>
|
||||
<xi:include href="opensuse_kubic.group"/>
|
||||
|
Loading…
Reference in New Issue
Block a user