mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-07 23:11:29 +00:00
syncpackge: Gracefully deal with no available changelog from Debian (PTS
changelogs aren't available immediately)
This commit is contained in:
parent
7abc5b2184
commit
fc3d02f28f
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -5,6 +5,8 @@ ubuntu-dev-tools (0.133) UNRELEASED; urgency=low
|
|||||||
(Closes: #642824)
|
(Closes: #642824)
|
||||||
* Add Depends and Build-Depends for python-distro-info, which has split out
|
* Add Depends and Build-Depends for python-distro-info, which has split out
|
||||||
of distro-info.
|
of distro-info.
|
||||||
|
* syncpackge: Gracefully deal with no available changelog from Debian (PTS
|
||||||
|
changelogs aren't available immediately)
|
||||||
|
|
||||||
[ Benjamin Drung ]
|
[ Benjamin Drung ]
|
||||||
* syncpackage: Allow syncing to -proposed with --no-lp.
|
* syncpackage: Allow syncing to -proposed with --no-lp.
|
||||||
|
@ -365,8 +365,9 @@ def copy(src_pkg, release, bugs, simulate=False, force=False):
|
|||||||
src_pkg.source, ubuntu_series, ubuntu_pocket,
|
src_pkg.source, ubuntu_series, ubuntu_pocket,
|
||||||
src_pkg.version)
|
src_pkg.version)
|
||||||
|
|
||||||
changes = get_debian_changelog(debian_spph, base_version).strip()
|
changes = get_debian_changelog(debian_spph, base_version)
|
||||||
if changes:
|
if changes:
|
||||||
|
changes = changes.strip()
|
||||||
Logger.normal("New changes:\n%s", changes)
|
Logger.normal("New changes:\n%s", changes)
|
||||||
|
|
||||||
if simulate:
|
if simulate:
|
||||||
@ -446,8 +447,9 @@ def close_bugs(bugs, package, version, changes):
|
|||||||
"""Close the correct task on all bugs, with changes"""
|
"""Close the correct task on all bugs, with changes"""
|
||||||
ubuntu = Launchpad.distributions['ubuntu']
|
ubuntu = Launchpad.distributions['ubuntu']
|
||||||
message = ("This bug was fixed in the package %s - %s"
|
message = ("This bug was fixed in the package %s - %s"
|
||||||
"\n\n---------------\n%s" % (
|
% (package, version))
|
||||||
package, version, changes))
|
if changes:
|
||||||
|
message += "\n\n---------------\n" + changes
|
||||||
for bug in bugs:
|
for bug in bugs:
|
||||||
bug = Launchpad.bugs[bug]
|
bug = Launchpad.bugs[bug]
|
||||||
if bug.duplicate_of is not None:
|
if bug.duplicate_of is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user