diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2022-08-04 09:58:31 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-04 16:24:53 +0100 |
commit | 9f99474fa313cc42768fe1ffeed387e6d649fc62 (patch) | |
tree | c46c77dc363c8eab4a13d017cc9e2a9e6b2791b6 | |
parent | e0825355ae00b6d2aa5117a36b3490da5d5f645a (diff) | |
download | poky-9f99474fa313cc42768fe1ffeed387e6d649fc62.tar.gz |
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>
-rw-r--r-- | meta/classes/insane.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 37e10ad850..c8b434bb54 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -1335,6 +1335,7 @@ def unpack_check_src_uri(pn, d): | |||
1335 | oe.qa.handle_error("src-uri-bad", "%s: SRC_URI uses PN not BPN" % pn, d) | 1335 | oe.qa.handle_error("src-uri-bad", "%s: SRC_URI uses PN not BPN" % pn, d) |
1336 | 1336 | ||
1337 | for url in d.getVar("SRC_URI").split(): | 1337 | for url in d.getVar("SRC_URI").split(): |
1338 | # Search for github and gitlab URLs that pull unstable archives (comment for future greppers) | ||
1338 | if re.search(r"git(hu|la)b\.com/.+/.+/archive/.+", url): | 1339 | if re.search(r"git(hu|la)b\.com/.+/.+/archive/.+", url): |
1339 | oe.qa.handle_error("src-uri-bad", "%s: SRC_URI uses unstable GitHub/GitLab archives, convert recipe to use git protocol" % pn, d) | 1340 | oe.qa.handle_error("src-uri-bad", "%s: SRC_URI uses unstable GitHub/GitLab archives, convert recipe to use git protocol" % pn, d) |
1340 | 1341 | ||