packagekit: Fix checking of APT::Periodic::Update-Package-Lists

Authored by apol on Mar 23 2020, 12:02 PM.

Description

packagekit: Fix checking of APT::Periodic::Update-Package-Lists

Summary:
BUG: 419055

Currently PackageKitNotifier attempts to check the frequency by running apt-config dump and looking for the Apt::Periodic::Update-Package-Lists property in its output. However, on my system the property name starts with uppercase APT rather than Apt, and ends with a semicolon.

This patch is a defensive, backward-compatible fix. It assumes that under some circumstances the previous code was correct to look for Apt and no ending semicolon. To cover both cases, I edited the regexp to allow for an optional semicolon, and to make the comparison case-insensitive.

Reviewers: Discover Software Store, apol, ngraham

Reviewed By: Discover Software Store, apol

Subscribers: plasma-devel

Tags: Plasma, Discover Software Store

Differential Revision: https://phabricator.kde.org/D28167

Details

Committed
apolMar 23 2020, 12:05 PM
Reviewer
Discover Software Store
Differential Revision
D28167: packagekit: Fix checking of APT::Periodic::Update-Package-Lists
Parents
R134:20528c8209ce: Merge branch 'Plasma/5.18'
Branches
Unknown
Tags
Unknown