| Message ID | 20260404213020.372253-9-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775338277; bh=RnUpxCRMKlZfJ2GSq4V3mkTPPRoFeVBO735DCHFWGjg=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Zxk/LI7HB/fiaMpY7jkxiGqCRXqApOE7ejs8FCZsuMfbDs1I8mJ63ddSxpqGHa8AV yKVR1Q7Mzb9clO82d5exp/+P6/bcYnOEFgT0chRMQRRzQxI8pGzvtSbZkB4zpn/PId uwOzy4sPcx9auuseM5COYXUnNSQ2TOPXpE3ii1HaB1zFM+XdVZR3HFbTMk1axx6CrW rbXkmkx2XvhREjc/1G+Z9+T7vdKIzz0kx8X9sPQLz3DBS8pnHet61hYc0Ialaxsd9O LcBkGMLSBoc0j7Ajv5ZAnAU92V1XAPPKL5XM2t4JuQDGRIvTVvoFkDKKn2nT7+1xcG Kp/ior255s7Gw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DFD356A387 for <u-boot-concept@u-boot.org>; Sat, 4 Apr 2026 15:31:17 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 9SnYBq4bNxip for <u-boot-concept@u-boot.org>; Sat, 4 Apr 2026 15:31:17 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775338276; bh=RnUpxCRMKlZfJ2GSq4V3mkTPPRoFeVBO735DCHFWGjg=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=dGjtiA0YJ4KnYzBqqphUUDhyj+EUqpkcj/0VCKuWj0zm1Bi+t+tdhDk7OFGCYtJiF V8h2nam3SzNBKx4DZrJCEl+Oz3o2vZdtMghMe9g996ltNyljR3aUpxtRbC/IRqRSHl rsFup79GjNwsdz9DmL6mHK7ZpP/btRfXeTv9Cxbcri70rmLy2mqwp6EwEuNNiHAsS1 441rKYHryEbd8qsfNSnkVRIdJ8cIFjLxj1CSGybEiwyzCTvUVezA2mglbNeESYlFhn 7cCWym4RzjTWcdgSlBzrtnE2c6NV+TtnHzA0jtXG9FO22fLMAEHmpaSo/BKxC2HAuV 9Wy9wYC9l9pTA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E68736A375 for <u-boot-concept@u-boot.org>; Sat, 4 Apr 2026 15:31:16 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775338275; bh=ukQIypP0pPN+PDd7p77z5peg6IJuyd6idpLuOpPfY00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UyZX+NQVyLlRZiCTsUW8AEG4Ts4pOd60OqTtePckRpANRn6a7RnF8in5laJJSfiTC NcM7rpsfxghpWXo5Lw1l+dfPScsBGTEp5KOnkEXoZY6M6aYhed6Wou9mlh2CjUhozA U43/5PEu0baaxSVCwJQmoFeC2Y8r6tT2bdr38ETBXzC8jcFta/vvL6OMi57KWuPlhV SeCDU2SIS3HQa0PTg8xaL4X7ovZQ2N/tb3LcM+l4QrAamhlDA02pUaYXQV9rvlI9yW 5IGuXww9sDZ8QTOz8IBdDWHuEQ3xg1QsTv5qdtGBhZx28cFO07hY3cjKLf3NllBJsd fStCxahdHGQ8g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6F7526A375; Sat, 4 Apr 2026 15:31:15 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id rfxKFjXN1QtT; Sat, 4 Apr 2026 15:31:15 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775338275; bh=3tjFYfqWsqFvPjAovmAlKWcvlZigLK4moz7oDcsUls4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K6uk8Wt0xcSSCv54FOp8cwaUFhc6fhtKjfNq7wPxf4ZPcY5HTtWb7IUsotdvNwspF 2QiWYYjclJxMHb9G9wRkSebbRJJpcyYJyFAzQN4hhqVerjrN66AdZHn5p/05A3y31Y phg/7mqquE3KvX2XIRT/+uLRqLIELRVh9ufXtwPTfmYP/gw0PBnS16cQnU+twZ4iGe SKpklHWlpBgK3HJtUU3Z9UklXyMewKmA/jV12X9iROrGoRdwGCJXdYXn5+3+XTwdXL sTgn8ZeDtdmAaGUhq21+NqcRm55Vtb74Ti0aeZDVNntRbykW2JQqr/3xeB4oC8OAqN nTNLLtJcVgCWg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C18116869D; Sat, 4 Apr 2026 15:31:14 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Sat, 4 Apr 2026 15:28:44 -0600 Message-ID: <20260404213020.372253-9-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260404213020.372253-1-sjg@u-boot.org> References: <20260404213020.372253-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: W47ZNASXTBBQEPVYHUHMLKIMIIDLZCSQ X-Message-ID-Hash: W47ZNASXTBBQEPVYHUHMLKIMIIDLZCSQ X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 08/37] patman: Strip trailing slash from patchwork URLs List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/W47ZNASXTBBQEPVYHUHMLKIMIIDLZCSQ/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
patman: Autolink fixes and AI-assisted patch review
|
|
Commit Message
Simon Glass
April 4, 2026, 9:28 p.m. UTC
From: Simon Glass <sjg@chromium.org> Normalise the patchwork URL by stripping any trailing slash, so that API paths are constructed without a double slash. Guard against None URLs which can occur when patchwork is not configured. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/patman/patchwork.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/patman/patchwork.py b/tools/patman/patchwork.py index 627af08a723..5192b817968 100644 --- a/tools/patman/patchwork.py +++ b/tools/patman/patchwork.py @@ -174,7 +174,7 @@ class Patchwork: url (str): URL of patchwork server, e.g. 'https://patchwork.ozlabs.org' """ - self.url = url + self.url = url.rstrip('/') if url else url self.fake_request = None self.proj_id = None self.link_name = None