maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   How to prevent installation of RPM file ? (https://talk.maemo.org/showthread.php?t=92559)

Schturman 2014-02-03 07:50

Re: How to prevent installation of RPM file ?
 
Quote:

Originally Posted by Penguin (Post 1410558)
Is there something in /usr/share/jolla-adrestart that your application writes there in installation scripts or after installation during runtime? All files in that directory must be included into the rpm otherwise it will not remove it as there are files not belonging to the rpm package uninstalled.

No.. it's only one file...
After uninstallation the file itself disappear, but the folder not deleted from /usr/share... This is what I can't understand, why folder staying here...

rainisto 2014-02-03 08:28

Re: How to prevent installation of RPM file ?
 
if you create some files in prein or in postin, you can use %ghost for marking the ownership for them in your .spec file. That way they are removed during uninstall.

Schturman 2014-02-03 08:49

Re: How to prevent installation of RPM file ?
 
Quote:

Originally Posted by rainisto (Post 1410582)
if you create some files in prein or in postin, you can use %ghost for marking the ownership for them in your .spec file. That way they are removed during uninstall.

Specify in this package I use only %files and %defattr(4755,root,root)
it already have my folder with binary file before packaging.
From what you say, I should add path of my folder to %ghost ?


All times are GMT. The time now is 11:00.

vBulletin® Version 3.8.8