Commit 2f3c827d authored by Ricardo Tavares de Oliveira's avatar Ricardo Tavares de Oliveira Committed by Vinicius Ruoso

Fix integrity/prd_md5: Changed name of variable and others

One variable was declared with a wrong name. This causes the crashes of the
system. We are fixating it.

Also, the function get_base will return the exit code of bunzip2.
Finally, we are commenting the actions we perform to fix the problems.
Signed-off-by: default avatarRicardo Tavares de Oliveira <rto07@c3sl.ufpr.br>
parent 3009ed0b
......@@ -13,7 +13,7 @@
function get_base()
{
RFIFE=$1
RFILE=$1
LFILE=$2
printf "PRD_MD5+prd_md5_mrequest.st&Y&${RFILE}&${LFILE}\n"
waitsendfile "${LFILE}"
......@@ -21,7 +21,7 @@ function get_base()
bunzip2 $LFILE 2>/dev/null
return 0
return $?
}
......@@ -158,11 +158,11 @@ function verify_md5()
($3 ~ /^'$(sed "s/\//\\\\\\//g" <<< $filename)'$/) \
{print $2}' $LBASETX | head -1)
if [[ "$pendingmd5" != "$anothercorrectmd5" ]]; then
rm -f /var/lib/apt/lists/prdmirror*
apt-get --quiet -y --force-yes clean &> /dev/null
apt-get --quiet -y --force-yes update &> /dev/null
apt-get --quiet -y --force-yes install --reinstall\
${pack} &> /dev/null
#rm -f /var/lib/apt/lists/prdmirror*
#apt-get --quiet -y --force-yes clean &> /dev/null
#apt-get --quiet -y --force-yes update &> /dev/null
#apt-get --quiet -y --force-yes install --reinstall\
# ${pack} &> /dev/null
pendingmd5=$(md5sum "$filename" 2> /dev/null |\
cut -d' ' -f1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment