Bug 846656

Summary: RFE: function for finding if a string corresponds to a known architecture
Product: [Fedora] Fedora Reporter: Martin Gracik <mgracik>
Component: hawkeyAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akozumpl, dmach, jzeleny
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hawkey-0.2.9-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 22:51:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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:
1.
2.
3.
  
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.
https://admin.fedoraproject.org/updates/hawkey-0.2.9-1.git8599c55.fc18

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:
https://admin.fedoraproject.org/updates/FEDORA-2012-12561/hawkey-0.2.9-1.git8599c55.fc18
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.