pub fn parse_spec(spec: &str) -> Result<(String, String), AddError>
Parse a pkg#item spec into (pkg_id, item).
pkg#item
(pkg_id, item)
Returns AddError when the spec has no #, or either side is empty.
AddError
#