mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-19 19:11:08 +00:00
sponsor-patch: Fix indentation of Logger change.
This commit is contained in:
parent
9ee1a8faa0
commit
d264ee7e97
@ -101,12 +101,12 @@ def get_patch_or_branch(bug):
|
||||
linked_branches = map(lambda b: b.branch, bug.linked_branches)
|
||||
if len(attached_patches) == 0 and len(linked_branches) == 0:
|
||||
if len(bug.attachments) == 0:
|
||||
Logger.error("No attachment and no linked branch found on bug #%i." \
|
||||
% (bug.id))
|
||||
Logger.error(("No attachment and no linked branch found on "
|
||||
"bug #%i.") % bug.id)
|
||||
else:
|
||||
Logger.error(("No attached patch and no linked branch found. Go " \
|
||||
"to https://launchpad.net/bugs/%i and mark an " \
|
||||
"attachment as patch.") % (bug.id))
|
||||
Logger.error(("No attached patch and no linked branch found. Go "
|
||||
"to https://launchpad.net/bugs/%i and mark an "
|
||||
"attachment as patch.") % bug.id)
|
||||
sys.exit(1)
|
||||
elif len(attached_patches) == 1 and len(linked_branches) == 0:
|
||||
patch = attached_patches[0]
|
||||
@ -380,16 +380,16 @@ def main(bug_number, build, builder, edit, keyid, lpinstance, update, upload,
|
||||
allowed = map(lambda s: s + "-proposed", supported_series) + \
|
||||
[devel_series]
|
||||
if changelog.distributions not in allowed:
|
||||
Logger.error("%s is not an allowed series. It needs to be one " \
|
||||
"of %s." % (changelog.distributions,
|
||||
Logger.error(("%s is not an allowed series. It needs to be one "
|
||||
"of %s.") % (changelog.distributions,
|
||||
", ".join(allowed)))
|
||||
ask_for_manual_fixing()
|
||||
continue
|
||||
elif upload and upload.startswith("ppa/"):
|
||||
allowed = supported_series + [devel_series]
|
||||
if changelog.distributions not in allowed:
|
||||
Logger.error("%s is not an allowed series. It needs to be one " \
|
||||
"of %s." % (changelog.distributions,
|
||||
Logger.error(("%s is not an allowed series. It needs to be one "
|
||||
"of %s.") % (changelog.distributions,
|
||||
", ".join(allowed)))
|
||||
ask_for_manual_fixing()
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user