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).

(From OE-Core rev: 07c9c6144748d1fbbbdf9c2cb156bea5bed273d4)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Watt
2022-08-04 09:58:31 -05:00
committed by Richard Purdie
parent e0825355ae
commit 9f99474fa3

View File

@@ -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)