From 65efe559724330292647465466ddeabeb74e7817 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Wed, 22 Sep 2010 15:54:47 +0200 Subject: [PATCH] ubuntutools/update_maintainer.py: Fix failure if debian/control.in is a directory. --- debian/changelog | 4 +++- ubuntutools/update_maintainer.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 125801d..a59052e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ ubuntu-dev-tools (0.103) UNRELEASED; urgency=low * sponsor-patch: - Fix NameError: global name 'debdiff_filename' is not defined. - Add --workdir parameter to set the working directory. + * ubuntutools/update_maintainer.py: Fix failure if debian/control.in is a + directory. [ Luca Falavigna ] * debian/control: @@ -33,7 +35,7 @@ ubuntu-dev-tools (0.103) UNRELEASED; urgency=low * ubuntutools/lp/libsupport.py: Support production API URLs in translate_web_api. - -- Benjamin Drung Tue, 21 Sep 2010 23:52:46 +0200 + -- Benjamin Drung Wed, 22 Sep 2010 15:52:33 +0200 ubuntu-dev-tools (0.102) experimental; urgency=low diff --git a/ubuntutools/update_maintainer.py b/ubuntutools/update_maintainer.py index 4fee196..1e8784a 100644 --- a/ubuntutools/update_maintainer.py +++ b/ubuntutools/update_maintainer.py @@ -36,7 +36,7 @@ def update_maintainer(verbose=False): # Check changelog file exists. for location in valid_locations: - if os.path.exists(location): + if os.path.isfile(location): control_file_found = True control_file = location break # Stop looking.