From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 05E4315808A for ; Sat, 02 Aug 2025 11:10:28 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E16F5340DF9 for ; Sat, 02 Aug 2025 11:10:27 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 4B2C4110566; Sat, 02 Aug 2025 11:10:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 41304110566 for ; Sat, 02 Aug 2025 11:10:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ED952340C40 for ; Sat, 02 Aug 2025 11:10:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8041B32BE for ; Sat, 02 Aug 2025 11:10:08 +0000 (UTC) From: "Nowa Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nowa Ammerlaan" Message-ID: <1754131680.9f2cdea858cdda9a5e789fe2f0d5be15e06411ca.nowa@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/snakemake/, dev-python/snakemake/files/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/snakemake/files/snakemake-9.7.1-assets.patch dev-python/snakemake/snakemake-9.7.1.ebuild X-VCS-Directories: dev-python/snakemake/files/ dev-python/snakemake/ X-VCS-Committer: nowa X-VCS-Committer-Name: Nowa Ammerlaan X-VCS-Revision: 9f2cdea858cdda9a5e789fe2f0d5be15e06411ca X-VCS-Branch: master Date: Sat, 02 Aug 2025 11:10:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 59d317ee-d271-40bc-9e80-75d2a8b55ba7 X-Archives-Hash: 2ae22286ee298df4ed94f7beeb8f456d commit: 9f2cdea858cdda9a5e789fe2f0d5be15e06411ca Author: Michael Schubert gmail com> AuthorDate: Sat Jul 26 15:55:40 2025 +0000 Commit: Nowa Ammerlaan gentoo org> CommitDate: Sat Aug 2 10:48:00 2025 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9f2cdea8 dev-python/snakemake: fix asset downloading Signed-off-by: Michael Schubert gmail.com> Part-of: https://github.com/gentoo/sci/pull/1323 Closes: https://github.com/gentoo/sci/pull/1323 Signed-off-by: Nowa Ammerlaan gentoo.org> .../snakemake/files/snakemake-9.7.1-assets.patch | 22 ++++++++++++++++++++++ dev-python/snakemake/snakemake-9.7.1.ebuild | 4 ++++ 2 files changed, 26 insertions(+) diff --git a/dev-python/snakemake/files/snakemake-9.7.1-assets.patch b/dev-python/snakemake/files/snakemake-9.7.1-assets.patch new file mode 100644 index 000000000..f7280e3a4 --- /dev/null +++ b/dev-python/snakemake/files/snakemake-9.7.1-assets.patch @@ -0,0 +1,22 @@ +From 4fea6631cd69c90816777e75955a80e81bb04901 Mon Sep 17 00:00:00 2001 +From: Michael Schubert +Date: Sat, 26 Jul 2025 15:55:58 +0200 +Subject: [PATCH] fix: if file is present and no sha256 provided assume pass + +--- + src/snakemake/assets/__init__.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/snakemake/assets/__init__.py b/src/snakemake/assets/__init__.py +index f0be54693b..19b0912c1f 100644 +--- a/src/snakemake/assets/__init__.py ++++ b/src/snakemake/assets/__init__.py +@@ -541,7 +541,7 @@ def deploy(cls) -> None: + if target_path.exists(): + with open(target_path, "rb") as fin: + # file is already present, check if it is up to date +- if (asset.sha256 is not None) and ( ++ if (asset.sha256 is None) or ( + asset.sha256 == hashlib.sha256(fin.read()).hexdigest() + ): + continue diff --git a/dev-python/snakemake/snakemake-9.7.1.ebuild b/dev-python/snakemake/snakemake-9.7.1.ebuild index 7ebf438cb..f2c9f6511 100644 --- a/dev-python/snakemake/snakemake-9.7.1.ebuild +++ b/dev-python/snakemake/snakemake-9.7.1.ebuild @@ -54,6 +54,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}/${P}-assets.patch" +) + # distutils_enable_sphinx docs \ # dev-python/sphinxcontrib-napoleon \ # dev-python/sphinx-argparse \