Skip to content

Commit

Permalink
Attempt to work around strange RPM issue
Browse files Browse the repository at this point in the history
  • Loading branch information
L3337 committed Apr 20, 2023
1 parent d68306b commit 4e0fb04
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,14 @@ def parse_args():
%postun
%{{__rm}} -f %{{_bindir}}/{0}
%{{__rm}} -rf %{{_usr}}/share/doc/{0}
%{{__rm}} -f %{{_usr}}/share/pixmaps/{0}.png
%{{__rm}} -f %{{_usr}}/share/pixmaps/{0}.ico
%{{__rm}} -f %{{_usr}}/share/applications/{0}.desktop
%{{__rm}} -f %{{_usr}}/share/mime/packages/{0}.xml
if [ ! -d /opt/stargate ]; then
%{{__rm}} -f %{{_bindir}}/{0}
%{{__rm}} -rf %{{_usr}}/share/doc/{0}
%{{__rm}} -f %{{_usr}}/share/pixmaps/{0}.png
%{{__rm}} -f %{{_usr}}/share/pixmaps/{0}.ico
%{{__rm}} -f %{{_usr}}/share/applications/{0}.desktop
%{{__rm}} -f %{{_usr}}/share/mime/packages/{0}.xml
fi
%files
Expand Down

0 comments on commit 4e0fb04

Please sign in to comment.