Bug 596821

Summary: upower does not seem to be obsoleting DeviceKit-power
Product: [Fedora] Fedora Reporter: John Villalovos <jvillalo>
Component: upowerAssignee: Richard Hughes <richard>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: rhughes, richard
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-27 15:45:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Villalovos 2010-05-27 15:06:47 UTC
It seems like upower is not correctly obsoleting DeviceKit-power or a bug in yum?

On my system this happens:

# yum list updates
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: download.bos.redhat.com
 * rpmfusion-free: mirror.liberty.edu
 * rpmfusion-free-updates: mirror.liberty.edu
 * rpmfusion-nonfree: mirror.liberty.edu
 * rpmfusion-nonfree-updates: mirror.liberty.edu
 * updates: download.bos.redhat.com
Updated Packages
DeviceKit-power.x86_64                                                 1:0.9.0-1.fc13                                                 fedora

# yum update DeviceKit-power.x86_64
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: download.bos.redhat.com
 * rpmfusion-free: mirror.liberty.edu
 * rpmfusion-free-updates: mirror.liberty.edu
 * rpmfusion-nonfree: mirror.liberty.edu
 * rpmfusion-nonfree-updates: mirror.liberty.edu
 * updates: download.bos.redhat.com
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package DeviceKit-power.x86_64 1:0.9.0-1.fc13 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================
 Package                               Arch                         Version                              Repository                    Size
============================================================================================================================================
Updating:
 DeviceKit-power                       x86_64                       1:0.9.0-1.fc13                       fedora                       105 k

Transaction Summary
============================================================================================================================================
Install       0 Package(s)
Upgrade       1 Package(s)

Total size: 105 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
  file /usr/bin/upower from install of DeviceKit-power-1:0.9.0-1.fc13.x86_64 conflicts with file from package upower-0.9.4-1.fc13.x86_64
  file /usr/lib64/libdevkit-power-gobject.so.1.0.1 from install of DeviceKit-power-1:0.9.0-1.fc13.x86_64 conflicts with file from package upower-0.9.4-1.fc13.x86_64
  file /usr/lib64/libupower-glib.so.1.0.1 from install of DeviceKit-power-1:0.9.0-1.fc13.x86_64 conflicts with file from package upower-0.9.4-1.fc13.x86_64
  file /usr/libexec/upowerd from install of DeviceKit-power-1:0.9.0-1.fc13.x86_64 conflicts with file from package upower-0.9.4-1.fc13.x86_64

Error Summary
-------------

Comment 1 Richard Hughes 2010-05-27 15:34:05 UTC
How did you install DeviceKit-power on F13?

Comment 2 John Villalovos 2010-05-27 15:43:37 UTC
I used preupgrade to upgrade from F12 to F13.

# rpm -q DeviceKit-power
DeviceKit-power-014-1.fc12.x86_64

I'm guessing I just need to remove the DeviceKit-power RPM and I should be okay.

Comment 3 John Villalovos 2010-05-27 15:45:58 UTC
Okay.  Everything seems good now that I have removed the F12 version of DeviceKit-power.  Sorry, I should have done that in the first place.

# yum remove DeviceKit-power
Loaded plugins: fastestmirror, refresh-packagekit
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package DeviceKit-power.x86_64 0:014-1.fc12 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================
 Package                              Arch                        Version                            Repository                        Size
============================================================================================================================================
Removing:
 DeviceKit-power                      x86_64                      014-1.fc12                         @updates/12                      241 k

Transaction Summary
============================================================================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : DeviceKit-power-014-1.fc12.x86_64                                                                                    1/1 

Removed:
  DeviceKit-power.x86_64 0:014-1.fc12                                                                                                       

Complete!

# rpm --verify upower

# yum list updates
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: download.bos.redhat.com
 * rpmfusion-free: mirror.liberty.edu
 * rpmfusion-free-updates: mirror.liberty.edu
 * rpmfusion-nonfree: mirror.liberty.edu
 * rpmfusion-nonfree-updates: mirror.liberty.edu
 * updates: download.bos.redhat.com