Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1950041

Summary: PackageKit metadata refresh fail: .repo file metadata_expire changes
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: gnome-sig, jonathan, ngompa13, rdieter, rhughes, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 1903294    

Description Rex Dieter 2021-04-15 15:52:10 UTC
Could be a feature not a bug, but thought I'd mention in case it's possible to address.

While testing PK metadata cache issues, I found a case where dnf and PK metadata cache's were out of sync (not uncommon).  dnf reported a pkg foo from repo bar had an update available, but PK didn't refresh yet.  The Packagekit metadata was somewhere between 12-24hrs old, at least by eyeballing timestamps of stuff under /var/cache/PackageKit/

As a test, I went to the bar.repo file and added
metadata_expire=1h

and ran:
pkcon refresh

I was expecting PackageKit to refresh the repo bar metadata and report and update available, except it didn't. :(

Comment 1 Neal Gompa 2021-04-15 16:18:50 UTC
The only change I've seen here on this is: https://github.com/hughsie/PackageKit/commit/54a616b8edb8391f90ae183989bd98aa87e26b14

Prior to that was my change to read all repo and var directories: https://github.com/hughsie/PackageKit/commit/ed73aa6317595d2c2f1bda7990cbd64efb133f84

Neither of which should have had an impact on this...