Bug 526279 - PK doesn't parse updateinfo correctly
Summary: PK doesn't parse updateinfo correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-29 16:06 UTC by James Antill
Modified: 2010-03-09 03:29 UTC (History)
3 users (show)

Fixed In Version: PackageKit-0.5.7-1.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-20 17:09:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description James Antill 2009-09-29 16:06:49 UTC
Description of problem:
 Atm. yum --security doesn't install qt, because the epoch information is wrong (see bug 519405). However PK says that there is a qt security errata ... which implies it is parsing the updateinfo incorrectly.

 This is probably not a huge bug, because rel-eng hould always bump the release as well as the epoch.

Comment 1 Richard Hughes 2009-10-02 09:37:29 UTC
Any more pointers to where the bug could be? I'm not sure I understand why PK is getting it wrong. Thanks.

Comment 2 James Antill 2009-10-04 04:59:58 UTC
 In get_updates() you have:

                # Get info about package in updates info
                notice = md.get_notice((pkg.name, pkg.version, pkg.release))
                if notice:
                    status = self._get_status(notice)
                    pkgfilter.add_custom(pkg, status)
                else:
                    pkgfilter.add_custom(pkg, INFO_NORMAL)

...you want to be using get_applicable_notices(), which will fix this bug and will solve the other bug of:

Installed: pkg-1-1.i386
Security Errata: pkg-2-1.i386
Update: pkg-3-1.i386

...as "get_applicable_notices() for (pkg, i386, 0, 3, 1)" will give you the security errata notice.

Comment 3 Richard Hughes 2010-01-20 17:09:37 UTC
commit 2bd925a842905d38fb1c40de7ac60e72ed5ab08f
Author: Richard Hughes <richard>
Date:   Wed Jan 20 17:09:01 2010 +0000

    yum: Ensure we look in all update notices for a security update. Fixes rh#526279

Comment 4 Fedora Update System 2010-03-03 16:01:05 UTC
PackageKit-0.5.7-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/PackageKit-0.5.7-1.fc12

Comment 5 Fedora Update System 2010-03-09 03:29:42 UTC
PackageKit-0.5.7-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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