From patchwork Fri Oct 13 09:42:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 10004001 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6663F60216 for ; Fri, 13 Oct 2017 09:42:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A64A28FFD for ; Fri, 13 Oct 2017 09:42:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F7512900D; Fri, 13 Oct 2017 09:42:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E56D428FFD for ; Fri, 13 Oct 2017 09:42:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757812AbdJMJmg (ORCPT ); Fri, 13 Oct 2017 05:42:36 -0400 Received: from s3.sipsolutions.net ([144.76.63.242]:49184 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757630AbdJMJmf (ORCPT ); Fri, 13 Oct 2017 05:42:35 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1e2wUD-000389-8l; Fri, 13 Oct 2017 11:42:33 +0200 From: Johannes Berg To: backports@vger.kernel.org Cc: Johannes Berg Subject: [PATCH v2 10/11] backports-update-manager: use KPATH variable Date: Fri, 13 Oct 2017 11:42:25 +0200 Message-Id: <20171013094226.10021-10-johannes@sipsolutions.net> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171013094226.10021-1-johannes@sipsolutions.net> References: <20171013094226.10021-1-johannes@sipsolutions.net> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Johannes Berg There's already a variable for the URL, use it. Signed-off-by: Johannes Berg --- devel/backports-update-manager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel/backports-update-manager b/devel/backports-update-manager index 64df29bcea26..8069fd485ea6 100755 --- a/devel/backports-update-manager +++ b/devel/backports-update-manager @@ -52,7 +52,7 @@ class backport_kernel_updater: @classmethod def _get_ubuntu_ppa_mainline_kernels(cls): - base = 'http://kernel.ubuntu.com/~kernel-ppa/mainline/' + base = KPATH html = urlopen(base).read() builds = re.findall(b'href="([-v.0-9a-z]*)/"', html) builds = [b.decode('ascii') for b in builds]