Check last commit of the upstream release on propose-update
@@ -135,7 +135,10 @@ class PackitAPI:
Update given package in Fedora
"""
assert_existence(self.up.local_project)
+
assert_existence(self.dg.local_project)
+ # do not add anything between distgit clone and saving gpg keys!
+ self.up.allowed_gpg_keys = self.dg.get_allowed_gpg_keys_from_downstream_config()
upstream_ref = upstream_ref or self.package_config.upstream_ref
@@ -156,6 +159,8 @@ class PackitAPI:
if not use_local_content:
self.up.checkout_release(full_version)
+ self.dg.check_last_commit()
+
self.up.run_action(action=ActionName.pre_sync)
local_pr_branch = f"{full_version}-{dist_git_branch}-update"
