edit-patch: Don't let cat error through if debian/source/format doesn't

exist.
This commit is contained in:
Stefano Rivera 2010-12-22 20:53:38 +02:00
parent 43ec3ff136
commit bcf9772206
2 changed files with 6 additions and 4 deletions

6
debian/changelog vendored
View File

@ -21,6 +21,8 @@ ubuntu-dev-tools (0.109) UNRELEASED; urgency=low
+ Return 0 after showing help.
* ubuntutools/common.py: Remove https_proxy unsetting code, working around
LP: #94130.
* edit-patch: Don't let cat error through if debian/source/format doesn't
exist.
[ Michael Bienia ]
* ubuntutools/lp/lpapicache.py: Allow easier selection of 'staging' as LP
@ -37,12 +39,12 @@ ubuntu-dev-tools (0.109) UNRELEASED; urgency=low
* Recommend bzr-builddeb (used by sponsor-patch for branches).
* Add most dependencies to Build-Depends for successfully run the tests.
* Depend on python-gnupginterface (used by dgetlp).
[ Michael Vogt ]
* add "add-patch" that provides the non-interactive version of
edit-patch
-- Benjamin Drung <bdrung@ubuntu.com> Wed, 22 Dec 2010 19:16:56 +0100
-- Stefano Rivera <stefanor@ubuntu.com> Wed, 22 Dec 2010 20:52:28 +0200
ubuntu-dev-tools (0.108) experimental; urgency=low

View File

@ -64,8 +64,8 @@ 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 -o \( \
-e debian/source/format -a "$(cat debian/source/format)" = "3.0 (quilt)" \) ]; then
elif [ -e debian/patches/series -o \
"$(cat debian/source/format 2> /dev/null)" = "3.0 (quilt)" ]; then
PATCHSYSTEM="quilt"
require_installed quilt "no quilt found, is 'quilt' installed?"
else