needinfo canceled: [Bug 684364] [RFE] Don't submit reports for obsolete products. Instead ask users to upgrade
by Red Hat Bugzilla
Product: Fedora
Version: rawhide
Component: abrt
Karel Klíč <kklic(a)redhat.com> has canceled Bug Zapper
<triage(a)lists.fedoraproject.org>'s request for needinfo:
Bug 684364: [RFE] Don't submit reports for obsolete products. Instead ask
users to upgrade
https://bugzilla.redhat.com/show_bug.cgi?id=684364
------- Additional Comments from Karel Klíč <kklic(a)redhat.com>
Reassigning to Rawhide.
Fedora Package Database contains collections. A collection corresponds to one
Fedora release. We can read status (EOL or other) there.
For example, Fedora 10:
Id: 19
Name: Fedora
Version: 10
Status: EOL
Fedora 14:
Id: 25
Name: Fedora
Version: 14
Status: ACTIVE
There is a Python library in Fedora which can easily read the data:
import fedora.client
client = fedora.client.PackageDB()
collections = client.get_collection_list()
for collection in collections:
print collection[0]["name"], collection[0]["version"],
collection[0]["statuscode"]
To understand the meaning of statuscode, see
http://bzr.fedorahosted.org/bzr/packagedb/fedora-packagedb-stable/annotat...
%3A/pkgdb.sql
Currently the mapping from the statuscode integer to a meaningful symbol is as
follows. We are probably only interested in EOL == 9.
STATUS_CODES = [ "INVALID_STATUS_CODE",
"ACTIVE",
"ADDED",
"APPROVED",
"AWAITING_BRANCH",
"AWAITING_DEVELOPMENT",
"AWAITING_QA",
"AWAITING_PUBLISH",
"AWAITING_REVIEW",
"EOL",
"DENIED",
"MAINTENANCE",
"MODIFIED",
"OBSOLETE",
"ORPHANED",
"OWNED",
"REJECTED",
"REMOVED",
"UNDER_DEVELOPMENT",
"UNDER_REVIEW",
"DEPRECATED" ]
12 years, 11 months