code: def resolve_name(name, arch, osarch=None):
      '''
      Resolve the package name and arch into a unique name referred to by salt.
      For example, on a 64-bit OS, a 32-bit package will be pkgname.i386.
      '''
      if osarch is None:
          osarch = get_osarch()
  
      if not check_32(arch, osarch) and arch not in (ARCHMAP.get(osarch, osarch), 'noarch'):
          name += '.{0}'.format(arch)
      return namf resolve_name(name, arch, osarch=None):
      '''
      Resolve the package name and arch into a unique name referred to by salt.
      For example, on a 64-bit OS, a 32-bit package will be pkgname.i386.
      '''
      if osarch is None:
          osarch = get_osarch()
  
      if not check_32(arch, osarch) and arch not in (ARCHMAP.get(osarch, osarch), 'noarch'):
          name += '.{0}'.format(arch)
      return name
docs: Resolve the package name and arch into a unique name referred to by salt.
      For example, on a 64-bit OS, a 32-bit package will be pkgname.i386.