Works a little better with the following patch to untiffani: --- /usr/local/bin/untuttifrutti 2005-01-12 21:54:38.000000000 -0800 +++ /usr/local/bin/untiffani 2005-01-12 21:27:07.000000000 -0800 @@ -16,7 +16,7 @@ c_size="-1" cur_sha1 () { if [ "$c_sha1" = "" ]; then - c_sha1=$(sha1sum < "$file") + c_sha1=$(sha1sum "$file" | cut -d\ -f1) fi echo $c_sha1 } @@ -38,10 +38,10 @@ while read n_sha1 n_size n_patch; do echo "try: $n_patch" if [ $(cur_size) = "$n_size" ]; then - if true || [ $(cur_sha1) = "$n_sha1" ]; then + if [ $(cur_sha1) = "$n_sha1" ]; then curl -s "$patchurl/$n_patch.diff.gz" | zcat > $patch p_size=$(sizeof $patch) - p_sha1=$(sha1sum < $patch) + p_sha1=$(sha1sum $patch | cut -d\ -f1) if [ "$p_sha1 $p_size" = "$(patch_sha1_size $n_patch)" ]; then
You'll also want to make the following changes to the unnamed bit of usage. @@ -8,9 +8,9 @@ >"$tmp" url2="${url}/dists/${path}/diff" url2=$(echo "$url2" | sed 's/testing/sarge/;s/unstable/sid/') - wget -q -O "$tmp" "${url2}/Index" + wget -q -o "$tmp" "${url2}/Index" if [ -s "$tmp" ]; then - cp "$p" "${p}.bak" + cp "$p" "${p.bak}" /usr/local/bin/untiffani "$p" "$tmp" "${url2}" fi done Cheers, -- Steve Langasek postmodern programmer
signature.asc
Description: Digital signature