From patchwork Thu Oct 12 14:59:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juerg Haefliger X-Patchwork-Id: 824907 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yCYsT4D8Hz9t32; Fri, 13 Oct 2017 01:59:25 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e2exD-0004lk-Ve; Thu, 12 Oct 2017 14:59:19 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1e2exC-0004l0-B7 for kernel-team@lists.ubuntu.com; Thu, 12 Oct 2017 14:59:18 +0000 Received: from mail-wm0-f69.google.com ([74.125.82.69]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1e2exC-0005gR-46 for kernel-team@lists.ubuntu.com; Thu, 12 Oct 2017 14:59:18 +0000 Received: by mail-wm0-f69.google.com with SMTP id y83so3266839wmc.8 for ; Thu, 12 Oct 2017 07:59:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=GwukqCYqqqT0vYuqlOyViMuojEoFYCV6XSVYjLrWCpQ=; b=Kig8GTkIqmHA33j5ZaYmJJmAew427ky2Qy35hPzu8ht18QsaAQOJzaPhqF6DUXLm7D qt0KWNwZL21dmcqcOOHsqtvg91sF2oO2pOsyXA2PSLnJu7c9Yvx9eslWX7z+EDrd6vdL ad9Hfr9QFehzAwYEY9H2Cn4btwNC9QXcUBQzdygVbhN0JSGncE4XsEiUQpoOucsi75wL umQjPnCYBOzeyAblvbwOtXJKV7FSvB6JtS9mppbO9Snc+JDMIDGjG9j/mqwkAUxtOn7t OacuM/Z0m3Hr9DR0/ADMMp/zMV8stj2yoE81FGz53PpyvoUDnPmPj+D7QMKkEWuS9oax fIIA== X-Gm-Message-State: AMCzsaUbTHjOScID1hNgVyMmM89GRgRk/twCbqxiynteBfJO7q2yZ5QY 1VSSW8O96tn1AN1dUFyDi9+o4ht2PuhTGnTdiPWI6Zc9z6xRmJQpkTdqAvEqQfA/6qDxlu3v3Cm KKAwQM6BTAUd8RBid1K3cHDihDP28SD4cGPLxDvxGgQ== X-Received: by 10.80.204.150 with SMTP id q22mr3264167edi.104.1507820357666; Thu, 12 Oct 2017 07:59:17 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCQl7Qadz+bYabmdLBQS+7G7kj62IIHsxSr52xaZRdSDP1iZzOfj/AJ4k+SIGZMxqkyML7a7g== X-Received: by 10.80.204.150 with SMTP id q22mr3264160edi.104.1507820357520; Thu, 12 Oct 2017 07:59:17 -0700 (PDT) Received: from localhost.localdomain (adsl-84-227-115-101.adslplus.ch. [84.227.115.101]) by smtp.gmail.com with ESMTPSA id t20sm12623932edd.75.2017.10.12.07.59.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Oct 2017 07:59:16 -0700 (PDT) From: Juerg Haefliger To: kernel-team@lists.ubuntu.com Subject: [kteam-tools][PATCH] link-to-tracker: add a --re-run commandline option Date: Thu, 12 Oct 2017 16:59:13 +0200 Message-Id: <20171012145913.4412-1-juerg.haefliger@canonical.com> X-Mailer: git-send-email 2.14.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Sometimes it's desirable or necessary to re-run link-to-tracker. Currently the script bails out if the title of the tracking bug doesn't contain the string '' which means the script ran already. This new commandline option will bypass that check. Signed-off-by: Juerg Haefliger Acked-by: Kleber Sacilotto de Souza --- stable/link-to-tracker | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stable/link-to-tracker b/stable/link-to-tracker index 9f4796753bd2..bb31d97391a8 100755 --- a/stable/link-to-tracker +++ b/stable/link-to-tracker @@ -179,7 +179,7 @@ class Tracking(): found = [] for (bugid, tasks_by_name) in found_tasks: lpbug = s.launchpad.bugs[bugid] - if '' not in lpbug.title: + if not s.args.re_run and '' not in lpbug.title: continue if s.args.sru_cycle and s.bug_to_sru_cycle(lpbug) != s.args.sru_cycle: continue @@ -260,6 +260,7 @@ if __name__ == '__main__': parser.add_argument('--info', action='store_true', default=False, help='') parser.add_argument('--debug', action='store_true', default=False, help='') parser.add_argument('--dry-run', action='store_true', default=False, help='') + parser.add_argument('--re-run', action='store_true', default=False, help='') parser.add_argument('--sru-cycle', action='store', help='') args = parser.parse_args()