summaryrefslogtreecommitdiffstats
path: root/scripts/apatch.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/apatch.in')
-rwxr-xr-xscripts/apatch.in11
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/apatch.in b/scripts/apatch.in
index 94c74b4..38235cc 100755
--- a/scripts/apatch.in
+++ b/scripts/apatch.in
@@ -62,17 +62,14 @@ apply_patch()
rollback_patch()
{
- local patch=$1 pc_file=$(gen_tempfile)
+ local patch=$1
- # FIXME backup_files should scan the directory hierarchy itself.
- files_in_patch $patch > $pc_file
- @LIB@/backup-files $silent_unless_verbose \
- -f $pc_file -B $QUILT_PC/$patch/ -r
if [ -z "$opt_leave_rejects" ]
then
- @SED@ -e 's/$/\.rej/' $pc_file | xargs rm -f
+ files_in_patch | @SED@ -e 's/$/\.rej/' | xargs rm -f
fi
- rm -f $pc_file
+
+ @LIB@/backup-files $silent_unless_verbose -r -B $QUILT_PC/$patch/ -
}
apatch()