Skip to content

Commit

Permalink
Merge pull request #531 from lubosmj/logical-operator-fix-6077
Browse files Browse the repository at this point in the history
Fix an invalid logical operator
  • Loading branch information
dkliban committed Feb 12, 2020
2 parents 700366e + fcdfa8d commit 9aac516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/6077.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug that could cause an inability to detect an invalid signing script during the validation
2 changes: 1 addition & 1 deletion pulpcore/app/models/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def save(self, *args, **kwargs):
import_result = gpg.import_keys(key.read())
verified = gpg.verify_file(fp, temp_file.name)
if verified.trust_level is None \
and verified.trust_level < verified.TRUST_FULLY:
or verified.trust_level < verified.TRUST_FULLY:
raise RuntimeError(
"A signature could not be verified or a trust level is too low. "
"The signing script may generate invalid signatures."
Expand Down

0 comments on commit 9aac516

Please sign in to comment.