diff options
-rw-r--r-- | lib/profile.sh | 7 | ||||
-rw-r--r-- | lib/profiles/proteanos.sh | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/profile.sh b/lib/profile.sh index ad16867..ee6e556 100644 --- a/lib/profile.sh +++ b/lib/profile.sh @@ -48,6 +48,13 @@ profile_set() return 0 } +profile_normalize_suite() +{ + local suite="${1}" + + "prof_${profile}_normalize_suite" "${suite}" +} + profile_detect_arch() { "prof_${profile}_detect_arch" diff --git a/lib/profiles/proteanos.sh b/lib/profiles/proteanos.sh index 1a1a3b1..4054568 100644 --- a/lib/profiles/proteanos.sh +++ b/lib/profiles/proteanos.sh @@ -17,6 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +prof_proteanos_normalize_suite() +{ + local suite="${1}" + + case "${suite}" in + */*) printf '%s\n' "${suite}";; + *) printf 'dev/%s\n' "${suite}";; + esac + + return 0 +} + prof_proteanos_detect_arch() { local uname_m= |