From: Joshua Watt Date: Thu, 4 Aug 2022 14:58:31 +0000 (-0500) Subject: classes/sanity: Add comment about github & gitlab archives X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3451 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07c9c6144748d1fbbbdf9c2cb156bea5bed273d4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes/sanity: Add comment about github & gitlab archives Add a comment so that users grepping for "github" or "gitlab" will find this code (since the regex wont). Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie --- diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 37e10ad850a..c8b434bb54b 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -1335,6 +1335,7 @@ def unpack_check_src_uri(pn, d): oe.qa.handle_error("src-uri-bad", "%s: SRC_URI uses PN not BPN" % pn, d) for url in d.getVar("SRC_URI").split(): + # Search for github and gitlab URLs that pull unstable archives (comment for future greppers) if re.search(r"git(hu|la)b\.com/.+/.+/archive/.+", url): oe.qa.handle_error("src-uri-bad", "%s: SRC_URI uses unstable GitHub/GitLab archives, convert recipe to use git protocol" % pn, d)