Exemple #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
Exemple #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