def get_cipd_pkg_name(pkg_pieces):
  """Return the CIPD package name with given list of package pieces.

  Pieces identified as False (like None, or empty string) will be skipped.
  This is to make sure the returned cipd pacakge name
    * Does not have leading & tailing '/'
    * Does not have string like '//' inside
  """
  return '/'.join([str(piece) for piece in pkg_pieces if piece])