mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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:
committed by
Richard Purdie
parent
e0825355ae
commit
9f99474fa3
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user