Description of problem: I am unable to update from zif-0.2.4-0.78.20110918.fc15 to zif-0.2.4-0.93.20110920.fc15 with zif because it refuses to remove the old version of itself. Version-Release number of selected component (if applicable): zif-0.2.4-0.78.20110918.fc15.x86_64 How reproducible: Always. Steps to Reproduce: 1. Try to upgrade zif with zif. Actual results: In KPackageKit, I get this error: failed to commit transaction: Error running transaction: file /etc/zif/zif.conf from install of zif-0.2.4-0.93.20110920git.fc15.x86_64 conflicts with file from zif-0.2.4-0.78.20110918git.fc15.x86_64 file /usr/lib64/girepository-1.0/Zif-1.0.typelib from install of zif-0.2.4-0.93.20110920git.fc15.x86_64 conflicts with file from zif-0.2.4-0.78.20110918git.fc15.x86_64 file /usr/lib64/libzif.so.3.0.2 from install of zif-0.2.4-0.93.20110920git.fc15.x86_64 conflicts with file from zif-0.2.4-0.78.20110918git.fc15.x86_64 With "zif update zif", I get this error instead: The transaction failed: cannot remove protected package zif Expected results: zif can update itself.
Try rebuilding from a more recent git snapshot, it should have been fixed by https://github.com/hughsie/zif/commit/be69ec97bd46a3a57738ee05e5f9713b07df7db3 AFAIK
(In reply to comment #1) > Try rebuilding from a more recent git snapshot, it should have been fixed by > https://github.com/hughsie/zif/commit/be69ec97bd46a3a57738ee05e5f9713b07df7db3 > AFAIK Well, the rpm error will be gone with that commit, but it'll still fail. Basically we just need to check the protected_packages list *just* on explicit user action, and not on every removal action. I've fixed this in: commit 3c213204d1b65cc25c0b40698a30bb8c68a1899a Author: Richard Hughes <richard> Date: Wed Sep 21 13:14:03 2011 +0100 Only prevent 'protected_packages' from removal if it's an explicit user action Resolves https://bugzilla.redhat.com/show_bug.cgi?id=740068 I can update zif just fine now, but please re-open if you have problems with zif-0.2.4-0.98.20110921git or newer. Thanks!