mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: "Christoph G. Baumann" <chris@sgoc.de>
Cc: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: Re: [ptxdist] PTXdist 2024.11.0 doesn't seem to check for already downloaded archives
Date: Tue, 26 Nov 2024 09:36:18 +0100	[thread overview]
Message-ID: <Z0WIgnQU2yacjLxO@pengutronix.de> (raw)
In-Reply-To: <1507610582.167516.1732544788381@email.ionos.de>

Hi,

On Mon, Nov 25, 2024 at 03:26:28PM +0100, Christoph G. Baumann wrote:
> recently I wanted to upgrade my project to PTXdist 2024.11.0.
> When rerunning a build I was surprised that the 'get' stage downloaded all the archives again despite them already being present in the src directory.
> Then I tried to trace this in the files in scripts/lib. It boiled down to a line in scripts/lib/ptxd_make_world_get.sh.
> According to 'git log' it was changed in this commit:
> 
> commit ca7217db7bf2afe1104b074843403209f7f65aa3
> Author: Michael Olbrich <m.olbrich@pengutronix.de>
> Date:   Thu Mar 7 08:28:42 2024 +0100
> 
>     ptxd_make_world_report_yaml: add source git commit if requested and available
>     Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> When I restored the changed line to
> "if [ -n "${pkg_src}" -a \( \! -e "${pkg_src}" -o "${ptxd_make_get_dryrun}" = "y" \) ]; then"
> everything worked again as expected.
> 
> Was this done intentionally?

Yes, the same commit made this change in ptxd_make_get_http() in
ptxd_make_get.sh:
------------
-    else
+    elif [ ! -e "${path}" ]; then
------------
This skips the download if the file already exists.

Maybe you have a local version of ptxd_make_get_http() in your BSP?

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2024-11-26  8:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-25 14:26 Christoph G. Baumann
2024-11-26  8:36 ` Michael Olbrich [this message]
2024-11-26 13:56   ` Christoph G. Baumann

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=Z0WIgnQU2yacjLxO@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=chris@sgoc.de \
    --cc=ptxdist@pengutronix.de \
    /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