Merge lp:~barry/ubuntu/precise/ubuntu-dev-tools/bug-881049 into lp:ubuntu/precise/ubuntu-dev-tools

Proposed by Barry Warsaw
Status: Rejected
Rejected by: Martin Pitt
Proposed branch: lp:~barry/ubuntu/precise/ubuntu-dev-tools/bug-881049
Merge into: lp:ubuntu/precise/ubuntu-dev-tools
Diff against target: 29 lines (+6/-2)
2 files modified
syncpackage (+5/-1)
ubuntutools/requestsync/common.py (+1/-1)
To merge this branch: bzr merge lp:~barry/ubuntu/precise/ubuntu-dev-tools/bug-881049
Reviewer Review Type Date Requested Status
Stefano Rivera Disapprove
Ubuntu branches Pending
Review via email: mp+80253@code.launchpad.net

Description of the change

Fixes the described problems.

To post a comment you must log in.
Revision history for this message
Stefano Rivera (stefanor) wrote :

Not necessary, already dealt with.

Revision history for this message
Stefano Rivera (stefanor) :
review: Disapprove

Unmerged revisions

61. By Barry Warsaw

- Print the correct URL when the change log cannot be retrieved.
- Fail gracefully when get_debian_changelog() returns None

LP: #881049

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'syncpackage'
2--- syncpackage 2011-10-17 16:35:36 +0000
3+++ syncpackage 2011-10-24 19:19:24 +0000
4@@ -365,7 +365,11 @@
5 src_pkg.source, ubuntu_series, ubuntu_pocket,
6 src_pkg.version)
7
8- changes = get_debian_changelog(debian_spph, base_version).strip()
9+ changes = get_debian_changelog(debian_spph, base_version)
10+ if changes is None:
11+ Logger.error('Cannot retrieve changelog')
12+ sys.exit(1)
13+ changes = changes.strip()
14 if changes:
15 Logger.normal("New changes:\n%s", changes)
16
17
18=== modified file 'ubuntutools/requestsync/common.py'
19--- ubuntutools/requestsync/common.py 2011-09-10 16:48:23 +0000
20+++ ubuntutools/requestsync/common.py 2011-10-24 19:19:24 +0000
21@@ -65,7 +65,7 @@
22 try:
23 return Changelog(urllib2.urlopen(url))
24 except urllib2.HTTPError, error:
25- print >> sys.stderr, ('Unable to connect to %s: %s' % (base, error))
26+ print >> sys.stderr, ('%s: %s' % (url, error))
27 return None
28
29 # TODO: Move this into requestsync.mail, and implement an LP version

Subscribers

People subscribed via source and target branches

to all changes: