File conflict when upgrading package
Mattias Ellert
mattias.ellert at fysast.uu.se
Sun Nov 17 23:44:57 UTC 2013
sön 2013-11-17 klockan 22:12 +0100 skrev Sandro Mani:
> Upgrading from xflr5-6.09.05-4.fc21.x86_64 to xflr5-6.09.05-5.fc21.x86_64 however fails with
> Transaction check error:
> file /usr/share/applications/xflr5.desktop from install of xflr5-6.09.05-5.fc21.x86_64 conflicts with file from
> package xflr5-6.09.05-4.fc21.x86_64
You are replacing a directory with an ordinary file. The requires a
%pretrans script. %pretrans scripts must be written in lua:
%pretrans -p <lua>
st = posix.stat("%{_datadir}/applications/%{name}.desktop")
if st and st.type == "directory" then
os.execute("rm -rf %{_datadir}/applications/%{name}.desktop")
end
Mattias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4575 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20131118/83d752dc/attachment-0001.bin>
More information about the devel
mailing list