requestsync: Give an error message if no changelog entries - happens if,

for example, the new package's changelog hasn't yet been published on p.d.o
This commit is contained in:
Iain Lane 2009-09-21 00:41:11 +01:00
parent e9bb3f8d1d
commit dac4145893
2 changed files with 8 additions and 2 deletions

9
debian/changelog vendored
View File

@ -1,8 +1,13 @@
ubuntu-dev-tools (0.80) karmic; urgency=low
ubuntu-dev-tools (0.80) UNRELEASED; urgency=low
[ Michael Terry ]
* mk-sbuild-lv: Export http_proxy. LP: #416438
-- Michael Terry <michael.terry@canonical.com> Thu, 10 Sep 2009 10:53:30 -0400
[ Iain Lane ]
* requestsync: Give an error message if no changelog entries - happens if,
for example, the new package's changelog hasn't yet been published on p.d.o
-- Iain Lane <laney@ubuntu.com> Mon, 21 Sep 2009 00:41:03 +0100
ubuntu-dev-tools (0.79) karmic; urgency=low

View File

@ -189,6 +189,7 @@ if __name__ == '__main__':
report += 'Changelog entries since current %s version %s:\n\n' % (release, ubuntu_version)
changelog = getDebianChangelog(debian_srcpkg, base_version)
if not changelog:
print >> sys.stderr, "E: Did not retrieve any changelog entries. Was the package recently uploaded? (check http://packages.debian.org/changelogs/)"
sys.exit(1)
report += changelog