De-golf?

LoL: https://www.explainxkcd.com/wiki/index.php/1313:_Regex_Golf

on "regex golf <http://regex.alf.nu/>", which is a discipline of "code golf <https://en.wikipedia.org/wiki/Code_golf>", a game in which programmers attempt to solve a given programming problem using as few characters as possible,


I need to get out more!

../Randy


On 2022-08-08 09:19, Joshua Watt wrote:
The regex to match github or gitlab was unnecessarily shortened, which
prevented them from showing up when grepping.

Signed-off-by: Joshua Watt<[email protected]>
---
  meta/classes/insane.bbclass | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 37e10ad850..b66926f540 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -1335,7 +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():
-        if re.search(r"git(hu|la)b\.com/.+/.+/archive/.+", url):
+        if re.search(r"(github|gitlab)\.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)
python do_qa_unpack() {




--
# Randy MacLeod
# Wind River Linux
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#169160): 
https://lists.openembedded.org/g/openembedded-core/message/169160
Mute This Topic: https://lists.openembedded.org/mt/92891575/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to