mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] PTXdist 2024.11.0 doesn't seem to check for already downloaded archives
@ 2024-11-25 14:26 Christoph G. Baumann
  2024-11-26  8:36 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph G. Baumann @ 2024-11-25 14:26 UTC (permalink / raw)
  To: ptxdist

Hello,

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?


Best regards,
Christoph



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

* Re: [ptxdist] PTXdist 2024.11.0 doesn't seem to check for already downloaded archives
  2024-11-25 14:26 [ptxdist] PTXdist 2024.11.0 doesn't seem to check for already downloaded archives Christoph G. Baumann
@ 2024-11-26  8:36 ` Michael Olbrich
  2024-11-26 13:56   ` Christoph G. Baumann
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2024-11-26  8:36 UTC (permalink / raw)
  To: Christoph G. Baumann; +Cc: ptxdist

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 |



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

* Re: [ptxdist] PTXdist 2024.11.0 doesn't seem to check for already downloaded archives
  2024-11-26  8:36 ` Michael Olbrich
@ 2024-11-26 13:56   ` Christoph G. Baumann
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph G. Baumann @ 2024-11-26 13:56 UTC (permalink / raw)
  To: ptxdist

Hello Michael,

> Michael Olbrich <m.olbrich@pengutronix.de> hat am 26.11.2024 09:36 CET geschrieben:
> [...]
> 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?

you are right. Some colleague snuck in a tampered, but obsolete version of ptxd_make_get.sh into the BSP.
Didn't know this could also be overridden :-)


Best regards,
Christoph



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

end of thread, other threads:[~2024-11-26 13:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-25 14:26 [ptxdist] PTXdist 2024.11.0 doesn't seem to check for already downloaded archives Christoph G. Baumann
2024-11-26  8:36 ` Michael Olbrich
2024-11-26 13:56   ` Christoph G. Baumann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox