diff options
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r-- | scripts/patchfns.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in index 714c7a6..b74cce5 100644 --- a/scripts/patchfns.in +++ b/scripts/patchfns.in @@ -539,6 +539,7 @@ diff_file() if ! [ -s "$old_file" ] then old_file=/dev/null + old_hdr=/dev/null [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \ || old_date=$'\t'"1970-01-01 00:00:00.000000000 +0000" else @@ -548,7 +549,10 @@ diff_file() fi if ! [ -s "$new_file" ] then + [ $opt_strip_level -eq 0 ] \ + && old_hdr=$new_hdr new_file=/dev/null + new_hdr=/dev/null [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \ || new_date=$'\t'"1970-01-01 00:00:00.000000000 +0000" else |