DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Robert Schwebel <r.schwebel@pengutronix.de>
To: Lars Schmidt <l.schmidt@pengutronix.de>
Cc: distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH 2/2] scripts: create target path in ptxd_make_world_inject
Date: Sat, 2 Aug 2025 07:38:08 +0200	[thread overview]
Message-ID: <aI2kQChVsjTU_ymX@pengutronix.de> (raw)
In-Reply-To: <20250801120132.956876-2-l.schmidt@pengutronix.de>

Applied this variant to next.

On Fri, Aug 01, 2025 at 02:01:32PM +0200, Lars Schmidt wrote:
> If the target path does not exist, the files are not copied.
> To avoid that, create the target path in advance to copying the files.
> Patch copied from ptxdist, see [1].
> 
> [1]: https://lore.ptxdist.org/ptxdist/20250801092153.610071-1-l.schmidt@pengutronix.de/
> 
> Signed-off-by: Lars Schmidt <l.schmidt@pengutronix.de>
> ---
>  scripts/lib/ptxd_make_world_inject.sh | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/scripts/lib/ptxd_make_world_inject.sh b/scripts/lib/ptxd_make_world_inject.sh
> index e8e94fb..a31184d 100644
> --- a/scripts/lib/ptxd_make_world_inject.sh
> +++ b/scripts/lib/ptxd_make_world_inject.sh
> @@ -24,6 +24,7 @@ ptxd_make_inject() {
>  
>      echo -e "\nInject file $(ptxd_print_path ${source}) into" \
>  	 "$(ptxd_print_path ${target})..."
> +    mkdir -p "$(dirname "${target}")"
>      cp ${source} ${target}
>  }
>  export -f ptxd_make_inject
> -- 
> 2.39.5
> 
> 
> 

-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |



  reply	other threads:[~2025-08-02  5:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-31 15:51 [DistroKit] [PATCH] v8a: barebox: version bump 2025.06.1 -> 2025.07.0 Lars Schmidt
2025-07-31 19:02 ` Robert Schwebel
2025-08-01  9:14 ` [DistroKit] [PATCH 1/3] fixup! " Lars Schmidt
2025-08-01  9:14   ` [DistroKit] [PATCH 2/3] script: add ptxd_make_world_inject from ptxdist Lars Schmidt
2025-08-01  9:29     ` Alexander Dahl
2025-08-01 12:01       ` [DistroKit] [PATCH 1/2] " Lars Schmidt
2025-08-01 12:01         ` [DistroKit] [PATCH 2/2] scripts: create target path in ptxd_make_world_inject Lars Schmidt
2025-08-02  5:38           ` Robert Schwebel [this message]
2025-08-01  9:14   ` [DistroKit] [PATCH 3/3] " Lars Schmidt

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=aI2kQChVsjTU_ymX@pengutronix.de \
    --to=r.schwebel@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    --cc=l.schmidt@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