Ejemplo n.º 1
0
 def _handle_package_signing(self, sign, sign_with, identity):
     if not sign and identity:
         raise exceptions.InvalidSigningConfiguration(
             "sign must be given along with identity")
     self.sign = sign
     self.sign_with = sign_with
     self.identity = identity
Ejemplo n.º 2
0
 def _handle_package_signing(self, sign: bool, sign_with: str,
                             identity: Optional[str]) -> None:
     if not sign and identity:
         raise exceptions.InvalidSigningConfiguration(
             "sign must be given along with identity")
     self.sign = sign
     self.sign_with = sign_with
     self.identity = identity