From patchwork Tue Dec 7 12:41:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 101 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D007DC433FE for ; Tue, 7 Dec 2021 12:41:47 +0000 (UTC) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mx.groups.io with SMTP id smtpd.web08.66402.1638880906062232810 for ; Tue, 07 Dec 2021 04:41:46 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RiWV1tO7; spf=pass (domain: gmail.com, ip: 209.85.221.41, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f41.google.com with SMTP id a9so29135493wrr.8 for ; Tue, 07 Dec 2021 04:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xxcg3aWoo3tF3XVG/HIxkR0luOARuf7gLLld801GHok=; b=RiWV1tO7Kr6fLaNu6cp2+mLQmjQK5976cxyHdrIa6hXQ/pBM2p+o8ROmszm1y9B7ar ffCR3KBy8YC+2IzOyc886AYNUQX6kdEkopxt3Kg5TRZ0Fm9OFRkoY6otfrwJzGJ4drCy t1aICFtySqw4jrRk9YnwUJmA4qR0BjJISda0161VHohsu0eX6CFWuTvztlUF4RpSJ4Sn ZpFxLgAaF05qvvVzyKWCQVIxH/xEPBwpVsykRCjG1iqpMh3/kAOEdjilF6o9oEsOBqhe I7q8UCwKVuLoPGuds36XhpgPUSmnnBzsFIEDuK9XTt6BdFhC8tWbM3Jx4xIW0zjwLj06 NzLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xxcg3aWoo3tF3XVG/HIxkR0luOARuf7gLLld801GHok=; b=oph8emOZa0ELuw0jp6FDhemqwqf6CVcYRcL3PADNXOb5UAcZbzrUDZ8OTYnBi6cC1R ZUTVy61PohzlsRT5fqBc5CY1cUvwMBIRAXbECaUaieRmTW2On12B0Gzbr34NqGfvSZUS WBoHtxAkWhTxbMv7b06ltyTF8KghSY8XAmduYu+oT3kterOJQPPW3KbiMj9DTP0aVqUW 2q+u/JvsccOfhjfEZv8RluBje726wY3KSZSG6WcX1NdEMIKL5/JD4GeoamjVZLvuj0V2 K7GAvISgPLBOGTLHstJ8N7nTZ5zogJN3nsxmvAmooa+2Ux/KtF7tXWWmY0KPCL4WRPKp jhTQ== X-Gm-Message-State: AOAM531VYK3gEllJ3ZeGSbHxeBmsEqH0/hKcjl+YIMB+8r69bb64qN/q mnuyc5wzEqyrgnDCbbSnqiYvvOMbt5ZQ1g== X-Google-Smtp-Source: ABdhPJzB/I8uGGVRKDkgDWXZd8FH9j+jFM/KrgIH/WASeEvz3U/FixzYUtiiOgtTMrVVPeMtjwUuWQ== X-Received: by 2002:a5d:58fb:: with SMTP id f27mr51102741wrd.10.1638880904473; Tue, 07 Dec 2021 04:41:44 -0800 (PST) Received: from nereus.lab.linutronix.de. (b2b-109-90-143-203.unitymedia.biz. [109.90.143.203]) by smtp.gmail.com with ESMTPSA id n4sm16508320wri.41.2021.12.07.04.41.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 04:41:44 -0800 (PST) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: bitbake-devel@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH] fetch: add a test for version check where compression changes Date: Tue, 7 Dec 2021 13:41:41 +0100 Message-Id: <20211207124141.3193820-1-alex@linutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 07 Dec 2021 12:41:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/13142 Signed-off-by: Alexander Kanavin --- .../debian/pool/main/m/minicom/index.html | 59 +++++++++++++++++++ bitbake/lib/bb/tests/fetch.py | 6 ++ 2 files changed, 65 insertions(+) create mode 100644 bitbake/lib/bb/tests/fetch-testdata/debian/pool/main/m/minicom/index.html diff --git a/bitbake/lib/bb/tests/fetch-testdata/debian/pool/main/m/minicom/index.html b/bitbake/lib/bb/tests/fetch-testdata/debian/pool/main/m/minicom/index.html new file mode 100644 index 0000000000..4a1eb4de13 --- /dev/null +++ b/bitbake/lib/bb/tests/fetch-testdata/debian/pool/main/m/minicom/index.html @@ -0,0 +1,59 @@ + + + + Index of /debian/pool/main/m/minicom + + +

Index of /debian/pool/main/m/minicom

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[ICO]NameLast modifiedSize

[PARENTDIR]Parent Directory  -
[   ]minicom_2.7-1+deb8u1.debian.tar.xz2017-04-24 08:22 14K
[   ]minicom_2.7-1+deb8u1.dsc2017-04-24 08:22 1.9K
[   ]minicom_2.7-1+deb8u1_amd64.deb2017-04-25 21:10 257K
[   ]minicom_2.7-1+deb8u1_armel.deb2017-04-26 00:58 246K
[   ]minicom_2.7-1+deb8u1_armhf.deb2017-04-26 00:58 245K
[   ]minicom_2.7-1+deb8u1_i386.deb2017-04-25 21:41 258K
[   ]minicom_2.7-1.1.debian.tar.xz2017-04-22 09:34 14K
[   ]minicom_2.7-1.1.dsc2017-04-22 09:34 1.9K
[   ]minicom_2.7-1.1_amd64.deb2017-04-22 15:29 261K
[   ]minicom_2.7-1.1_arm64.deb2017-04-22 15:29 250K
[   ]minicom_2.7-1.1_armel.deb2017-04-22 15:29 255K
[   ]minicom_2.7-1.1_armhf.deb2017-04-22 15:29 254K
[   ]minicom_2.7-1.1_i386.deb2017-04-22 15:29 266K
[   ]minicom_2.7-1.1_mips.deb2017-04-22 15:29 258K
[   ]minicom_2.7-1.1_mips64el.deb2017-04-22 15:29 259K
[   ]minicom_2.7-1.1_mipsel.deb2017-04-22 15:29 259K
[   ]minicom_2.7-1.1_ppc64el.deb2017-04-22 15:29 253K
[   ]minicom_2.7-1.1_s390x.deb2017-04-22 15:29 261K
[   ]minicom_2.7.1-1+b1_amd64.deb2018-05-06 08:14 262K
[   ]minicom_2.7.1-1+b1_arm64.deb2018-05-06 07:58 250K
[   ]minicom_2.7.1-1+b1_armel.deb2018-05-06 08:45 253K
[   ]minicom_2.7.1-1+b1_armhf.deb2018-05-06 10:42 253K
[   ]minicom_2.7.1-1+b1_i386.deb2018-05-06 08:55 266K
[   ]minicom_2.7.1-1+b1_mips.deb2018-05-06 08:14 258K
[   ]minicom_2.7.1-1+b1_mipsel.deb2018-05-06 12:13 259K
[   ]minicom_2.7.1-1+b1_ppc64el.deb2018-05-06 09:10 260K
[   ]minicom_2.7.1-1+b1_s390x.deb2018-05-06 08:14 257K
[   ]minicom_2.7.1-1+b2_mips64el.deb2018-05-06 09:41 260K
[   ]minicom_2.7.1-1.debian.tar.xz2017-08-13 15:40 14K
[   ]minicom_2.7.1-1.dsc2017-08-13 15:40 1.8K
[   ]minicom_2.7.1.orig.tar.gz2017-08-13 15:40 855K
[   ]minicom_2.7.orig.tar.gz2014-01-01 09:36 843K
[   ]minicom_2.8-2.debian.tar.xz2021-06-15 03:47 14K
[   ]minicom_2.8-2.dsc2021-06-15 03:47 1.8K
[   ]minicom_2.8-2_amd64.deb2021-06-15 03:58 280K
[   ]minicom_2.8-2_arm64.deb2021-06-15 04:13 275K
[   ]minicom_2.8-2_armel.deb2021-06-15 04:13 271K
[   ]minicom_2.8-2_armhf.deb2021-06-15 04:13 272K
[   ]minicom_2.8-2_i386.deb2021-06-15 04:13 285K
[   ]minicom_2.8-2_mips64el.deb2021-06-15 04:13 277K
[   ]minicom_2.8-2_mipsel.deb2021-06-15 04:13 278K
[   ]minicom_2.8-2_ppc64el.deb2021-06-15 04:13 286K
[   ]minicom_2.8-2_s390x.deb2021-06-15 03:58 275K
[   ]minicom_2.8.orig.tar.bz22021-01-03 12:44 598K

+
Apache Server at ftp.debian.org Port 80
+ diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index dc45eb2e13..6b77afe5f1 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py @@ -1346,6 +1346,12 @@ class FetchLatestVersionTest(FetcherTest): # http://ftp.debian.org/debian/pool/main/d/db5.3/ ("db", "/berkeley-db/db-5.3.21.tar.gz", "/debian/pool/main/d/db5.3/", r"(?Pdb5\.3_)(?P\d+(\.\d+)+).+\.orig\.tar\.xz") : "5.3.10", + # + # packages where the tarball compression changed in the new version + # + # http://ftp.debian.org/debian/pool/main/m/minicom/minicom_2.7.1.orig.tar.gz + ("minicom", "/debian/pool/main/m/minicom/minicom_2.7.1.orig.tar.gz", "", "") + : "2.8", } @skipIfNoNetwork()