Listing /firmware/dep11/README.txt in md5sum.txt if all its MD5 lines are equal
This commit is contained in:
parent
a94f22d92b
commit
072c4e5ab9
@ -532,7 +532,7 @@ check_and_put_out_md5_grep() {
|
|||||||
fi
|
fi
|
||||||
if echo "$prev_path" | grep '^\.\/firmware\/' >/dev/null 2>&1
|
if echo "$prev_path" | grep '^\.\/firmware\/' >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
if test "$was_multiple" = 1
|
if test "$was_multiple" = 1 && test "$multi_md5_differs" = 1
|
||||||
then
|
then
|
||||||
# There is the risk that the surviving file does not match prev_md5.
|
# There is the risk that the surviving file does not match prev_md5.
|
||||||
# Better omit it.
|
# Better omit it.
|
||||||
@ -573,12 +573,19 @@ polish_md5sum_txt() {
|
|||||||
prev_path=
|
prev_path=
|
||||||
prev_md5=
|
prev_md5=
|
||||||
was_multiple=0
|
was_multiple=0
|
||||||
|
multi_md5_differs=0
|
||||||
|
|
||||||
cat merged_md5sum.txt | \
|
cat merged_md5sum.txt | \
|
||||||
while read md5 path
|
while read md5 path
|
||||||
do
|
do
|
||||||
if test "$path" = "$prev_path"
|
if test "$path" = "$prev_path"
|
||||||
then
|
then
|
||||||
|
if test "$md5" = "$prev_md5"
|
||||||
|
then
|
||||||
|
dummy=dummy
|
||||||
|
else
|
||||||
|
multi_md5_differs=1
|
||||||
|
fi
|
||||||
was_multiple=1
|
was_multiple=1
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
@ -590,6 +597,7 @@ polish_md5sum_txt() {
|
|||||||
prev_path="$path"
|
prev_path="$path"
|
||||||
prev_md5="$md5"
|
prev_md5="$md5"
|
||||||
was_multiple=0
|
was_multiple=0
|
||||||
|
multi_md5_differs=0
|
||||||
done
|
done
|
||||||
|
|
||||||
if test -n "$prev_path"
|
if test -n "$prev_path"
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user