From 99c72158a504f1a016410fbd4ccf739369459d23 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 17 Aug 2014 13:35:35 -0400 Subject: profile_normalize_suite(): New function --- 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 . +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= -- cgit v0.9.1