'Make an app private.'

def _process_private(self):

    if self.addon.has_incomplete_status():
        return
    self.addon.sign_if_packaged(self.version.pk)
    if (File.objects.filter(version__addon__pk=self.addon.pk, status=mkt.STATUS_PUBLIC).count() == 0):
        self.set_files(mkt.STATUS_PUBLIC, self.version.files.all())
    else:
        self.set_files(mkt.STATUS_APPROVED, self.version.files.all())
    if (self.addon.status not in (mkt.STATUS_PUBLIC, mkt.STATUS_UNLISTED)):
        self.set_addon(status=mkt.STATUS_APPROVED, highest_status=mkt.STATUS_APPROVED)
    self.set_reviewed()
    self.create_note(mkt.LOG.APPROVE_VERSION_PRIVATE)
    log.info((u'Making    %s    approved' % self.addon))
