chrome/installer/mac/signing/model.py
def requirements_string(self, config):
        """Produces a full requirements string for the product.

        Args:
            config: A |config.CodeSignConfig| object.

        Returns:
            A string for designated requirements of the product, which can be
            passed to `codesign --requirements`.
        """
        # If the signing identity indicates ad-hoc (i.e. no real signing
        # identity), do not enforce any requirements. Ad hoc signing will append
        # a hash to the identifier, which would violate the
        # identifier_requirement and most other requirements that would be
        # specified.
        if config.identity == '-':
            return ''

        reqs = []
        if self.identifier_requirement:
            reqs.append('designated => identifier "{identifier}"'.format(
                identifier=self.identifier))
        if self.requirements:
            reqs.append(self.requirements)
        if config.codesign_requirements_basic:
            reqs.append(config.codesign_requirements_basic)
        return ' '.join(reqs)
Produces a full requirements string for the product.

        Args:
            config: A |config.CodeSignConfig| object.

        Returns:
            A string for designated requirements of the product, which can be
            passed to `codesign --requirements`.
        
Produces a full requirements string for the product.
Produces a full requirements string for the product .
def requirements_string(self, config):
        if config.identity == '-':
            return ''
        reqs = []
        if self.identifier_requirement:
            reqs.append('designated => identifier "{identifier}"'.format(
                identifier=self.identifier))
        if self.requirements:
            reqs.append(self.requirements)
        if config.codesign_requirements_basic:
            reqs.append(config.codesign_requirements_basic)
        return ' '.join(reqs)
def requirements_string ( self , config ) : if config . identity == '-' : return '' reqs = [ ] if self . identifier_requirement : reqs . append ( 'designated => identifier "{identifier}"' . format ( identifier = self . identifier ) ) if self . requirements : reqs . append ( self . requirements ) if config . codesign_requirements_basic : reqs . append ( config . codesign_requirements_basic ) return ' ' . join ( reqs )
Produces a full requirements string for the product.
Produces a full requirements string for the product .
"""Produces a full requirements string for the product.

        Args:
            config: A |config.CodeSignConfig| object.

        Returns:
            A string for designated requirements of the product, which can be
            passed to `codesign --requirements`.
        """ # If the signing identity indicates ad-hoc (i.e. no real signing # identity), do not enforce any requirements. Ad hoc signing will append # a hash to the identifier, which would violate the # identifier_requirement and most other requirements that would be # specified.
A string for designated requirements of the product, which can be
passed to `codesign --requirements`.
A string for designated requirements of the product which can be passed to ` codesign -- requirements ` .
self
config
A |config.CodeSignConfig| object.
A |config . CodeSignConfig| object .