Bug 1388544 - Attempting to install "python-pkgwat-api" rather than "python2-pkgwat-api" does not work
Summary: Attempting to install "python-pkgwat-api" rather than "python2-pkgwat-api" do...
Keywords:
Status: CLOSED DUPLICATE of bug 1096506
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pkgwat-api
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-25 15:22 UTC by Jeremy Cline
Modified: 2016-10-26 14:01 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-10-26 14:01:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jeremy Cline 2016-10-25 15:22:18 UTC
So this is a bit odd and I haven't really dug into the root cause, _and_ there's a fairly simple work around, but I thought I'd report it anyway.

If you have the latest version of python-pkgwat-api installed, python2-pkgwat-api-0.12-11.fc24.noarch, and try to run ``dnf install python-pkgwat-api``, this is what happens:

[vagrant@hubs-dev ~]$ sudo dnf install python-pkgwat-api
Last metadata expiration check: 0:42:13 ago on Tue Oct 25 14:15:30 2016.
Error: installed package python2-pkgwat-api-0.12-11.fc24.noarch obsoletes python-pkgwat-api < 0.12-11.fc24 provided by python-pkgwat-api-0.12-8.fc24.noarch
(try to add '--allowerasing' to command line to replace conflicting packages)

[vagrant@hubs-dev ~]$ sudo dnf install python-pkgwat-api --allowerasing
Last metadata expiration check: 0:37:00 ago on Tue Oct 25 14:15:30 2016.
Dependencies resolved.
======================================================================
Installing:
 python-pkgwat-api      noarch       0.12-8.fc24      fedora      32 k
Removing:
 python2-pkgwat-api     noarch       0.12-11.fc24     @updates    86 k

Transaction Summary
======================================================================
Install  1 Package
Remove   1 Package

Total size: 32 k
Is this ok [y/N]: N


However, the latest version is already installed if I explicitly say ``python2-pkgwat-api`` and that package seems to provide ``python-pkgwat-api``:

[vagrant@hubs-dev ~]$ sudo dnf install python2-pkgwat-api
Last metadata expiration check: 0:48:08 ago on Tue Oct 25 14:15:30 2016.
Package python2-pkgwat-api-0.12-11.fc24.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
[vagrant@hubs-dev ~]$ sudo dnf provides python-pkgwat-api
Last metadata expiration check: 0:36:53 ago on Tue Oct 25 14:15:30 2016.
python2-pkgwat-api-0.12-11.fc24.noarch : Python API for querying the fedora packages webapp
Repo        : @System

python-pkgwat-api-0.12-8.fc24.noarch : Python API for querying the fedora packages webapp
Repo        : fedora

python2-pkgwat-api-0.12-11.fc24.noarch : Python API for querying the fedora packages webapp
Repo        : updates

Comment 1 Kevin Fenzi 2016-10-25 15:39:20 UTC
This is a long standing dnf bug. ;) 

https://bugzilla.redhat.com/show_bug.cgi?id=1096506

Comment 2 Parag Nemade 2016-10-25 15:52:15 UTC
I think this works fine on F25 at least I checked by asking dnf to install python-pkgwat-api and python2-pkgwat-api and both times result was already installed.
Tested dnf version was dnf-1.1.10-2.fc25

Comment 3 Jeremy Cline 2016-10-26 14:01:11 UTC
(In reply to Kevin Fenzi from comment #1)
> This is a long standing dnf bug. ;) 
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1096506

Ahhh, I'm surprised I've never run into this before. Thanks!

*** This bug has been marked as a duplicate of bug 1096506 ***


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