* [ptxdist] [PATCH] ptxd_make_world_lint: fail gracefully if 'diffstat' is not installed
[not found] <20210301071231.GF7442@pengutronix.de>
@ 2021-03-01 10:34 ` Roland Hieber
2021-03-05 7:26 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Roland Hieber @ 2021-03-01 10:34 UTC (permalink / raw)
To: ptxdist; +Cc: Roland Hieber
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
scripts/lib/ptxd_make_world_lint.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/lib/ptxd_make_world_lint.sh b/scripts/lib/ptxd_make_world_lint.sh
index 65fdd3b72e5e..db855adbef25 100644
--- a/scripts/lib/ptxd_make_world_lint.sh
+++ b/scripts/lib/ptxd_make_world_lint.sh
@@ -151,6 +151,12 @@ ptxd_make_world_lint_autogen() {
local dir fd file need_autogen
echo "Checking for missing autogen.sh ..."
+
+ if [ -z "$(type -t diffstat)" ]; then
+ ptxd_warning "'diffstat' not found, skipping checks for missing autogen.sh"
+ return
+ fi
+
for dir in ${ptx_patch_dir_all}; do
need_autogen=
exec {fd}< <(find "${dir}" -type f ! -name autogen.sh ! -name series)
--
2.29.2
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [APPLIED] ptxd_make_world_lint: fail gracefully if 'diffstat' is not installed
2021-03-01 10:34 ` [ptxdist] [PATCH] ptxd_make_world_lint: fail gracefully if 'diffstat' is not installed Roland Hieber
@ 2021-03-05 7:26 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-03-05 7:26 UTC (permalink / raw)
To: ptxdist; +Cc: Roland Hieber
Thanks, applied as 642d4847a7bedc9a5df1a66807ba89a50bc45264.
Michael
[sent from post-receive hook]
On Fri, 05 Mar 2021 08:26:16 +0100, Roland Hieber <rhi@pengutronix.de> wrote:
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> Message-Id: <20210301103410.32477-1-rhi@pengutronix.de>
> [mol: use echo and add extra newline]
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/scripts/lib/ptxd_make_world_lint.sh b/scripts/lib/ptxd_make_world_lint.sh
> index 65fdd3b72e5e..3d0e20213dd0 100644
> --- a/scripts/lib/ptxd_make_world_lint.sh
> +++ b/scripts/lib/ptxd_make_world_lint.sh
> @@ -151,6 +151,13 @@ ptxd_make_world_lint_autogen() {
> local dir fd file need_autogen
>
> echo "Checking for missing autogen.sh ..."
> +
> + if [ -z "$(type -t diffstat)" ]; then
> + echo "'diffstat' not found, skipping checks for missing autogen.sh"
> + echo
> + return
> + fi
> +
> for dir in ${ptx_patch_dir_all}; do
> need_autogen=
> exec {fd}< <(find "${dir}" -type f ! -name autogen.sh ! -name series)
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-05 7:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20210301071231.GF7442@pengutronix.de>
2021-03-01 10:34 ` [ptxdist] [PATCH] ptxd_make_world_lint: fail gracefully if 'diffstat' is not installed Roland Hieber
2021-03-05 7:26 ` [ptxdist] [APPLIED] " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox