Harijoe
Harijoe

Reputation: 1791

Babun pact checksum error

I am trying to setup babun following the official website, but when I try to install a package, I constantly get a checksum error.

enter image description here

Additional info :

Edit I tried it on another pc, on a different network, same error has been encountered.

Upvotes: 1

Views: 944

Answers (3)

jlupi
jlupi

Reputation: 35

This issue was fixed in version 1.1.0. Just execute 'babun update.

Upvotes: 0

dragon788
dragon788

Reputation: 3931

Per a user on a babun issues thread: https://github.com/babun/babun/issues/183#issuecomment-85597677

Replaced

# check the md5
digest=`cat "desc" | awk '/^install: / { print $4; exit }'` 
digactual=`md5sum $file | awk '{print $1}'`
if ! [[ $digest == $digactual ]]
then
  echo MD5 sum did not match, exiting
  exit 1
fi

in .babun/cygwin/usr/local/bin/pact with

# check the verification hash (md5 or sha512)
digest=`cat "desc" | awk '/^install: / { print $4; exit }'`
md5digactual=`md5sum $file | awk '{print $1}'`
shadigactual=`sha512sum $file | awk '{print $1}'`
if ! [[ $digest == $md5digactual || $digest == $shadigactual ]]
then
  echo Verification hash did not match, exiting
  exit 1
fi

That got me up and working until they merge the commit. Since I'm running from a release I'll have to work on converting to the live Git version.

Upvotes: 3

Ludovic Ronsin
Ludovic Ronsin

Reputation: 812

It seems to be an issue that has been corrected 2 days ago.
See https://github.com/babun/babun/issues/257

Upvotes: 0

Related Questions