From 4e0fb043897e615deec826572201c04042b8083c Mon Sep 17 00:00:00 2001 From: Anon McHacker Date: Thu, 20 Apr 2023 00:43:16 -0700 Subject: [PATCH] Attempt to work around strange RPM issue --- scripts/rpm.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/rpm.py b/scripts/rpm.py index dad677a2..93b97b1a 100755 --- a/scripts/rpm.py +++ b/scripts/rpm.py @@ -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