mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-07-23 12:51:29 +00:00
edit-patch: fix in edit mode for existing patches when dpkg already applied them all
This commit is contained in:
parent
1e27007d44
commit
eafd4a4bff
@ -110,9 +110,14 @@ edit_patch_dpatch() {
|
|||||||
edit_patch_quilt() {
|
edit_patch_quilt() {
|
||||||
export QUILT_PATCHES=debian/patches
|
export QUILT_PATCHES=debian/patches
|
||||||
if [ -e debian/patches/$1 ]; then
|
if [ -e debian/patches/$1 ]; then
|
||||||
|
# if its a existing patch and we are at the end of the stack,
|
||||||
|
# go back at the beginning
|
||||||
|
if ! quilt unapplied; then
|
||||||
|
quilt pop -a
|
||||||
|
fi
|
||||||
quilt push $1
|
quilt push $1
|
||||||
else
|
else
|
||||||
# make the new patch the last entry
|
# if its a new patch make sure we are at the end of the stack
|
||||||
if quilt unapplied >/dev/null; then
|
if quilt unapplied >/dev/null; then
|
||||||
quilt push -a
|
quilt push -a
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user