mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
ubuntutools/update_maintainer.py: do nothing if the rules file
already manages XSBC-Original (e.g. python).
This commit is contained in:
parent
99e6e3cc27
commit
fd6b8cdab0
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -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
|
||||
|
||||
|
@ -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]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user