Bug 1307217

Summary: Software Updates widget ignores dnf versionlock plugin
Product: [Fedora] Fedora Reporter: Eric Lavarde <elavarde>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: jonathan, kde-sig, klember, rdieter, rhughes, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-13 13:05:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Lavarde 2016-02-13 08:29:52 UTC
Description of problem:
When using the dnf-plugin-versionlock in order to avoid upgrade of some packages, the widget ignores those locks and upgrades the packages.

Version-Release number of selected component (if applicable):
plasma-pk-updates-0.2-5.fc23.x86_64
python3-dnf-plugins-extras-versionlock-0.0.12-1.fc23.noarch

How reproducible:
Always

Steps to Reproduce:
1. downgrade a package (e.g. dnf downgrade keepassx - will reverse from 2.0 to 0.4)
2. lock it (dnf versionlock add keepassx)
3. dnf upgrade
4. wait for the software update to kick in

Actual results:

Software Updates shows an upgrade of keepassx from 0.4 back to 2.0.

There are two issues with this:

1. there is always a notification that I need as user to actively ignore, even if there is no relevant upgrade
2. if there is more than one update, I can't just accept them because else locked packages are upgraded as well.

Expected results:

The widget is aligned with the state of dnf and ignores version-locked packages.

Additional info:

Comment 1 Rex Dieter 2016-02-13 13:02:43 UTC
PackageKit doesn't use dnf (or it's plugins), sorry.

The only way of preventing certain packages to update that works in both dnf and PackageKit is to add:

exclude=foo

to .repo files in /etc/yum.repos.d/  (for any .repos you want skipped)

Comment 2 Rex Dieter 2016-02-13 13:05:11 UTC

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