Hi,

The attached patch fixes the paje.app build failure.

I don't know if the return values of each commands are really consistent.

When the series file is missing or if all the patches were alredy applied,
"quilt push" will return 2.
When "quilt push" is called with the name of a patch in argument, and if
this patch doesn't exist, the return value is 1.
(I think it's quite the same as the "quilt pop" behavior)

I let you add the patch tag if you think it is OK.

Kind Regards,
-- 
Nekral
diff -rauN ../orig/quilt-0.44/quilt/push.in ./quilt-0.44/quilt/push.in
--- ../orig/quilt-0.44/quilt/push.in    2006-02-14 19:31:44.000000000 +0100
+++ ./quilt-0.44/quilt/push.in  2006-03-24 21:38:49.000000000 +0100
@@ -338,7 +338,7 @@
        [ -z "$opt_all" ] && number=1
 fi
 
-stop_at_patch=$(find_unapplied_patch "$stop_at_patch") || exit 1
+stop_at_patch=$(find_unapplied_patch "$stop_at_patch") || exit $?
 
 [ -n "$opt_quiet" ] && silent=-s
 [ -z "$opt_verbose" ] && silent_unless_verbose=-s
diff -rauN ../orig/quilt-0.44/quilt/scripts/patchfns.in 
./quilt-0.44/quilt/scripts/patchfns.in
--- ../orig/quilt-0.44/quilt/scripts/patchfns.in        2006-02-11 
23:31:51.000000000 +0100
+++ ./quilt-0.44/quilt/scripts/patchfns.in      2006-03-24 22:27:26.000000000 
+0100
@@ -538,7 +538,7 @@
                then
                        printf $"Patch %s is currently applied\n" \
                                "$(print_patch $patch)" >&2
-                               return 1
+                               return 2
                fi
                echo "$patch"
        else
@@ -548,13 +548,13 @@
                then
                        patch_after "$start"
                else
-                       find_first_patch || return 1
+                       find_first_patch || return 2
                fi
                if [ $? -ne 0 ]
                then
                        printf $"File series fully applied, ends at patch %s\n" 
\
                                "$(print_patch $start)" >&2
-                       return 1
+                       return 2
                fi
        fi
 }

Reply via email to