Skip to content

Commit

Permalink
moved pre script to opensuse only (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Nov 7, 2018
1 parent 7b38c36 commit d60cd7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/yast2-theme.spec
Expand Up @@ -287,6 +287,8 @@ rm -rf $RPM_BUILD_ROOT/usr/share/icons/{crystal,oxygen}
%fdupes $RPM_BUILD_ROOT%{yast_themedir}
%fdupes $RPM_BUILD_ROOT/usr/share/icons

%if 0%{?is_opensuse}

# ../current/icons is a directory in older versions of yast2-branding-openSUSE.
# While update via cpio this directory cannot be overwritten by a link with the same name.
# This link is provided by the newer versions of yast2-branding-openSUSE. So we have to remove
Expand All @@ -296,8 +298,6 @@ if test -L %{yast_themedir}/current ; then
rm %{yast_themedir}/current
fi

%if 0%{?is_opensuse}

%post -n yast2-branding-openSUSE-Oxygen
if test -L %{yast_themedir}/current/icons ; then
rm %{yast_themedir}/current/icons
Expand Down

0 comments on commit d60cd7c

Please sign in to comment.