Removed package leaves the package folder - why ?
I asked it yesterday on TMO, but no answers yet... I don't know why, but uninstallation of all my packages deletes all files but leaves a folders of the packages. I can't understand why... In debian packages it was easy - deleted all what was installed. Here is a example of my .spec file. It's a simple package with only 3 files: .desktop, .png and aliendalvik-restart that located in /usr/share/jolla-adrestartfolder. Only this folder leaves after uninstallation. (I know, I know the "jolla-" prefix is for jolla apps, it's just example of my first package) Here is my .spec file: http://pastie.org/8745182
Can someone tell me what wrong here please ?
We tried with Coderus to find the reason, but without success :(
I found one interesting explanation about postuninstall script (%postun): http://wiki.mandriva.com/en/Development/Howto/RPM See here the specific stuff: http://pastie.org/8745193
In this way I can add rm -rf /usr/share/jolla-adrestart to this %postun section and it will work perfectly. But I still don't know if this correct way to do for removing packages... Please any advice ?