label_for_official

Function label_for_official 

Source
pub fn label_for_official(repo: &str, name: &str, owner: &str) -> String
Expand description

What: Produce a human-friendly label for an official package entry.

Inputs:

  • repo: Repository reported by the package source.
  • name: Package name used to detect Manjaro naming conventions.
  • owner: Optional upstream owner string available from package metadata.

Output:

  • Returns a display label describing the ecosystem the package belongs to.

Details:

  • Distinguishes EndeavourOS, CachyOS, and Artix Linux repos (with specific labels for each Artix repo: OMNI, UNI, LIB32, GALAXY, WORLD, SYSTEM), and detects Manjaro branding by name/owner heuristics.
  • Falls back to the raw repository string when no special classification matches.