Prevent API from changing protected tags

Fixes #322
This commit is contained in:
rubenwardy
2021-07-24 00:43:55 +01:00
parent 3049d17f5e
commit 823c06d3ea
4 changed files with 18 additions and 9 deletions

View File

@@ -119,7 +119,7 @@ def postReleaseCheckUpdate(self, release: PackageRelease, path):
try:
with open(os.path.join(tree.baseDir, ".cdb.json"), "r") as f:
data = json.loads(f.read())
do_edit_package(package.author, package, False, data, "Post release hook")
do_edit_package(package.author, package, False, False, data, "Post release hook")
except LogicError as e:
raise TaskError(e.message)
except IOError: