rpmUtils.arch

rpmUtils.arch.legitMultiArchesInSameLib(arch=None)
rpmUtils.arch.canCoinstall(arch1, arch2)

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

rpmUtils.arch.archDifference(myarch, targetarch)
rpmUtils.arch.score(arch)
rpmUtils.arch.isMultiLibArch(arch=None)

returns true if arch is a multilib arch, false if not

rpmUtils.arch.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.

rpmUtils.arch.getArchList(thisarch=None)
rpmUtils.arch.getCanonX86Arch(arch)
rpmUtils.arch.getCanonPPCArch(arch)
rpmUtils.arch.getCanonSPARCArch(arch)
rpmUtils.arch.getCanonX86_64Arch(arch)
rpmUtils.arch.getCanonArch(skipRpmPlatform=0)
rpmUtils.arch.getMultiArchInfo(arch='amd64')
rpmUtils.arch.getBestArch(myarch=None)
rpmUtils.arch.getBaseArch(myarch=None)

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.

ArchStorage

class rpmUtils.arch.ArchStorage

Bases: object

class for keeping track of what arch we have set and doing various permutations based on it

Table Of Contents

Previous topic

rpmUtils.__init__

Next topic

rpmUtils.miscutils

This Page