mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-24 07:11:29 +00:00
backportpackage: Add a -e/--message option to change the default "No-change" in "No-change backport to DIST".
Thanks to Unit 193 for the initial patch. Signed-off-by: Mattia Rizzolo <mattia@debian.org>
This commit is contained in:
parent
a75fb35fc8
commit
d3a7eac62f
@ -86,6 +86,11 @@ def parse(args):
|
|||||||
metavar='SUFFIX',
|
metavar='SUFFIX',
|
||||||
help='Suffix to append to version number '
|
help='Suffix to append to version number '
|
||||||
'(default: ~ppa1 when uploading to a PPA)')
|
'(default: ~ppa1 when uploading to a PPA)')
|
||||||
|
parser.add_option('-e', '--message',
|
||||||
|
metavar='MESSAGE',
|
||||||
|
default="No-change",
|
||||||
|
help='Changelog message to use instead of "No-change" '
|
||||||
|
'(default: No-change backport to DEST)')
|
||||||
parser.add_option('-b', '--build',
|
parser.add_option('-b', '--build',
|
||||||
default=False,
|
default=False,
|
||||||
action='store_true',
|
action='store_true',
|
||||||
@ -312,8 +317,8 @@ def orig_needed(upload, workdir, pkg):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def do_backport(workdir, pkg, suffix, close, release, release_pocket, build,
|
def do_backport(workdir, pkg, suffix, message, close, release, release_pocket,
|
||||||
builder, update, upload, keyid, prompt):
|
build, builder, update, upload, keyid, prompt):
|
||||||
dirname = '%s-%s' % (pkg.source, release)
|
dirname = '%s-%s' % (pkg.source, release)
|
||||||
srcdir = os.path.join(workdir, dirname)
|
srcdir = os.path.join(workdir, dirname)
|
||||||
|
|
||||||
@ -330,7 +335,7 @@ def do_backport(workdir, pkg, suffix, close, release, release_pocket, build,
|
|||||||
old_version = get_old_version(pkg.source, release)
|
old_version = get_old_version(pkg.source, release)
|
||||||
bp_dist = get_backport_dist(release, release_pocket)
|
bp_dist = get_backport_dist(release, release_pocket)
|
||||||
|
|
||||||
changelog = 'No-change backport to %s' % (release,)
|
changelog = '%s backport to %s' % (message, release,)
|
||||||
if close:
|
if close:
|
||||||
changelog += ' (LP: #%s)' % (close,)
|
changelog += ' (LP: #%s)' % (close,)
|
||||||
check_call(['dch',
|
check_call(['dch',
|
||||||
@ -410,6 +415,7 @@ def main(args):
|
|||||||
do_backport(workdir,
|
do_backport(workdir,
|
||||||
pkg,
|
pkg,
|
||||||
opts.suffix,
|
opts.suffix,
|
||||||
|
opts.message,
|
||||||
opts.close,
|
opts.close,
|
||||||
release,
|
release,
|
||||||
opts.release_pocket,
|
opts.release_pocket,
|
||||||
|
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -6,6 +6,10 @@ ubuntu-dev-tools (0.178) UNRELEASED; urgency=medium
|
|||||||
[ Mattia Rizzolo ]
|
[ Mattia Rizzolo ]
|
||||||
* d/control: Bump Standards-Version to 4.5.1, no changes needed.
|
* d/control: Bump Standards-Version to 4.5.1, no changes needed.
|
||||||
* ubuntu-archive-assistant/mir: Fix a SyntaxWarning.
|
* ubuntu-archive-assistant/mir: Fix a SyntaxWarning.
|
||||||
|
* backportpackage:
|
||||||
|
+ Add a -e/--message option to change the default "No-change"
|
||||||
|
in "No-change backport to DIST".
|
||||||
|
Thanks to Unit 193 for the initial patch.
|
||||||
|
|
||||||
[ You-Sheng Yang ]
|
[ You-Sheng Yang ]
|
||||||
* Add a dependency on tzdata, used by mk-sbuild.
|
* Add a dependency on tzdata, used by mk-sbuild.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user