pkg_parse_name

SYNOPSIS

pkg_parse_name package abs_name basename compression name [ version arch release build extension ]

DESCRIPTION

pkg_parse_name parses package's name to get the extension and other info. Remaining arguments are treated as variables to store the corresponding information:

RETURN STATUS

Return status is zero even if no version, architecture, build, release are found. The value of these variables is unchanged if no value is found.As such, if they were not set or null before a call to this function they still will be after a call.