[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: gallery2-2.3-3.fc10.noarch on F10 x86_64 updates-testing has error

On Mon, Feb 09, 2009 at 09:31:57AM -0600, Jon Ciesla wrote:
> > On Sun, Feb 08, 2009 at 11:32:49AM -0700, stan wrote:
> >> error: unpacking of archive failed on file
> >> /usr/share/gallery2/lib/smarty:
> >
> hi, new gallery2 maintainer.  My fault, see:
> https://bugzilla.redhat.com/show_bug.cgi?id=484240

Comment #3 in there says "The cause of the original problem is that
gallery2 is trying to replace a directory with a symlink".

> Currently awaiting suggestions for fixing it.

Assuming than an offending directory is really used only by gallery2
then something like that in a %pre script of a replacement package
should work (not really deeply tested):

  if [ ! -h /offending/directory -a -d /offending/directory ] ; then
     rm -rf /offending/directory

and then cpio should not have problems.  Only that means that if a
transaction will be not completed then you may be left with a damage
(but this is always an issue).

The trouble is compouded by yum which does first an installation of
a new package and a cleanup phase only later.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]