diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-09-25 09:59:14 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-09-25 11:37:56 (EDT) |
commit | ef9da61736858fc1ffb3b6deab8b6057daefc6d8 (patch) | |
tree | c5fb739e632533f33b4f1aa0804d9ec5e987dd17 /lib/metadata | |
parent | dfc2e98ae678073977cd66a41592aee25454d757 (diff) |
metadata, package: Encode binary package names
Remove restriction on duplicate "clean" names.
Diffstat (limited to 'lib/metadata')
-rw-r--r-- | lib/metadata/proteanos.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh index 59f2c14..6d68ccb 100644 --- a/lib/metadata/proteanos.sh +++ b/lib/metadata/proteanos.sh @@ -70,6 +70,16 @@ _ob_validate_binary_name() return 0 } +_ob_clean_name() +{ + local name="${1}" + shift 1 || _ob_abort + + printf '%s' "${name}" | sed 's/-/_h_/g; s/+/_p_/g; s/[.]/_d_/g;' + + return 0 +} + _ob_validate_version() { local version="${1}" |