From ddf6dd7f6ab2394ab9a0dbdbc20f3ee648804f76 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Wed, 5 Mar 2014 22:53:11 +0100 Subject: [PATCH] gitapply.sh: Improve a few comments. --- debian/tools/gitapply.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/tools/gitapply.sh b/debian/tools/gitapply.sh index 7a7bc7e2..c3f22dfd 100755 --- a/debian/tools/gitapply.sh +++ b/debian/tools/gitapply.sh @@ -71,7 +71,7 @@ while [[ $# > 0 ]]; do ;; *) - warning "Unknown argument $cmd" + warning "Unknown argument $cmd." ;; esac done @@ -368,7 +368,7 @@ while IFS= read -r line; do decoded_tmpfile=$(mktemp) if [ ! -f "$decoded_tmpfile" ]; then - abort "Unable to create temporary file for patch" + abort "Unable to create temporary file for patch." fi # Decode base85 and add a gzip header @@ -380,7 +380,7 @@ while IFS= read -r line; do # Ensure that resulting binary patch has the correct size if [ "$binary_patch_size" -ne "$(du -b "$patch_tmpfile" | cut -f 1)" ]; then - abort "Uncompressed data has wrong size, expected $binary_patch_size, got $size" + abort "Uncompressed binary patch has wrong size." fi # Apply git delta path @@ -388,7 +388,7 @@ while IFS= read -r line; do decoded_tmpfile=$(mktemp) if [ ! -f "$decoded_tmpfile" ]; then - abort "Unable to create temporary file for patch" + abort "Unable to create temporary file for patch." fi binary_patch_complete=0 @@ -418,7 +418,7 @@ while IFS= read -r line; do if [ "$binary_patch_complete" -ne 1 ]; then abort "Unable to parse full patch." elif [ "$binary_patch_destsize" -ne "$(du -b "$patch_tmpfile" | cut -f 1)" ]; then - abort "Unpacked file has wrong length." + abort "Unpacked delta patch has wrong size." fi elif [ "$binary_patch_type" != "literal" ]; then @@ -430,7 +430,7 @@ while IFS= read -r line; do if [ "$patch_newsha1" != "$sha" ]; then echo "$lineno: Expected $patch_newsha1" echo "$lineno: Got $sha" - abort "Unable to continue because of sha1 mismatch after applying the patch" + abort "Unable to continue because of sha1 mismatch after applying the patch." fi if ! cp "$patch_tmpfile" "$patch_oldname"; then