From a113eceaa45de6e753c73a5b53006ff7f0477d99 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sat, 17 Aug 2024 11:48:52 +0200 Subject: [PATCH] packages: release: test: really warn when files are missing from ${release_files}. Before this commit if some files were in the release directory but missing from ${release_files}, it would show something like that: [ !! ] release/i945-thinkpads-install/gnuboot_src.tar The ${release_files} variable is used to test for files missing in the release directory, and it prints something if a file is missing: [ !! ] release/roms/gnuboot-0.1-rc3-95-g1783708_d510mo.tar.xz is missing Since confusion is possible between the two tests (especially if the people looking at the log don't have all the code and context in mind when doing that), this commit changes the code to print something like that instead: [ !! ] release/i945-thinkpads-install/gnuboot_src.tar missing in ${release_files} Signed-off-by: Denis 'GNUtoo' Carikli neox: fixed commit message Acked-by: Adrien Bourmault --- resources/packages/release/test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/packages/release/test b/resources/packages/release/test index 406d592..bca6c51 100755 --- a/resources/packages/release/test +++ b/resources/packages/release/test @@ -185,7 +185,7 @@ test_release_dir() done if [ $found -eq 0 ] ; then - echo "[ !! ] $path" + echo "[ !! ] $path missing in \${release_files}" fi done < <(find "${dir}" -type f -print0) }