blob: 9aa364f4b56c5c43b712c9eeefe17b9166802a81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
* Make sure that quilt returns 2 when there is nothing to do so that
patchsys-quilt.mk works again. Upstream regression since 0.33.
(Closes: #358792).
Upstream status: Submitted 060427
---
quilt/push.in | 2 +-
quilt/scripts/patchfns.in | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
--- a/quilt/push.in
+++ b/quilt/push.in
@@ -362,7 +362,7 @@ else
[ -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 $?
[ -z "$opt_verbose" ] && silent_unless_verbose=-s
[ -n "$opt_force" ] && opt_leave_rejects=1
--- a/quilt/scripts/patchfns.in
+++ b/quilt/scripts/patchfns.in
@@ -477,7 +477,7 @@ find_last_patch()
else
printf $"No series file found\n" >&2
fi
- return 1
+ return 2
fi
echo "$patch"
@@ -582,7 +582,7 @@ find_unapplied_patch()
then
printf $"Patch %s is currently applied\n" \
"$(print_patch $patch)" >&2
- return 1
+ return 2
fi
echo "$patch"
else
@@ -592,13 +592,13 @@ find_unapplied_patch()
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
}
|