mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Lars Schmidt <l.schmidt@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] ptxd_make_world_inject: create target path before copying
Date: Tue,  5 Aug 2025 06:59:52 +0200	[thread overview]
Message-ID: <20250805045952.3785353-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20250801092153.610071-1-l.schmidt@pengutronix.de>

Thanks, applied as 6b2f811a0403948a5475d0f56f05c3cd8ab2f001.

Michael

[sent from post-receive hook]

On Tue, 05 Aug 2025 06:59:52 +0200, Lars Schmidt <l.schmidt@pengutronix.de> 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.
> 
> Signed-off-by: Lars Schmidt <l.schmidt@pengutronix.de>
> Reviewed-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20250801092153.610071-1-l.schmidt@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/scripts/lib/ptxd_make_world_inject.sh b/scripts/lib/ptxd_make_world_inject.sh
> index e8e94fbe6397..a31184dced70 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



      parent reply	other threads:[~2025-08-05  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-01  9:21 [ptxdist] [PATCH] " Lars Schmidt
2025-08-01  9:32 ` Alexander Dahl via ptxdist
2025-08-05  4:59 ` Michael Olbrich [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=20250805045952.3785353-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=l.schmidt@pengutronix.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