Update patching rpm-audit to handle both sha256 and md5 checksums
Change-Id: I7e3a7f3cf47488ae55eecf93ee1b5c9fb2f7f763 Signed-off-by: Don Penney <don.penney@windriver.com>
This commit is contained in:
parent
58d8127094
commit
e212d91a6f
@ -101,9 +101,9 @@ do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $INCLUDE_PYTHON_FILES == "no" && $pname =~ \.py[co]?$ ]]
|
if [[ $INCLUDE_PYTHON_FILES == "no" && $pname =~ \.py[co]$ ]]
|
||||||
then
|
then
|
||||||
# Skip python .py or .pyc file
|
# Skip python .pyo or .pyc file
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -135,7 +135,15 @@ do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $psum $pname | sha256sum --check --status
|
let -i sumlen=$(echo -n $psum | wc -c)
|
||||||
|
if [ $sumlen = 64 ]
|
||||||
|
then
|
||||||
|
sumcmd=sha256sum
|
||||||
|
else
|
||||||
|
sumcmd=md5sum
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo $psum $pname | $sumcmd --check --status
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "Mismatch: $pname ($pkg)"
|
echo "Mismatch: $pname ($pkg)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user