def master?
      !self.yum? || # non-yum repos
          self.in_default_view? || # default content view repos
          (self.archive? && !self.content_view.composite) || # non-composite content view archive repos
          (self.content_view.composite? && self.component_source_repositories.count > 1) # composite archive repo with more than 1 source repository
    end
def master?
      !self.yum? || # non-yum repos
          self.in_default_view? || # default content view repos
          (self.archive? && !self.content_view.composite) || # non-composite content view archive repos
          (self.content_view.composite? && self.component_source_repositories.count > 1) # composite archive repo with more than 1 source repository
    end
a master repository actually has content (rpms, errata, etc) in the pulp repository.  For these repositories, we can use the YumDistributor
 to generate metadata and can index the content from pulp, or for the case of content view archives without filters, can also use the YumCloneDistributor