On Fri, Nov 30, 2012 at 9:47 AM, Fernando Nasser <fnasser@redhat.com> wrote:
Hi,

Why are you creating these directories in %post in the firs place?

If you create them in %install (empty) and own them regularly in %file and do the same on
the other packages that install thins on it, they will be properly removed when the last
RPM that owns them go away.

Regards,
Fernando

----- Original Message -----
> From: "Mark Bidewell" <mbidewel@gmail.com>
> To: "Development discussions related to Fedora" <devel@lists.fedoraproject.org>
> Sent: Friday, November 30, 2012 9:11:54 AM
> Subject: Yum Package Remove Order
>
>
> I have been working on packaging software into RPMs for my company.
> These RPMs create directories in %post into which dependent RPMs
> install components. If I yum remove the main package it will be
> erased first by yum prior to erasing the dependent packages. When
> the uninstall scripts for the dependent packages run, they may fail
> due to files and directories being missing that they expect from the
> main package leaving things in an inconsistent state. Is this a bug
> or known behavior we need to account for in some way?
>
>
> Thanks.
>
>
> --
> Mark Bidewell
> http://www.linkedin.com/in/markbidewell
>

I was not aware of %install(empty)  where can I find some documentation?

Thanks

--
Mark Bidewell
http://www.linkedin.com/in/markbidewell