← Back to team overview

ubuntu-bugcontrol team mailing list archive

[Merge] ~alexmurray/ubuntu-qa-tools:unembargo-warn-security-updates-on-fridays into ubuntu-qa-tools:master

 

Alex Murray has proposed merging ~alexmurray/ubuntu-qa-tools:unembargo-warn-security-updates-on-fridays 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/427704
-- 
Your team Ubuntu Bug Control is requested to review the proposed merge of ~alexmurray/ubuntu-qa-tools:unembargo-warn-security-updates-on-fridays into ubuntu-qa-tools:master.
diff --git a/security-tools/unembargo b/security-tools/unembargo
index 433fc2e..b373f31 100755
--- a/security-tools/unembargo
+++ b/security-tools/unembargo
@@ -113,6 +113,17 @@ if opt.esm or opt.esm_apps or opt.esm_infra:
 else:
     opt.ppa = UBUNTU_SECURITY_PPA if opt.ppa is None else opt.ppa
 
+# don't release security updates on Fridays
+if opt.pocket == SECURITY_POCKET and datetime.datetime.today().weekday() == 4:
+    print("WARNING: The security team has a policy of not releasing security updates "
+          "on Fridays.")
+    if not opt.force:
+        print("NOTE: To override this check and publish anyway please use the "
+              "--force.")
+        sys.exit(1)
+    else:
+        print("NOTE: Forcing the release of security updates on Fridays.")
+
 print("Loading Ubuntu Distribution ...")
 lp_version = "devel"
 

Follow ups