diff mbox

[kteam-tools,1/2] promote_to_*.py: Special case for handling Azure kernels

Message ID 20170614161155.22882-1-kleber.souza@canonical.com
State New
Headers show

Commit Message

Kleber Sacilotto de Souza June 14, 2017, 4:11 p.m. UTC
The Azure kernel is temporarily not going to be promoted to -updates and
-security, so mark the tasks as invalid.

Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
---
 stable/wfl/wft/promote_to_security.py | 3 ++-
 stable/wfl/wft/promote_to_updates.py  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

Comments

Andy Whitcroft June 27, 2017, 11:06 a.m. UTC | #1
Applied to kteam-tools.

-apw
diff mbox

Patch

diff --git a/stable/wfl/wft/promote_to_security.py b/stable/wfl/wft/promote_to_security.py
index 560b0093..8ee23bfb 100644
--- a/stable/wfl/wft/promote_to_security.py
+++ b/stable/wfl/wft/promote_to_security.py
@@ -33,8 +33,9 @@  class PromoteToSecurity(Promoter):
 
             # Special case for Vivid kernel packages which should never go to -updates or -security.
             # We are past support and only do this to support the Plano project.
+            # Azure kernel is also being promoted temporarily only to -proposed.
             #
-            if s.bug.series == "vivid":
+            if s.bug.series == "vivid" or s.bug.pkg_name == "linux-azure":
                 s.task.status = 'Invalid'
                 retval = True
                 break
diff --git a/stable/wfl/wft/promote_to_updates.py b/stable/wfl/wft/promote_to_updates.py
index 227ae7f0..5903394d 100644
--- a/stable/wfl/wft/promote_to_updates.py
+++ b/stable/wfl/wft/promote_to_updates.py
@@ -34,8 +34,9 @@  class PromoteToUpdates(Promoter):
 
             # Special case for Vivid kernel packages which should never go to -updates or -security.
             # We are past support and only do this to support the Plano project.
+            # Azure kernel is also being promoted temporarily only to -proposed.
             #
-            if s.bug.series == "vivid":
+            if s.bug.series == "vivid" or s.bug.pkg_name == "linux-azure":
                 s.task.status = 'Invalid'
                 retval = True
                 break