From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8E72LvDP42RBpAAASxT56A (envelope-from ) for ; Mon, 21 Aug 2023 22:58:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mP3+LvDP42QgywAAauVa8A (envelope-from ) for ; Mon, 21 Aug 2023 22:58:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 436D739E67 for ; Mon, 21 Aug 2023 22:58:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=K2xirM0L; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692651504; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=20fV0aSxBc34/EwO3B34njn8yrcDAcTzWY7W92KU1Yk=; b=kMm66gzVlbq1o3aiw85W7YZqmal0lEr1J5bY03gv//NEwhNoe1O984a9Rg6R2GgjxdDSY2 1JI8QuzargVT/ha4su2zNxOfckekc8gV9xW5oksjTqpEVn5AZqle2t/J0Bl2GMN4U3Nb76 wbV0x4tW73cs9YKLBQnbLZo5ZOv2gdtCwgwYKesiQI+oJBvfcyQwKJ2bORYm3x4CI62vBE X/X1VYNw7+FlhBBwjAkBWQ4z0R5X+taB08COny4xIgE28ZI6rve3RBAGeKmS3/9vT0YU7y uP85vd58UQ8FjsYofkdDrKX2y+UZRdX41wqSBU2oyupALevmn0ROikXZH9eMSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=K2xirM0L; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692651504; a=rsa-sha256; cv=none; b=txhWLvttlXy9aEfSYyq9Kxe666h4MG83EmFYZqV94lqP7pUST1sBYVayrWoXxUwtjr/9oD 1Gg5qJOsfGiwAsldLI7Fh/sPpbdgtW1SeI2gaAX82WqP69EaTR1LNNhlv1EsjP1mEjQedA C+QmDw14wirCgKdvspHQ5hAJMtZhcZGm/IWsxCWSztgkNaCmtzE38baaMzBnMN/CxF5SOK oXf+/Iqegr6/nG6wZRB8azPZCbl3oIy7UWPqfe1VL6eAidafqkYQJ+LtBngOvOOvvCezLY Mvq0i/mPSh2NWT7vqm3iH2j7HuRkTZlEFRQN6Auz2sePVYf9ADjYBK9q6wb0bA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYByM-0001Ry-TO; Mon, 21 Aug 2023 16:58:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYByM-0001Rk-AM for guix-patches@gnu.org; Mon, 21 Aug 2023 16:58:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYByL-0005vB-9K; Mon, 21 Aug 2023 16:58:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYByL-00066M-S6; Mon, 21 Aug 2023 16:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65444] [PATCH] gnu-maintenance: Improve check for disabled host names. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Mon, 21 Aug 2023 20:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65444 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65444@debbugs.gnu.org, maxim.cournoyer@gmail.com Cc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-To: guix-patches@gnu.org, maxim.cournoyer@gmail.com X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.169265143123389 (code B ref -1); Mon, 21 Aug 2023 20:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Aug 2023 20:57:11 +0000 Received: from localhost ([127.0.0.1]:58010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYBxW-00065B-KX for submit@debbugs.gnu.org; Mon, 21 Aug 2023 16:57:10 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYBxV-00064x-BA for submit@debbugs.gnu.org; Mon, 21 Aug 2023 16:57:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYBxN-0001NE-Ac for guix-patches@gnu.org; Mon, 21 Aug 2023 16:57:01 -0400 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYBxL-0005kO-0i for guix-patches@gnu.org; Mon, 21 Aug 2023 16:57:01 -0400 Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-64ccdf8820dso10103576d6.1 for ; Mon, 21 Aug 2023 13:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692651417; x=1693256217; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=20fV0aSxBc34/EwO3B34njn8yrcDAcTzWY7W92KU1Yk=; b=K2xirM0LTAImuKc5mMeEOCLZ2wCz8AEZ6NVH3eEJ5eW51Fhe12UFxs9MYlBmpYyCTz JzGuXwXx7UcPrHtzWbKqhq0Hi1jPjLcySmF8puE1JlQy8zoF7+2yYfvk+L2zk+3myh2m R7P1A8xtU0gGUjQx54zVA5vmsmko1tus8eR8sey+bdB6R57JndKycc/Bv3N9KRsIZ7Y3 bmo+6/U5/GZMma/35choPO0ZnG9DL+xKrU6Q6Gg9UR4NC7/WXpse1mg6WBkwm9SLp7oP KP6OEPhiNUcm+UIFczSI5RROkCanLnLxUn85LO9sYxbQL/XlWFY0K51OTe1hjzQnVSGy kI9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692651417; x=1693256217; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=20fV0aSxBc34/EwO3B34njn8yrcDAcTzWY7W92KU1Yk=; b=JC+Y2qz+luHuSLUF6T7iTfA31md/LLxDwPdSDbBkMoqsKVv0RzWFQ+3s3tD+AO1B2E RDofMksF9GBhcd0bqsCMm58I3ohUKBhY5pHH2IkMWxRrD3E8mqsOkdb8c4M+WjhlPM5Z BRnY2il9cm3xofHaF6WfNdEr+PiE1vKn++D6LvQe4fugjJduOjOXaojyefCN/pOoMkAM /EQTUK7rFO9pHsLqLgVP+yADgW6l4swBgCWJVQwShgoURjqiPDZxIyTqmZr+UKuXuqrV /PiDd1XBgeFsax3lmKSDOPcdFzuzDMIimVgl7AU5B7KlnwsuEuYzTJw4vSAiZTuhcRDV XgkA== X-Gm-Message-State: AOJu0YwEeBfJ9H0POudLyZ4HAKQiB//kP2aYSfUIvirMrqMuuaLDOuOn i+FQN7TgC3LFuIx/HclRSF8qimlTJqw= X-Google-Smtp-Source: AGHT+IHDy/Tl+l6hLe2omN+ZWK0nNI+x/pVIcKDrYtE3F3Qc6Km8q2VNLoZiOtFQUcd7LlWYuWU09A== X-Received: by 2002:a05:6214:d87:b0:62d:ddeb:3770 with SMTP id e7-20020a0562140d8700b0062dddeb3770mr9668130qve.0.1692651416949; Mon, 21 Aug 2023 13:56:56 -0700 (PDT) Received: from localhost.localdomain (dsl-10-148-105.b2b2c.ca. [72.10.148.105]) by smtp.gmail.com with ESMTPSA id p6-20020a0ce186000000b0063f88855ef2sm3137015qvl.101.2023.08.21.13.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 13:56:56 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 21 Aug 2023 16:56:21 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: 4.80 X-Spam-Score: 4.80 X-Migadu-Queue-Id: 436D739E67 X-TUID: 3GnqR2TxP/93 Found while investigating . * guix/gnu-maintenance.scm (html-updatable-package?): Tighten predicate. --- guix/gnu-maintenance.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm index 32712f7218..5c16a7617d 100644 --- a/guix/gnu-maintenance.scm +++ b/guix/gnu-maintenance.scm @@ -846,7 +846,11 @@ (define html-updatable-package? (let ((scheme (uri-scheme uri)) (host (uri-host uri))) (and (memq scheme '(http https)) - (not (member host hosting-sites))))))))) + ;; HOST may contain prefixes, + ;; e.g. "profanity-im.github.io", hence the + ;; suffix-based test below. + (not (any (cut string-suffix? <> host) + hosting-sites))))))))) (lambda (package) (or (assoc-ref (package-properties package) 'release-monitoring-url) base-commit: 4c7627dfec88350f9a1705e9527c38dd41506f8b -- 2.41.0