pub fn version_satisfies(installed: &str, requirement: &str) -> boolExpand description
What: Perform a simplified comparison between an installed version and a requirement expression.
Inputs:
installed: Version string currently present on the system.requirement: Comparison expression such as>=1.2or=2.0.
Output:
truewhen the expression evaluates in favor of the installed version; otherwisefalse.
Details:
- Uses straightforward string comparisons rather than full semantic version parsing, matching pacman’s format.