Skip to main content

parse_srcinfo

Function parse_srcinfo 

Source
pub fn parse_srcinfo(content: &str) -> SrcinfoData
Expand description

What: Parse full .SRCINFO content into structured data.

Inputs:

  • content: Raw .SRCINFO file content.

Output:

  • Returns SrcinfoData with aggregate fields populated.

Details:

  • Parses all fields including pkgbase, pkgname, pkgver, pkgrel and package arrays.
  • Existing aggregate fields retain their historical first-name/merged-array behavior.
  • Graph-only split-package selection is kept internal to preserve public struct-literal compatibility.
  • Returns default SrcinfoData with empty fields if content is malformed.