def SetOSContextFromArgs(context):
  """Set OS context sections based on args."""
  context.append("ClientBuilder Context")
  if args.platform == "darwin":
    context = ["Platform:Darwin", "Target:Darwin"] + context
  elif args.platform == "windows":
    context = ["Platform:Windows", "Target:Windows"] + context
  elif args.platform == "linux":
    context = ["Platform:Linux", "Target:Linux"] + context
    if args.package_format == "deb":
      context = ["Target:LinuxDeb"] + context
    elif args.package_format == "rpm":
      context = ["Target:LinuxRpm"] + context
    else:
      parser.error("Couldn't guess packaging format for: %s" %
                   platform.linux_distribution()[0])
  else:
    parser.error(args.platform % "Unsupported build platform: %s")
  return context
dataset/ETHPy150Open google/grr/grr/client/client_build.py/SetOSContextFromArgs/swapped operands of `%`