summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwangdi <wangdi>2003-10-28 05:19:45 +0000
committerwangdi <wangdi>2003-10-28 05:19:45 +0000
commit62df31b0f8d3a2ac86d16388e5280513e1b3fa4d (patch)
tree11749e6dc89af1f80690c96bd59aa51b8552b0fa
parente1334ba9d569ac166ec2bdcb8e41ba99950a1842 (diff)
downloadquilt-62df31b0f8d3a2ac86d16388e5280513e1b3fa4d.tar.gz
check patch_file before save quiltsave files in refresh
-rw-r--r--quilt/refresh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/quilt/refresh.in b/quilt/refresh.in
index 26286b4..2d57e53 100644
--- a/quilt/refresh.in
+++ b/quilt/refresh.in
@@ -103,6 +103,12 @@ save_patches ()
local patch_file=$(patch_file_name $patch)
local saved_pc_file=$(pc_file_name $saved_patch)
+ #if we add a file to a new create patch, the patch_file are not exist
+
+ if ! [ -e "${patch_file}" ]; then
+ return
+ fi
+
if [ -e $saved_pc_file ]; then
if [ $opt_Keep -eq 0 -a $opt_Overwrite -eq 0 ]; then
while :; do