← Back to team overview

ubuntu-bugcontrol team mailing list archive

[Merge] ~alexmurray/ubuntu-qa-tools:jammy-soft-freeze-check into ubuntu-qa-tools:master

 

Alex Murray has proposed merging ~alexmurray/ubuntu-qa-tools:jammy-soft-freeze-check into ubuntu-qa-tools:master.

Requested reviews:
  Ubuntu Bug Control (ubuntu-bugcontrol)

For more details, see:
https://code.launchpad.net/~alexmurray/ubuntu-qa-tools/+git/ubuntu-qa-tools/+merge/427589

Try and make sure we don't inadvertently publish to jammy whilst it is in soft-freeze for 22.04.1
-- 
Your team Ubuntu Bug Control is requested to review the proposed merge of ~alexmurray/ubuntu-qa-tools:jammy-soft-freeze-check into ubuntu-qa-tools:master.
diff --git a/security-tools/unembargo b/security-tools/unembargo
index ad94ce9..879fb37 100755
--- a/security-tools/unembargo
+++ b/security-tools/unembargo
@@ -80,6 +80,8 @@ parser.add_argument("--source-pocket", help="The pocket to restrict the copy "
                     metavar="SOURCE_POCKET", action='store', default=None)
 parser.add_argument("--include-devel", help="Include development release",
                     action='store_true', default=False)
+parser.add_argument("-f", "--force", help="Force unembargo even if the release is in freeze.",
+                    action='store_true', default=False)
 
 (opt, args) = parser.parse_known_args()
 if len(args) < 1:
@@ -156,6 +158,13 @@ for pkg_name in args:
         if len(seen[series_name]) > 1:
             seen[series_name] = sorted(seen[series_name], cmp=lambda x, y: apt_pkg.version_compare(
                 x.source_package_version, y.source_package_version), reverse=True)
+        # TODO - remove this once jammy 22.04.1 is out
+        if series_name == "jammy":
+            print("NOTE: jammy is currently in soft-freeze in prepartion for the 22.04.1 release.")
+            print("NOTE: Please coordinate with the #ubuntu-release team before releasing.")
+            print("NOTE: To override this check and publish anyway please use the --force flag.")
+            if not opt.force:
+                sys.exit(1)
         unembargo.append(seen[series_name][0])
 
     # Publish

Follow ups