diff --git a/lib/sde-package/patch-cksum.sh b/lib/sde-package/patch-cksum.sh index 24c24df..2105479 100755 --- a/lib/sde-package/patch-cksum.sh +++ b/lib/sde-package/patch-cksum.sh @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: lib/sde-package/patch-cksum.sh -# Copyright (C) 2006 The OpenSDE Project +# Copyright (C) 2006 - 2007 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -76,13 +76,9 @@ cksum_file() { continue fi - if [[ "$bzfile" = *.bz2 ]] || [[ "$bzfile" = *.tbz2 ]] ; then - echo -n "$bzfile (bzip2): " >&2 - newcksum="`bunzip2 < $bzfile | cksum | cut -f1 -d' '`" - else - echo -n "$gzfile (raw): " >&2 - newcksum="`cksum $gzfile | cut -f1 -d' '`" - fi + echo -n "$bzfile: " >&2 + newcksum=$( sh lib/sde-download/cksum.sh "$bzfile" | cut -d' ' -f2 ) + echo $newcksum >&2 if [ "$cksum" != 0 -a "$cksum" != "$newcksum" ]; then @@ -96,8 +92,6 @@ cksum_file() { rm -f /tmp/$$ } -echo "Creating cksum.patch ..." >&2 - for f in $files; do cksum_file $f done