Bug 740068 - zif 20110918 fails to update itself
Summary: zif 20110918 fails to update itself
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: zif
Version: 15
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-20 20:06 UTC by Kevin Kofler
Modified: 2011-09-21 12:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-21 12:17:51 UTC


Attachments (Terms of Use)

Description Kevin Kofler 2011-09-20 20:06:55 UTC
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.

Comment 1 Elad Alfassa 2011-09-21 07:37:54 UTC
Try rebuilding from a more recent git snapshot, it should have been fixed by https://github.com/hughsie/zif/commit/be69ec97bd46a3a57738ee05e5f9713b07df7db3
AFAIK

Comment 2 Richard Hughes 2011-09-21 12:17:51 UTC
(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@hughsie.com>
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!


Note You need to log in before you can comment on or make changes to this bug.