← Back to team overview

ubuntu-bugcontrol team mailing list archive

[Merge] ~hlibk/ubuntu-qa-tools:add-legacy into ubuntu-qa-tools:master

 

Hlib Korzhynskyy has proposed merging ~hlibk/ubuntu-qa-tools:add-legacy into ubuntu-qa-tools:master.

Requested reviews:
  Ubuntu Bug Control (ubuntu-bugcontrol)

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

Add --esm-infra-legacy option for the release of the esm infra legacy ppa
-- 
Your team Ubuntu Bug Control is requested to review the proposed merge of ~hlibk/ubuntu-qa-tools:add-legacy into ubuntu-qa-tools:master.
diff --git a/security-tools/unembargo b/security-tools/unembargo
index a78c826..c178015 100755
--- a/security-tools/unembargo
+++ b/security-tools/unembargo
@@ -41,6 +41,9 @@ ESM_APPS_PRODUCTION_PPA = "ubuntu-esm/esm-apps-security"
 ESM_INFRA_STAGING_PPA = "ubuntu-esm/esm-infra-security-staging"
 ESM_INFRA_PRODUCTION_PPA = "ubuntu-esm/esm-infra-security"
 
+ESM_INFRA_LEGACY_STAGING_PPA = "ubuntu-esm/esm-infra-legacy-security-staging"
+ESM_INFRA_LEGACY_PRODUCTION_PPA = "ubuntu-esm/esm-infra-legacy-security"
+
 RELEASE_POCKET = "Release"
 SECURITY_POCKET = "Security"
 
@@ -65,6 +68,10 @@ parser.add_argument("--esm-infra", help="Copy completed ESM packages from the "
                     "ESM Infra staging PPA to the ESM Infra production PPA "
                     "(default: None)", action='store_true',
                     default=None)
+parser.add_argument("--esm-infra-legacy", help="Copy completed ESM packages from the "
+                    "ESM Infra Legacy staging PPA to the ESM Infra Legacy production PPA "
+                    "(default: None)", action='store_true',
+                    default=None)
 parser.add_argument("-r", "--release", help="Limit unembargo to a specific set "
                     "of comma-separate releases",
                     metavar="SERIES", action='store', default=None)
@@ -92,7 +99,7 @@ if len(args) < 1:
 # If --esm, --esm-apps or --esm-infra option is provided, the script will move
 # from the respective ESM staging PPA to the respective ESM PROD PPA. So the
 # user should not indicate such values.
-if opt.esm or opt.esm_apps or opt.esm_infra:
+if opt.esm or opt.esm_apps or opt.esm_infra or opt.esm_infra_legacy:
     if opt.destination != UBUNTU_ARCHIVE or opt.ppa is not None:
         parser.error("If an esm option is provided, do not specify values for "
                      "package origin and destination as this "
@@ -106,6 +113,10 @@ if opt.esm or opt.esm_apps or opt.esm_infra:
         opt.destination = ESM_INFRA_PRODUCTION_PPA
         opt.ppa = ESM_INFRA_STAGING_PPA
         opt.pocket = RELEASE_POCKET
+    elif opt.esm_infra_legacy:
+        opt.destination = ESM_INFRA_LEGACY_PRODUCTION_PPA
+        opt.ppa = ESM_INFRA_LEGACY_STAGING_PPA
+        opt.pocket = RELEASE_POCKET
     else:
         opt.destination = ESM_PRODUCTION_PPA
         opt.ppa = ESM_STAGING_PPA

Follow ups