From: Peter Korsgaard <peter@korsgaard.com>
To: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [Buildroot] [git commit] support/scripts/pkg-stats: add better checking in check_package_get_latest_version_by_guess()
Date: Wed, 31 Aug 2022 00:34:45 +0200 [thread overview]
Message-ID: <87edwxmkca.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20220727210911.BC56F86743@busybox.osuosl.org> (Thomas Petazzoni via buildroot's message of "Wed, 27 Jul 2022 23:12:41 +0200")
>>>>> "Thomas" == Thomas Petazzoni via buildroot <buildroot@buildroot.org> writes:
> commit: https://git.buildroot.net/buildroot/commit/?id=f1e3b2bb01903faf7595ed3151140bbf767681e0
> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
> The 'rtl8723ds' name, when queried from release-monitoring.org at
> https://release-monitoring.org/api/projects/?pattern=rtl8723ds returns
> one project, with one "stable_versions" array, which is empty. This
> was not expected by the pkg-stats code, causing an exception:
> Task exception was never retrieved
> future: <Task finished name='Task-764' coro=<check_package_latest_version_get() done, defined at /home/thomas/projets/buildroot/./support/scripts/pkg-stats:558> exception=IndexError('list index out of range')>
> Traceback (most recent call last):
> File "/home/thomas/projets/buildroot/./support/scripts/pkg-stats", line 566, in check_package_latest_version_get
> if await check_package_get_latest_version_by_guess(session, pkg):
> File "/home/thomas/projets/buildroot/./support/scripts/pkg-stats", line 544, in check_package_get_latest_version_by_guess
> projects[0]['stable_versions'][0],
> IndexError: list index out of range
> This commit therefore improves the checks done on the results received
> from release-monitoring.org to avoid this issue.
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Committed to 2022.05.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2022-08-30 22:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-27 21:12 [Buildroot] [git commit] support/scripts/pkg-stats: add better checking in check_package_get_latest_version_by_guess() Thomas Petazzoni via buildroot
2022-08-30 22:34 ` Peter Korsgaard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edwxmkca.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox