]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/sanity: Add comment about github & gitlab archives
authorJoshua Watt <JPEWhacker@gmail.com>
Thu, 4 Aug 2022 14:58:31 +0000 (09:58 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Aug 2022 15:24:50 +0000 (16:24 +0100)
Add a comment so that users grepping for "github" or "gitlab" will find
this code (since the regex wont).

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass

index 37e10ad850ad97a6f737f4d5ad5d41cd8276344f..c8b434bb54b7179b06074b48b997aac9be08edcf 100644 (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)