From: Anton Mikanovich <amikan@ilbers.de>
To: Srinuvasan A <Srinuvasan_A@mentor.com>, isar-users@googlegroups.com
Cc: jan.kiszka@siemens.com
Subject: Re: [PATCH] [RFC] deb-dl-dir: Retry downloads 3 times for src files
Date: Thu, 27 Jan 2022 18:02:34 +0300 [thread overview]
Message-ID: <aa31426c-2940-cbc5-c65f-5857d4f36af7@ilbers.de> (raw)
In-Reply-To: <20220119125537.1734102-1-Srinuvasan_A@mentor.com>
19.01.2022 15:55, Srinuvasan A wrote:
> From: Srinuvasan A <srinuvasan_a@mentor.com>
>
> Sometime the source packages are not downloaded successfully due to bad network,
> hence the builds get fails with timeout issue
>
> Added a retry mechanism to attempt multiple times before giving up.
>
> Signed-off-by: Srinuvasan A <srinuvasan_a@mentor.com>
> ---
> meta/classes/deb-dl-dir.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/deb-dl-dir.bbclass b/meta/classes/deb-dl-dir.bbclass
> index ffbff07..42542d7 100644
> --- a/meta/classes/deb-dl-dir.bbclass
> +++ b/meta/classes/deb-dl-dir.bbclass
> @@ -57,7 +57,7 @@ debsrc_download() {
> [ -n "$dscfile" ] && continue
>
> sudo -E chroot --userspec=$( id -u ):$( id -g ) ${rootfs} \
> - sh -c ' mkdir -p "/deb-src/${1}/${2}" && cd "/deb-src/${1}/${2}" && apt-get -y --download-only --only-source source "$2"="$3" ' download-src "${rootfs_distro}" "${src}" "${version}"
> + sh -c ' mkdir -p "/deb-src/${1}/${2}" && cd "/deb-src/${1}/${2}" && apt-get -y -o Acquire::Retries=3 --download-only --only-source source "$2"="$3" ' download-src "${rootfs_distro}" "${src}" "${version}"
> done
> ) 9>"${DEBSRCDIR}/${rootfs_distro}.lock"
>
Applied to next, thanks.
prev parent reply other threads:[~2022-01-27 15:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-19 12:55 Srinuvasan A
2022-01-20 16:11 ` vijai kumar
2022-01-21 15:36 ` Anton Mikanovich
2022-01-27 15:02 ` Anton Mikanovich [this message]
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=aa31426c-2940-cbc5-c65f-5857d4f36af7@ilbers.de \
--to=amikan@ilbers.de \
--cc=Srinuvasan_A@mentor.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.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