summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2006-02-11 14:37:16 +0000
committerAndreas Gruenbacher <agruen@suse.de>2006-02-11 14:37:16 +0000
commita61ce69e1d47ac13e39498d5d0ba319319f0f679 (patch)
tree527141d8919c27f08227f8065c862f2d30308d51 /bin
parent639f2f9c28cf0e9badb2b94373e668777a900c12 (diff)
downloadquilt-a61ce69e1d47ac13e39498d5d0ba319319f0f679.tar.gz
- bin/patch-wrapper.in: Call GNU patch by absolute patch to avoid
recursion. Don't print an error message when a patch contains no files.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/patch-wrapper.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/patch-wrapper.in b/bin/patch-wrapper.in
index caa600f..099feff 100755
--- a/bin/patch-wrapper.in
+++ b/bin/patch-wrapper.in
@@ -6,7 +6,7 @@
# options are used that this wrapper does not recognize, GNU patch is
# used directly, and no quilt metadata will get created.
-PATCH=patch
+PATCH=@PATCH@
original_options=("$@")
# GNU patch recognizes these environment variables
@@ -53,7 +53,7 @@ backup_files() {
elif [ -n "$opt_silent" ]; then
cat > /dev/null
fi
- if [ "$backup_mode" = --backup ]
+ if [ "$backup_mode" = --backup -a -d "$dir" ]
then
for file in $(find "$dir" -type f -a ! -path "$path/.timestamp")
do