mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +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() {
|
||||
export QUILT_PATCHES=debian/patches
|
||||
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
|
||||
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
|
||||
quilt push -a
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user