edit-patch: Detect quilt patch-system in 3.0 (quilt) packages without any

patches yet.
This commit is contained in:
Stefano Rivera 2010-11-24 17:59:54 +02:00
parent 851e96ea23
commit b8f3016eb3
2 changed files with 11 additions and 3 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
ubuntu-dev-tools (0.107) UNRELEASED; urgency=low
* edit-patch: Detect quilt patch-system in 3.0 (quilt) packages without any
patches yet.
-- Stefano Rivera <stefanor@ubuntu.com> Wed, 24 Nov 2010 17:58:18 +0200
ubuntu-dev-tools (0.106) experimental; urgency=low
[ Kees Cook ]

View File

@ -64,12 +64,13 @@ detect_patchsystem() {
elif [ -e debian/patches/00list ]; then
PATCHSYSTEM="dpatch"
require_installed dpatch-edit-patch "no dpatch-edit-patch found, is 'dpatch' installed?"
elif [ -e debian/patches/series ]; then
elif [ -e debian/patches/series -o \( \
-e debian/source/format -a "$(cat debian/source/format)" = "3.0 (quilt)" \) ]; then
PATCHSYSTEM="quilt"
require_installed quilt "no quilt found, is 'quilt' installed?"
else
PATCHSYSTEM="none"
PREFIX="debian/applied-patches"
PATCHSYSTEM="none"
PREFIX="debian/applied-patches"
fi
}