Hello, On Oct 19 16:52 K?ištof Želechovski wrote (excerpt):
Dnia ?roda, 16 pa?dziernika 2013 09:50:20 Johannes Meixner pisze:
I assume you do a RPM package upgrade and it is a directory in the already installed old version which was changed into a symbolic link in the new version.
Such a change is not possible with RPM.
I think you could %pre rmdir, %files %exclude the link and %post ln -s as required.
Did you test it? As far as I know it cannot work because %post runs too early (before the old files are removed) where %post means the %post of the new package because one cannot modify the scriptlets of the old (i.e already installed) package. See "the order in which scripts are executed on a single package upgrade" in /usr/share/doc/packages/rpm/manual/triggers Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer