This what was in %preun script: Code: %preun if [ $1 = 0 ]; then // Do stuff specific to uninstalls /usr/sbin/patchmanager -u sailfishos-shutdown-screen else if [ $1 = 1 ]; then // Do stuff specific to upgrades echo "It's just upgrade" fi fi Ancelad already explained that problem maibe from the comments "//"... Before I have posting something on openrepos I always testing it on my device and never had any problem with uninstallation.... Sorry for inconvenient... Nodevel, Jalyst, thanks for your words...
%preun if [ $1 = 0 ]; then // Do stuff specific to uninstalls /usr/sbin/patchmanager -u sailfishos-shutdown-screen else if [ $1 = 1 ]; then // Do stuff specific to upgrades echo "It's just upgrade" fi fi