Package rpmUtils :: Module arch
[hide private]
[frames] | no frames]

Module arch

source code

Classes [hide private]
  ArchStorage
class for keeping track of what arch we have set and doing various permutations based on it
Functions [hide private]
 
legitMultiArchesInSameLib(arch=None) source code
 
canCoinstall(arch1, arch2)
Take two arches and return True if it is possible that they can be installed together with the same nevr.
source code
 
archDifference(myarch, targetarch) source code
 
score(arch) source code
 
isMultiLibArch(arch=None)
returns true if arch is a multilib arch, false if not
source code
 
getBestArchFromList(archlist, myarch=None)
return the best arch from the list for myarch if - myarch is not given, then return the best arch from the list for the canonArch.
source code
 
getArchList(thisarch=None) source code
 
getCanonX86Arch(arch) source code
 
getCanonPPCArch(arch) source code
 
getCanonSPARCArch(arch) source code
 
getCanonX86_64Arch(arch) source code
 
getCanonArch(skipRpmPlatform=0) source code
 
getMultiArchInfo(arch='i686') source code
 
getBestArch(myarch=None) source code
 
getBaseArch(myarch=None)
returns 'base' arch for myarch, if specified, or canonArch if not.
source code
Variables [hide private]
  multilibArches = {'ppc64': ('ppc', 'ppc', 'ppc64'), 's390x': (...
  arches = {'alpha': 'noarch', 'alphaev4': 'alpha', 'alphaev45':...
  canonArch = 'i686'
  __package__ = 'rpmUtils'
Function Details [hide private]

canCoinstall(arch1, arch2)

source code 

Take two arches and return True if it is possible that they can be installed together with the same nevr. Ex: arch1=i386 and arch2=i686 then it will return False. arch1=i386 and arch2=x86_64 will return True. It does not determine whether or not the arches make any sense. Just whether they could possibly install w/o conflict

getBaseArch(myarch=None)

source code 

returns 'base' arch for myarch, if specified, or canonArch if not. base arch is the arch before noarch in the arches dict if myarch is not a key in the multilibArches.


Variables Details [hide private]

multilibArches

Value:
{'ppc64': ('ppc', 'ppc', 'ppc64'),
 's390x': ('s390', 's390x', 's390'),
 'sparc64': ('sparc', 'sparcv9', 'sparc64'),
 'sparc64v': ('sparc', 'sparcv9v', 'sparc64v'),
 'x86_64': ('athlon', 'x86_64', 'athlon')}

arches

Value:
{'alpha': 'noarch',
 'alphaev4': 'alpha',
 'alphaev45': 'alphaev4',
 'alphaev5': 'alphaev45',
 'alphaev56': 'alphaev5',
 'alphaev6': 'alphapca56',
 'alphaev67': 'alphaev6',
 'alphaev68': 'alphaev67',
...