All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] uninative: handle url in `PREMIRRORS` with parameter correctly
       [not found] <6b4981f24196489ca92981d5201ec7fd@de.bosch.com>
@ 2020-09-03  7:04 ` nico.mueller
       [not found] ` <16313426C15D0D14.16839@lists.yoctoproject.org>
  1 sibling, 0 replies; 3+ messages in thread
From: nico.mueller @ 2020-09-03  7:04 UTC (permalink / raw)
  To: poky

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

This patch places url parameters correctly in a the uninative fetcher when mirrors are used.

The following changes since commit a6709152e9788418e6c9431851437eb8ec4c6b46:

  bitbake: process/knotty: Improve early exception handling (2020-09-02 16:01:05 +0100)

are available in the Git repository at:

  git://push.yoctoproject.org/poky-contrib niecore/fix-bug-in-uninative-mirror-handleing

Nico Müller (1):
  uninative: handle url in `PREMIRRORS` with parameter correctly

 meta/classes/uninative.bbclass | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

--
2.27.0

Signed-off-by: Nico Müller <nico.mueller@de.bosch.com>
---
 meta/classes/uninative.bbclass | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 316c0f0616..8a78274144 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -63,7 +63,14 @@ python uninative_event_fetchloader() {
                 except ValueError:
                     continue
                 if find.startswith("http"):
-                    localdata.appendVar("PREMIRRORS", " ${UNINATIVE_URL}${UNINATIVE_TARBALL} %s/uninative/%s/${UNINATIVE_TARBALL}" % (replace, chksum))
+                    # Check if PREMIRROR url is using parameters
+                    if ";" in replace:
+                        premirror_url, premirror_parameter = replace.split(";", 1)
+                        premirror = " %s/uninative/%s/${UNINATIVE_TARBALL};%s" % (premirror_url, chksum, premirror_parameter)
+                    else:
+                        premirror = " %s/uninative/%s/${UNINATIVE_TARBALL}" % (replace, chksum)
+
+                    localdata.appendVar("PREMIRRORS", " ${UNINATIVE_URL}${UNINATIVE_TARBALL} " + premirror)

             srcuri = d.expand("${UNINATIVE_URL}${UNINATIVE_TARBALL};sha256sum=%s" % chksum)
             bb.note("Fetching uninative binary shim %s (will check PREMIRRORS first)" % srcuri)
--
2.27.0

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

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

* Re: [poky] [PATCH] uninative: handle url in `PREMIRRORS` with parameter correctly
       [not found] ` <16313426C15D0D14.16839@lists.yoctoproject.org>
@ 2020-10-14  7:15   ` Mueller Nico (TT-RHC/EIS)
  2020-10-14  9:06     ` Paul Barker
  0 siblings, 1 reply; 3+ messages in thread
From: Mueller Nico (TT-RHC/EIS) @ 2020-10-14  7:15 UTC (permalink / raw)
  To: poky, Mueller Nico (TT-RHC/PAT)

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

Dear poky-Maintainers,


what further information is required in order to to get this patch merged?


Kind regards,

Nico Müller

________________________________
Von: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> im Auftrag von Mueller Nico (TT-RHC/EIS) via lists.yoctoproject.org <nico.mueller=de.bosch.com@lists.yoctoproject.org>
Gesendet: Donnerstag, 3. September 2020 09:04:37
An: poky@lists.yoctoproject.org
Betreff: [poky] [PATCH] uninative: handle url in `PREMIRRORS` with parameter correctly

This patch places url parameters correctly in a the uninative fetcher when mirrors are used.

The following changes since commit a6709152e9788418e6c9431851437eb8ec4c6b46:

  bitbake: process/knotty: Improve early exception handling (2020-09-02 16:01:05 +0100)

are available in the Git repository at:

  git://push.yoctoproject.org/poky-contrib niecore/fix-bug-in-uninative-mirror-handleing

Nico Müller (1):
  uninative: handle url in `PREMIRRORS` with parameter correctly

 meta/classes/uninative.bbclass | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

--
2.27.0

Signed-off-by: Nico Müller <nico.mueller@de.bosch.com>
---
 meta/classes/uninative.bbclass | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 316c0f0616..8a78274144 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -63,7 +63,14 @@ python uninative_event_fetchloader() {
                 except ValueError:
                     continue
                 if find.startswith("http"):
-                    localdata.appendVar("PREMIRRORS", " ${UNINATIVE_URL}${UNINATIVE_TARBALL} %s/uninative/%s/${UNINATIVE_TARBALL}" % (replace, chksum))
+                    # Check if PREMIRROR url is using parameters
+                    if ";" in replace:
+                        premirror_url, premirror_parameter = replace.split(";", 1)
+                        premirror = " %s/uninative/%s/${UNINATIVE_TARBALL};%s" % (premirror_url, chksum, premirror_parameter)
+                    else:
+                        premirror = " %s/uninative/%s/${UNINATIVE_TARBALL}" % (replace, chksum)
+
+                    localdata.appendVar("PREMIRRORS", " ${UNINATIVE_URL}${UNINATIVE_TARBALL} " + premirror)

             srcuri = d.expand("${UNINATIVE_URL}${UNINATIVE_TARBALL};sha256sum=%s" % chksum)
             bb.note("Fetching uninative binary shim %s (will check PREMIRRORS first)" % srcuri)
--
2.27.0

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

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

* Re: [poky] [PATCH] uninative: handle url in `PREMIRRORS` with parameter correctly
  2020-10-14  7:15   ` [poky] " Mueller Nico (TT-RHC/EIS)
@ 2020-10-14  9:06     ` Paul Barker
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Barker @ 2020-10-14  9:06 UTC (permalink / raw)
  To: nico.mueller; +Cc: poky

On Wed, 14 Oct 2020 at 08:16, Mueller Nico (TT-RHC/EIS) via
lists.yoctoproject.org
<nico.mueller=de.bosch.com@lists.yoctoproject.org> wrote:
>
> Dear poky-Maintainers,
>
>
> what further information is required in order to to get this patch merged?

Hi Nico,

Please re-send the patch to openembedded-core@lists.openembedded.org.
The email you've sent seems to combine a pull request header with the
diff - you'll need to send this as a patch with the commit message in
the body of the email. I recommend using git format-patch and/or git
send-email.

You can see more patch submission guidelines at
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded.

Thanks,

-- 
Paul Barker
Konsulko Group

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

end of thread, other threads:[~2020-10-14  9:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <6b4981f24196489ca92981d5201ec7fd@de.bosch.com>
2020-09-03  7:04 ` [PATCH] uninative: handle url in `PREMIRRORS` with parameter correctly nico.mueller
     [not found] ` <16313426C15D0D14.16839@lists.yoctoproject.org>
2020-10-14  7:15   ` [poky] " Mueller Nico (TT-RHC/EIS)
2020-10-14  9:06     ` Paul Barker

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.