Package: quilt
Version: 0.44-2
Severity: normal
Tags: patch

Hello,

When the series file references a non existent patch, it usually indicates
there is a problem, and quilt should fail.

This patch implements this and allows users to resume the push when they
specify the -f option.


Kind Regards,
-- 
Nekral
diff -rauN ../work2/quilt-0.44/quilt/push.in ./quilt-0.44/quilt/push.in
--- ../work2/quilt-0.44/quilt/push.in   2006-03-24 21:38:49.000000000 +0100
+++ ./quilt-0.44/quilt/push.in  2006-03-24 23:12:23.000000000 +0100
@@ -183,6 +183,13 @@
                no_reject_files="-r $tmp"
        fi
 
+       if ! [ -e $patch_file ] && [ -z "$opt_force" ]
+       then
+               printf $"Patch %s does not exist\n" \
+                      "$(print_patch $patch)"
+               exit 1
+       fi
+
        apply_patch $patch "$patch_file"
        status=$?
        trap "" SIGINT
@@ -206,6 +213,7 @@
 
                if ! [ -e $patch_file ]
                then
+                       # only if [ -n "$opt_force" ]
                        printf $"Patch %s does not exist; applied empty 
patch\n" \
                               "$(print_patch $patch)"
                elif [ -z "$(shopt -s nullglob ; echo "$QUILT_PC/$patch/"*)" ]

Reply via email to