=== modified file 'edit-patch' --- edit-patch 2010-02-16 16:05:17 +0000 +++ edit-patch 2010-04-06 08:40:49 +0000 @@ -112,7 +112,10 @@ if [ -e debian/patches/$1 ]; then quilt push $1 else - quilt push -a + # make the new patch the last entry + if quilt unapplied >/dev/null; then + quilt push -a + fi quilt new $1 fi # use a sub-shell @@ -188,4 +191,4 @@ vcs_commit } -main $@ \ No newline at end of file +main $@