public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: Anton Mikanovich <amikan@ilbers.de>
Cc: isar-users@googlegroups.com
Subject: Re: [PATCH] isar-bootstrap: Fail on invalid apt source list
Date: Wed, 17 Nov 2021 18:12:24 +0100	[thread overview]
Message-ID: <20211117181224.6699a2a8@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20211116095907.198455-1-amikan@ilbers.de>

Am Tue, 16 Nov 2021 12:59:07 +0300
schrieb Anton Mikanovich <amikan@ilbers.de>:

> Returning empty list leads to ambiguous errors, so we should fail
> early if distro sources.list is empty or incorrect.
> 
> Fix issue #72

Not sure that will work. In case you want github to close on "master"
merge.

Fixes
Closes

should work
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue

 
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>  meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index
> e9f92916..20a9afaf 100644 ---
> a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++
> b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -163,11
> +163,10 @@ def generate_distro_sources(d): yield parsed
>  
>  def get_distro_primary_source_entry(d):
> -    apt_sources_list = get_aptsources_list(d)

maybe that should be its own patch? Looks like a drive-by fix.

>      for source in generate_distro_sources(d):
>          if source[0] == "deb":
>              return source[2:]
> -    return ["", "", ""]
> +    bb.fatal('Invalid apt sources list')

I did a bit of digging in history. Seems like bbfatal is the right
thing, the empty strings seem to not have had any deeper meaning.

Henning

>  def get_distro_have_https_source(d):
>      return any(source[2].startswith("https://") for source in
> generate_distro_sources(d))


  reply	other threads:[~2021-11-17 17:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-16  9:59 Anton Mikanovich
2021-11-17 17:12 ` Henning Schild [this message]
2021-11-18  6:50   ` Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211117181224.6699a2a8@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox