diff options
author | Joey Hess <joey@kitenet.net> | 2011-08-15 20:29:11 (GMT) |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-08-15 20:29:16 (GMT) |
commit | 8a38afd4795ce976978e3be0fd539cda1a3da243 (patch) | |
tree | 4b1506e06c917ea291214d46e099c1721e453400 /debootstrap | |
parent | 7401415a4c6d90c48cbe8e8d9ca6cc8539c8f3c7 (diff) | |
download | debootstrap-8a38afd4795ce976978e3be0fd539cda1a3da243.zip debootstrap-8a38afd4795ce976978e3be0fd539cda1a3da243.tar.gz debootstrap-8a38afd4795ce976978e3be0fd539cda1a3da243.tar.bz2 |
Support using md5 and shaN programs, as found on FreeBSD, in addition to md5sum and shaNsum.
Based on the patch used for the FreeBSD port of debootstrap:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/debootstrap/files/patch-functions?rev=1.3;content-type=text%2Fplain
That entire patch should now be unnecessary.
Diffstat (limited to 'debootstrap')
-rwxr-xr-x | debootstrap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debootstrap b/debootstrap index 278ed64..ca4c026 100755 --- a/debootstrap +++ b/debootstrap @@ -447,7 +447,7 @@ fi if [ -z "$SHA_SIZE" ]; then SHA_SIZE=256 fi -if ! in_path "sha${SHA_SIZE}sum"; then +if ! in_path "sha${SHA_SIZE}sum" && ! in_path "sha${SHA_SIZE}"; then SHA_SIZE=1 fi DEBOOTSTRAP_CHECKSUM_FIELD="SHA$SHA_SIZE" |