prj = get_project_by_name(build, submission, target_project)[0]
build.delete_project(prj, force=True, msg=comment)
print "Submission %s has been removed" % submission
+ elif action in ("lock", "unlock"):
+ prj = get_project_by_name(build, submission, target_project)[0]
+ status = "disable" if action == "lock" else "enable"
+ build.set_global_flag("build", status, prj)
+ print "Submission %s has been %sed" % (submission, action)
else:
raise LocalError("Unsupported action: '%s'" % action)
elif not submission: