<table><tr><td style="">eliac created this revision.<br />eliac added a project: Discover Software Store.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />eliac requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28167">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>BUG: 419055</p>
<p>Currently <tt style="background: #ebebeb; font-size: 13px;">PackageKitNotifier</tt> attempts to check the frequency by running <tt style="background: #ebebeb; font-size: 13px;">apt-config dump</tt> and looking for the <tt style="background: #ebebeb; font-size: 13px;">Apt::Periodic::Update-Package-Lists</tt> property in its output. However, on my system the property name starts with uppercase <tt style="background: #ebebeb; font-size: 13px;">APT</tt> rather than <tt style="background: #ebebeb; font-size: 13px;">Apt</tt>, and ends with a semicolon.</p>
<p>This patch is a defensive, backward-compatible fix. It assumes that under some circumstances the previous code was correct to look for <tt style="background: #ebebeb; font-size: 13px;">Apt</tt> 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.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R134 Discover Software Store</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28167">https://phabricator.kde.org/D28167</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp</div></div></div><br /><div><strong>To: </strong>eliac<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, semareit, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ixoos, ZrenBot, James, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>