Re: Help with update issue

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

 



Orion Poplawski wrote, at 10/08/2010 05:52 AM +9:00:
> In paraview 3.8.0, %{_libdir}/paraview/paraview is a directory:
>
> ls -l /usr/lib64/paraview/paraview
> total 660
> -rw-r--r--. 1 root root   4213 Aug  2 15:35 benchmark.py
> -rw-r--r--. 2 root root   4202 Aug  2 16:20 benchmark.pyc
> -rw-r--r--. 2 root root   4202 Aug  2 16:20 benchmark.pyo
> ....
>
> In paraview 3.8.1, it is a file.
>
> It fails to upgrade with:
>
> Error unpacking rpm package paraview-3.8.1-2.fc14.x86_64
> error: unpacking of archive failed on file /usr/lib64/paraview/paraview: cpio:
> rename
> paraview-3.8.0-4.fc14.x86_64 was supposed to be removed but is not!
>
> Anything I can do to fix?
>

One resort to remove the directory in %pre of new rpm, like

%pre
if [ -d %_libdir/paraview/paraview ]
then
   rm -f %_libdir/paraview/paraview/benchmark.py{,c,o}
   rmdir %_libdir/paraview/paraview || \
      mv %_libdir/paraview/paraview{,.rpmsave}
fi

Regards,
Mamoru
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux