summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-17 13:35:35 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-17 13:35:35 (EDT)
commit99c72158a504f1a016410fbd4ccf739369459d23 (patch)
tree874da43c7cd51bbe5540c6343bead2dda8fcbf0a
parentd76df5c87fb3c01fd1415d68b35b2d3604a2e3e6 (diff)
profile_normalize_suite(): New function
-rw-r--r--lib/profile.sh7
-rw-r--r--lib/profiles/proteanos.sh12
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=