summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAndrey Zhizhikin <andrey.z@gmail.com>2020-10-31 22:07:39 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-12 13:07:52 (GMT)
commit7fd071d82914fd9f89f8be6ccc4bd81dc811a730 (patch)
tree03bd7b4c7ad0ac808be7b134905688ad8b2a3094 /meta/classes
parentb7a3c102b4a2bd4fad36769d5b2a375f66d330bb (diff)
downloadpoky-7fd071d82914fd9f89f8be6ccc4bd81dc811a730.tar.gz
insane: add GitLab /archive/ tests
Archives produced by GitLab should be avoided in the same way as those produced by GitHub. Extend SRC_URI check to include GitLab and inform user that recipe should be converted to use git protocol. Link: https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg73109.html Link: https://lists.openembedded.org/g/openembedded-core/message/144035 Cc: Martin Jansa <martin.jansa@gmail.com> (From OE-Core rev: 72f2c45880afbba1745e5e0cbd841d7fd666f374) Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d76b33c6a8489378a1f5500554367127199ae19d) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 601b6b6..b5c6b21 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -975,8 +975,8 @@ def package_qa_check_src_uri(pn, d, messages):
975 package_qa_handle_error("src-uri-bad", "%s: SRC_URI uses PN not BPN" % pn, d) 975 package_qa_handle_error("src-uri-bad", "%s: SRC_URI uses PN not BPN" % pn, d)
976 976
977 for url in d.getVar("SRC_URI").split(): 977 for url in d.getVar("SRC_URI").split():
978 if re.search(r"github\.com/.+/.+/archive/.+", url): 978 if re.search(r"git(hu|la)b\.com/.+/.+/archive/.+", url):
979 package_qa_handle_error("src-uri-bad", "%s: SRC_URI uses unstable GitHub archives" % pn, d) 979 package_qa_handle_error("src-uri-bad", "%s: SRC_URI uses unstable GitHub/GitLab archives, convert recipe to use git protocol" % pn, d)
980 980
981QARECIPETEST[unhandled-features-check] = "package_qa_check_unhandled_features_check" 981QARECIPETEST[unhandled-features-check] = "package_qa_check_unhandled_features_check"
982def package_qa_check_unhandled_features_check(pn, d, messages): 982def package_qa_check_unhandled_features_check(pn, d, messages):