Skip to main content

pkgversion_norev

Function pkgversion_norev 

Source
pub fn pkgversion_norev(pkgversion: &str) -> &str
Expand description

Return the PKGVERSION_NOREV portion of a package version, i.e. the version with any trailing nb<n> revision marker stripped.

Splits at the final nb substring, matching the behaviour of pkgrevision. Returns the input unchanged when no nb marker is present.