Description of problem:
Asking for basearch of 'armhfp' throws an exception.
Version-Release number of selected component:
Current master branch.
Steps to Reproduce:
>>> import dnf.rpm
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/dnf/rpm/__init__.py", line 107, in basearch
It throws an exception.
It should return 'armhfp'.
Yum returns 'armhfp' in this case:
>>> import rpmUtils.arch
Unfortunately, armhfp is not architecture, but base-architecture.. in yum it worked because:
if myarch not in arches: # this is dumb, but <shrug>
There are couple of options..
1) You catch KeyError and set your string (which is what yum actually does)
2) We can return same string if it's base-arch we know about
3) We can define some exception which you can catch instead of KeyError
4) You do something different ;)
If you think that 1) or 4) are not something what you want -- feel free to reopen bug.