All of lore.kernel.org
 help / color / mirror / Atom feed
* [OE-core][PATCH] classes/sanity: De-golf regex
@ 2022-08-08 13:19 Joshua Watt
  2022-08-08 13:32 ` Luca Ceresoli
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Joshua Watt @ 2022-08-08 13:19 UTC (permalink / raw)
  To: openembedded-core; +Cc: luca.ceresoli, Joshua Watt

The regex to match github or gitlab was unnecessarily shortened, which
prevented them from showing up when grepping.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 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() {
-- 
2.33.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [OE-core][PATCH] classes/sanity: De-golf regex
  2022-08-08 13:19 [OE-core][PATCH] classes/sanity: De-golf regex Joshua Watt
@ 2022-08-08 13:32 ` Luca Ceresoli
  2022-08-08 19:34 ` Alexandre Belloni
  2022-08-09 19:53 ` Randy MacLeod
  2 siblings, 0 replies; 5+ messages in thread
From: Luca Ceresoli @ 2022-08-08 13:32 UTC (permalink / raw)
  To: Joshua Watt; +Cc: openembedded-core

Hi Joshua,

On Mon,  8 Aug 2022 08:19:51 -0500
Joshua Watt <jpewhacker@gmail.com> wrote:

> The regex to match github or gitlab was unnecessarily shortened, which
> prevented them from showing up when grepping.
> 
> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>

Thank you!

Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core][PATCH] classes/sanity: De-golf regex
  2022-08-08 13:19 [OE-core][PATCH] classes/sanity: De-golf regex Joshua Watt
  2022-08-08 13:32 ` Luca Ceresoli
@ 2022-08-08 19:34 ` Alexandre Belloni
  2022-08-08 19:41   ` Joshua Watt
  2022-08-09 19:53 ` Randy MacLeod
  2 siblings, 1 reply; 5+ messages in thread
From: Alexandre Belloni @ 2022-08-08 19:34 UTC (permalink / raw)
  To: Joshua Watt; +Cc: openembedded-core, luca.ceresoli

Hi,

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

This doesn't apply since we have "classes/sanity: Add comment about
github & gitlab archives" in master. I guess this was one or the other.

> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> ---
>  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() {
> -- 
> 2.33.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#169085): https://lists.openembedded.org/g/openembedded-core/message/169085
> Mute This Topic: https://lists.openembedded.org/mt/92891575/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core][PATCH] classes/sanity: De-golf regex
  2022-08-08 19:34 ` Alexandre Belloni
@ 2022-08-08 19:41   ` Joshua Watt
  0 siblings, 0 replies; 5+ messages in thread
From: Joshua Watt @ 2022-08-08 19:41 UTC (permalink / raw)
  To: Alexandre Belloni; +Cc: openembedded-core, luca.ceresoli

On Mon, Aug 8, 2022 at 2:34 PM Alexandre Belloni
<alexandre.belloni@bootlin.com> wrote:
>
> Hi,
>
> On 08/08/2022 08:19:51-0500, Joshua Watt wrote:
> > The regex to match github or gitlab was unnecessarily shortened, which
> > prevented them from showing up when grepping.
> >
>
> This doesn't apply since we have "classes/sanity: Add comment about
> github & gitlab archives" in master. I guess this was one or the other.

Ack, sorry. This was due to feedback on that patch, and I didn't
realize it had merged already. Sorry about that. It doesn't really
matter to me which one was merged, so dropping this is fine

I think I should have done this one as a V2, or at least in-reply-to that one?

>
> > Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> > ---
> >  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() {
> > --
> > 2.33.0
> >
>
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#169085): https://lists.openembedded.org/g/openembedded-core/message/169085
> > Mute This Topic: https://lists.openembedded.org/mt/92891575/3617179
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
>
> --
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core][PATCH] classes/sanity: De-golf regex
  2022-08-08 13:19 [OE-core][PATCH] classes/sanity: De-golf regex Joshua Watt
  2022-08-08 13:32 ` Luca Ceresoli
  2022-08-08 19:34 ` Alexandre Belloni
@ 2022-08-09 19:53 ` Randy MacLeod
  2 siblings, 0 replies; 5+ messages in thread
From: Randy MacLeod @ 2022-08-09 19:53 UTC (permalink / raw)
  To: Joshua Watt, openembedded-core; +Cc: luca.ceresoli

[-- Attachment #1: Type: text/plain, Size: 1833 bytes --]

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<JPEWhacker@gmail.com>
> ---
>   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() {
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#169085):https://lists.openembedded.org/g/openembedded-core/message/169085
> Mute This Topic:https://lists.openembedded.org/mt/92891575/3616765
> Group Owner:openembedded-core+owner@lists.openembedded.org
> Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub  [randy.macleod@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

-- 
# Randy MacLeod
# Wind River Linux

[-- Attachment #2: Type: text/html, Size: 3276 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-09 19:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-08 13:19 [OE-core][PATCH] classes/sanity: De-golf regex Joshua Watt
2022-08-08 13:32 ` Luca Ceresoli
2022-08-08 19:34 ` Alexandre Belloni
2022-08-08 19:41   ` Joshua Watt
2022-08-09 19:53 ` Randy MacLeod

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.