sponsor-patch: Fix indentation of Logger change.

This commit is contained in:
Benjamin Drung 2010-12-21 23:29:50 +01:00
parent 9ee1a8faa0
commit d264ee7e97

View File

@ -101,12 +101,12 @@ def get_patch_or_branch(bug):
linked_branches = map(lambda b: b.branch, bug.linked_branches) linked_branches = map(lambda b: b.branch, bug.linked_branches)
if len(attached_patches) == 0 and len(linked_branches) == 0: if len(attached_patches) == 0 and len(linked_branches) == 0:
if len(bug.attachments) == 0: if len(bug.attachments) == 0:
Logger.error("No attachment and no linked branch found on bug #%i." \ Logger.error(("No attachment and no linked branch found on "
% (bug.id)) "bug #%i.") % bug.id)
else: else:
Logger.error(("No attached patch and no linked branch found. Go " \ Logger.error(("No attached patch and no linked branch found. Go "
"to https://launchpad.net/bugs/%i and mark an " \ "to https://launchpad.net/bugs/%i and mark an "
"attachment as patch.") % (bug.id)) "attachment as patch.") % bug.id)
sys.exit(1) sys.exit(1)
elif len(attached_patches) == 1 and len(linked_branches) == 0: elif len(attached_patches) == 1 and len(linked_branches) == 0:
patch = attached_patches[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) + \ allowed = map(lambda s: s + "-proposed", supported_series) + \
[devel_series] [devel_series]
if changelog.distributions not in allowed: if changelog.distributions not in allowed:
Logger.error("%s is not an allowed series. It needs to be one " \ Logger.error(("%s is not an allowed series. It needs to be one "
"of %s." % (changelog.distributions, "of %s.") % (changelog.distributions,
", ".join(allowed))) ", ".join(allowed)))
ask_for_manual_fixing() ask_for_manual_fixing()
continue continue
elif upload and upload.startswith("ppa/"): elif upload and upload.startswith("ppa/"):
allowed = supported_series + [devel_series] allowed = supported_series + [devel_series]
if changelog.distributions not in allowed: if changelog.distributions not in allowed:
Logger.error("%s is not an allowed series. It needs to be one " \ Logger.error(("%s is not an allowed series. It needs to be one "
"of %s." % (changelog.distributions, "of %s.") % (changelog.distributions,
", ".join(allowed))) ", ".join(allowed)))
ask_for_manual_fixing() ask_for_manual_fixing()
continue continue