parameters: (self)
docstring: Handles the pepper bundles
docstring_summary: Handles the pepper bundles
docstring_tokens: Handles the pepper bundles
function: def _HandlePepper(self):
      '''Handles the pepper bundles'''
      options = self.options
      match = BUNDLE_PEPPER_MATCHER.match(options.bundle_name)
      if match is not None:
        options.bundle_version = int(match.group(1))
      if options.bundle_version is None:
        raise Error('Need to specify a bundle version')
      if options.bundle_revision is None:
        raise Error('Need to specify a bundle revision')
      if options.bundle_name == 'pepper':
        self.options.bundle_name = 'pepper_%s' % options.bundle_version
      if options.desc is None:
        options.desc = ('Chrome %s bundle, revision %s' %
                        (options.bundle_version, options.bundle_revision))
      root_url = options.root_url
      if options.archive_id:
        # Support archive names like trunk.113440 or 17.0.963.3, which is how
        # the Chrome builders archive things.
        root_url = '/'.join([root_url, options.archive_id])
      else:
        # This is the old archive naming scheme
        root_url = '%s/pepper_%s_%s' % (root_url, options.bundle_version,
                                        options.bundle_revision)
      options.mac_arch_url = '/'.join([root_url, 'naclsdk_mac.bz2'])
      options.linux_arch_url = '/'.join([root_url, 'naclsdk_linux.bz2'])
      options.win_arch_url = '/'.join([root_url, 'naclsdk_win.bz2'])
function_tokens: def _HandlePepper ( self ) : options = self . options match = BUNDLE_PEPPER_MATCHER . match ( options . bundle_name ) if match is not None : options . bundle_version = int ( match . group ( 1 ) ) if options . bundle_version is None : raise Error ( 'Need to specify a bundle version' ) if options . bundle_revision is None : raise Error ( 'Need to specify a bundle revision' ) if options . bundle_name == 'pepper' : self . options . bundle_name = 'pepper_%s' % options . bundle_version if options . desc is None : options . desc = ( 'Chrome %s bundle, revision %s' % ( options . bundle_version , options . bundle_revision ) ) root_url = options . root_url if options . archive_id : # Support archive names like trunk.113440 or 17.0.963.3, which is how # the Chrome builders archive things. root_url = '/' . join ( [ root_url , options . archive_id ] ) else : # This is the old archive naming scheme root_url = '%s/pepper_%s_%s' % ( root_url , options . bundle_version , options . bundle_revision ) options . mac_arch_url = '/' . join ( [ root_url , 'naclsdk_mac.bz2' ] ) options . linux_arch_url = '/' . join ( [ root_url , 'naclsdk_linux.bz2' ] ) options . win_arch_url = '/' . join ( [ root_url , 'naclsdk_win.bz2' ] )