Bug 722849 - yum doesn't handle provides/obsoletes properly
Summary: yum doesn't handle provides/obsoletes properly
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-18 08:50 UTC by Jiri Moskovcak
Modified: 2015-02-01 22:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-18 13:27:53 UTC
Type: ---


Attachments (Terms of Use)

Description Jiri Moskovcak 2011-07-18 08:50:13 UTC
Description of problem:
I'm trying to obsolete 2 packages:

report-plugin-bugzilla
report-config-bugzilla-redhat-com

by one package:

libreport-plugin-bugzilla


yum fails with:

--> Processing Dependency: report-plugin-bugzilla = 0.22-0.fc15 for package: report-config-bugzilla-redhat-com-0.22-0.fc15.x86_64
--> Finished Dependency Resolution
Error: Package: report-config-bugzilla-redhat-com-0.22-0.fc15.x86_64 (@updates)
           Requires: report-plugin-bugzilla = 0.22-0.fc15
           Removing: report-plugin-bugzilla-0.22-0.fc15.x86_64 (@updates)
               report-plugin-bugzilla = 0.22-0.fc15
           Obsoleted By: libreport-plugin-bugzilla-2.0.4.30.gdd4c.dirty-1.fc15.x86_64 (abrt2)
               report-plugin-bugzilla = 0.22-1
           Available: report-plugin-bugzilla-0.20-2.fc15.x86_64 (fedora)
               report-plugin-bugzilla = 0.20-2.fc15

but rpm -Uvh works fine

Version-Release number of selected component (if applicable):
yum-3.2.29-9.fc16.noarch

snippets from my spec file:

%package plugin-bugzilla
Summary: %{name}'s bugzilla plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Obsoletes: abrt-plugin-bugzilla < 2.0.4
Provides: report-plugin-bugzilla = 0.22-1
Obsoletes: report-plugin-bugzilla < 0.22-1
Provides: report-config-bugzilla-redhat-com = 0.22-1
Obsoletes: report-config-bugzilla-redhat-com < 0.22-1

How reproducible:
100%

Steps to Reproduce:
1. create a repo with the latest libreport package
2. yum update
  
Actual results:
yum fails to update the package, but rpm -U works fine

Expected results:
installed libreport-bugzilla, obsoleted report-bugzilla and report-config-bugzilla-redhat-com

Additional info:
the libreport-plugin-bugzilla is obviously in the transaction, but it seems like yum doesn't process all of the provides/obsoletes of that package...

Comment 1 Jiri Moskovcak 2011-07-18 13:27:53 UTC
my bad, yum was using stalled metadata and I didn't expect that yum clean all would clean cache only for enabled repos, so after yum clean all --enablerepo="*" everything works ok.


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