+def parse_deb822(armored_contents, signing_rules=0, keyrings=None):
+ if keyrings == None:
+ keyrings = [ k.keyring_name for k in DBConn().session().query(Keyring).filter(Keyring.active == True).all() ]
+ require_signature = True
+ if signing_rules == -1:
+ require_signature = False
+
+ signed_file = SignedFile(armored_contents, keyrings=keyrings, require_signature=require_signature)
+ contents = signed_file.contents
+