Listing /firmware/dep11/README.txt in md5sum.txt if all its MD5 lines are equal

This commit is contained in:
Thomas Schmitt 2022-06-24 09:40:12 +02:00
parent a94f22d92b
commit 072c4e5ab9
2 changed files with 9 additions and 1 deletions

View File

@ -532,7 +532,7 @@ check_and_put_out_md5_grep() {
fi
if echo "$prev_path" | grep '^\.\/firmware\/' >/dev/null 2>&1
then
if test "$was_multiple" = 1
if test "$was_multiple" = 1 && test "$multi_md5_differs" = 1
then
# There is the risk that the surviving file does not match prev_md5.
# Better omit it.
@ -573,12 +573,19 @@ polish_md5sum_txt() {
prev_path=
prev_md5=
was_multiple=0
multi_md5_differs=0
cat merged_md5sum.txt | \
while read md5 path
do
if test "$path" = "$prev_path"
then
if test "$md5" = "$prev_md5"
then
dummy=dummy
else
multi_md5_differs=1
fi
was_multiple=1
continue
fi
@ -590,6 +597,7 @@ polish_md5sum_txt() {
prev_path="$path"
prev_md5="$md5"
was_multiple=0
multi_md5_differs=0
done
if test -n "$prev_path"

Binary file not shown.