Description of problem: Running Transaction Updating : Thunar-1.2.0-1.fc15.x86_64 1/2 Error unpacking rpm package Thunar-1.2.0-1.fc15.x86_64 warning: /etc/xdg/Thunar/uca.xml created as /etc/xdg/Thunar/uca.xml.rpmnew error: unpacking of archive failed on file /usr/share/doc/Thunar/html/es/images: cpio: rename Thunar-1.0.2-4.fc15.x86_64 was supposed to be removed but is not! : -------- I had the same error originally on /usr/share/doc/Thunar/html/da/images. I removed those files by hand and tried the update again, only to get the error on another directory of image files. My guess is that there is an option missing on the unpacking, or that a previous update has set the incorrect permissions on the files.
Workaround is to remove rm -rf /usr/share/doc/Thunar/ then do the upgrade.
This is an bug in rpm, see bug 447156 *** This bug has been marked as a duplicate of bug 447156 ***
You may want to say that this is a bug in rpm, but actually the fact is that we always fixed this issue on individual components' side. So as (currently) this issue is not supposed to be fixed in rpm side, Thunar must fix this. Reopening.
Can you suggest a working spec patch? I think Christoph has tried the typical suggestions to work around this bug with no luck. See: https://bugzilla.redhat.com/show_bug.cgi?id=447156#c13 Patches welcome.
One example: http://koji.fedoraproject.org/scratch/mtasaka/task_2734026/ ------------------------------------------------------------------ diff --git a/Thunar.spec b/Thunar.spec index 9f5297e..5c4384d 100644 --- a/Thunar.spec +++ b/Thunar.spec @@ -2,7 +2,7 @@ Name: Thunar Version: 1.2.0 -Release: 1%{?dist} +Release: 1.1%{?dist} Summary: Thunar File Manager Group: User Interface/Desktops @@ -122,6 +122,15 @@ desktop-file-install --vendor "" \ rm -rf $RPM_BUILD_ROOT +%pre +for target in %{_defaultdocdir}/Thunar/html/*/images +do + if [ -d $target ] + then + rm -rf $target + fi +done + %post /sbin/ldconfig update-desktop-database &> /dev/null ||: ------------------------------------------------------------------
ok, seems to work around it in simple testing. Pushed to rawhide. http://koji.fedoraproject.org/koji/taskinfo?taskID=2736332 Thanks!