Skip to main content

parse_upgrade_line

Function parse_upgrade_line 

Source
pub fn parse_upgrade_line(line: &str) -> Option<UpgradeRequest>
Expand description

Parse an UPGRADE_PREFIX line. None for any other line, or one missing a field (an installer needs its 64-hex-digit sha256:). A confirmed:1 token after version: sets UpgradeRequest::confirmed (any other value of it does not); an approved:<how>:<id> token is skipped.