Bug 846656 - RFE: function for finding if a string corresponds to a known architecture
Summary: RFE: function for finding if a string corresponds to a known architecture
Alias: None
Product: Fedora
Classification: Fedora
Component: hawkey
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2012-08-08 11:02 UTC by Martin Gracik
Modified: 2014-09-30 23:40 UTC (History)
3 users (show)

Fixed In Version: hawkey-0.2.9-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-09-17 22:51:56 UTC
Type: Bug

Attachments (Terms of Use)

Description Martin Gracik 2012-08-08 11:02:24 UTC
Description of problem:

RFE: Add a function to find out if a string corresponds to a known architecture.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

This would be very useful when parsing the package name strings with optional architecture.

Comment 1 Ales Kozumplik 2012-08-09 08:24:31 UTC
Function like that is straightforward.

A more general and a more tricky thing would be returning a list of all architectures known to libsolv. I'll try to see if it's even feasible at the moment.

Yet more general would be a query accepting a NEVRA string with arbitrary parts removed. The query would then try to make a best guess. But that is out of scope now.

Comment 2 Ales Kozumplik 2012-08-09 12:27:18 UTC
81d184d provides hy_sack_list_arches().

Comment 3 Fedora Update System 2012-08-23 12:07:58 UTC
hawkey-0.2.9-1.git8599c55.fc18 has been submitted as an update for Fedora 18.

Comment 4 Fedora Update System 2012-08-23 15:37:13 UTC
Package hawkey-0.2.9-1.git8599c55.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hawkey-0.2.9-1.git8599c55.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-09-17 22:51:56 UTC
hawkey-0.2.9-1.git8599c55.fc18 has been pushed to the Fedora 18 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.