View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#1
Hi
Someone know how to prevent installation of RPM file with the same files structure ?
For example I have 3 hebrew vkb RPM files, all of them have the same structure:
/usr/share/jolla-hebrewvkb/jolla/layouts
/usr/share/jolla-hebrewvkb/font
/usr/share/jolla-hebrewvkb/backup

If one of packages already installed and I trying to install another one, it installed without any problem over the same files... How to prevent it ?

I tried to add this lines to .spec file before packaging:
Code:
%pre
if [ ! -d /usr/share/jolla-hebrewvkb ]; then
:
else
exit 0
fi
or

Code:
%pre
status=$(rpm -qa hebrewvkb*|wc -l)
if [ "$status" > "0" ]; then
exit 0
fi
But it just don't do nothing...
Maybe I need to add something else ? Please, any advice ?

Last edited by Schturman; 2014-01-30 at 19:22.