diff --git a/rpm/sailfishos-chum-gui-installer.spec b/rpm/sailfishos-chum-gui-installer.spec index 0a86be4..5ce9f11 100644 --- a/rpm/sailfishos-chum-gui-installer.spec +++ b/rpm/sailfishos-chum-gui-installer.spec @@ -6,7 +6,7 @@ Name: sailfishos-chum-gui-installer # natural number greater or equal to 1, which may be prefixed with one of # {alpha,beta,rc,release} (e.g., "beta3"). For details and reasons, see # https://github.com/storeman-developers/harbour-storeman-installer/wiki/Git-tag-format -Version: 0.2.1 +Version: 0.3.0 Release: 1 Group: Applications/System URL: https://github.com/sailfishos-chum/%{name} @@ -138,6 +138,15 @@ fi # (`%%pre*`, `%%post*`, `%%trigger*` and `%%file*`). exit 0 +%postun +if [ "$1" = 0 ] # Removal +then + ssu rr sailfishos-chum + rm -f /var/cache/ssu/features.ini + ssu ur +fi +exit 0 + %posttrans # At the very end of every install or upgrade # The sailfishos-chum-gui-installer script must be started fully detached