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 5C145C636FD for ; Mon, 25 Apr 2022 19:26:14 +0000 (UTC) Subject: Re: [PATCH yocto-autobuilder-helper v8] Add a banner on the old documentation docs. To: yocto@lists.yoctoproject.org From: "Abongwa Amahnui Bonalais" X-Originating-Location: CM (154.72.153.147) X-Originating-Platform: Linux Chrome 100 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 25 Apr 2022 06:57:43 -0700 References: In-Reply-To: Message-ID: <19297.1650895063079370918@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="zg2VbVDQ0X4y5NNZdz7g" 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 ; Mon, 25 Apr 2022 19:26:14 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/56881 --zg2VbVDQ0X4y5NNZdz7g Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable >=20 > Hardcoding numbers like this isn=E2=80=99t a great idea. If the intention= is to > add the warning on all versions earlier than 3.2, then the regex approach > that is commented out would be better. It most likely didn=E2=80=99t work= as regex > matching isn=E2=80=99t like shell/windows matching: pattern =3D r=E2=80= =9D^3\.1.*" A good > solution would be to use packaging.version.parse, but that=E2=80=99s not = a > built-in module so would need to be added to the build. That can wait, th= e > regex solution should be good. >=20 Hi Ross, I tried out the regex solution but I did not work and I also notic= ed that the 3.1.x doc versions on the documentation website already contain= s the banner I thought from 3.1.2 above were not outdate to, I am a little bit confused = about which version is the latest. --zg2VbVDQ0X4y5NNZdz7g Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hardcoding numbers like = this isn’t a great idea. If the intention is to add the warning on al= l versions earlier than 3.2, then the regex approach that is commented out = would be better. It most likely didn’t work as regex matching isn&rsq= uo;t like shell/windows matching:pattern =3D r”^3\.1.*"A good solution would be to use packaging.version.parse, but that’= s not a built-in module so would need to be added to the build. That can wa= it, the regex solution should be good.
Hi Ross, I tried out the regex solut= ion but I did not work and I also noticed that the 3.1.x doc versions on th= e documentation website already contains the banner
I thought from 3.1= .2 above were not outdate to, I am a little bit confused about which versio= n is the latest.
--zg2VbVDQ0X4y5NNZdz7g--