parameters: (self, arch)
docstring: Return the build os label in the binary package to download.
  
          Example, "rhel55" for redhat, "ubuntu1204" for ubuntu, "debian81" for debian,
          "suse11" for suse, etc.
docstring_summary: Return the build os label in the binary package to download.
docstring_tokens: Return the build os label in the binary package to download .
function: def build_os(self, arch):
          """Return the build os label in the binary package to download.
  
          Example, "rhel55" for redhat, "ubuntu1204" for ubuntu, "debian81" for debian,
          "suse11" for suse, etc.
          """
          # Community builds only support amd64
          if arch not in ['x86_64', 'ppc64le', 's390x', 'arm64', 'aarch64']:
              raise Exception("BUG: unsupported architecture (%s)" % arch)
  
          if re.search("(suse)", self.dname):
              return ["suse11", "suse12", "suse15"]
          elif re.search("(redhat|fedora|centos)", self.dname):
              return ["rhel82", "rhel80", "rhel70", "rhel71", "rhel72", "rhel62", "rhel55", "rhel67"]
          elif self.dname in ['amazon', 'amazon2']:
              return [self.dname]
          elif self.dname == 'ubuntu':
              return [
                  "ubuntu1204",
                  "ubuntu1404",
                  "ubuntu1604",
                  "ubuntu1804",
                  "ubuntu2004",
              ]
          elif self.dname == 'debian':
              return ["debian81", "debian92", "debian10"]
          else:
              raise Exception("BUG: unsupported platform?")
function_tokens: def build_os ( self , arch ) : # Community builds only support amd64 if arch not in [ 'x86_64' , 'ppc64le' , 's390x' , 'arm64' , 'aarch64' ] : raise Exception ( "BUG: unsupported architecture (%s)" % arch ) if re . search ( "(suse)" , self . dname ) : return [ "suse11" , "suse12" , "suse15" ] elif re . search ( "(redhat|fedora|centos)" , self . dname ) : return [ "rhel82" , "rhel80" , "rhel70" , "rhel71" , "rhel72" , "rhel62" , "rhel55" , "rhel67" ] elif self . dname in [ 'amazon' , 'amazon2' ] : return [ self . dname ] elif self . dname == 'ubuntu' : return [ "ubuntu1204" , "ubuntu1404" , "ubuntu1604" , "ubuntu1804" , "ubuntu2004" , ] elif self . dname == 'debian' : return [ "debian81" , "debian92" , "debian10" ] else : raise Exception ( "BUG: unsupported platform?" )