ubuntutools/update_maintainer.py: do nothing if the rules file

already manages XSBC-Original (e.g. python).
This commit is contained in:
Kees Cook 2011-02-07 10:43:51 -08:00
parent 99e6e3cc27
commit fd6b8cdab0
2 changed files with 12 additions and 1 deletions

6
debian/changelog vendored
View File

@ -12,7 +12,11 @@ ubuntu-dev-tools (0.116) UNRELEASED; urgency=low
- Files is space-separated, not comma.
- Bump Format revision.
-- Benjamin Drung <bdrung@debian.org> Sun, 06 Feb 2011 16:47:41 +0100
[ Kees Cook ]
* ubuntutools/update_maintainer.py: do nothing if the rules file
already manages XSBC-Original (e.g. python).
-- Kees Cook <kees@ubuntu.com> Mon, 07 Feb 2011 10:42:07 -0800
ubuntu-dev-tools (0.115) unstable; urgency=low

View File

@ -60,6 +60,13 @@ def update_maintainer(debian_directory, verbose=False):
Logger.error("No changelog file found in %s.", debian_directory)
return(1)
# If the rules file accounts for XSBC-Original-Maintainer, we should not
# touch it this package.
if 'XSBC-Original-' in file(os.path.join(debian_directory, "rules")).read():
if verbose:
print "XSBC-Original is managed by 'rules' file. Doing nothing."
return(0)
# Strip things like "-proposed-updates" or "-security" from distribution.
distribution = _get_distribution(changelog_file).split("-")[0]