summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-12-02 21:10:16 (EST)
committer P. J. McDermott <pjm@nac.net>2013-12-02 21:10:16 (EST)
commit0920d5d4a14a02e0b400db480957a1e64b67044a (patch)
tree90717f77891a2bae4a7d859568a0a17d001e1719 /lib
parent217bf722c69d51cfd25e079239e941f4d0702811 (diff)
install: Parse profile prefix in suite.
Diffstat (limited to 'lib')
-rw-r--r--lib/cmd/install.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh
index e3d81c9..982e9b5 100644
--- a/lib/cmd/install.sh
+++ b/lib/cmd/install.sh
@@ -47,6 +47,14 @@ cmd_install_main()
plat="${cmd_install_opt_P}"
fi
+ if [ "x${suite%%:*}" != "x${suite}" ]; then
+ profile="${suite%%:*}"
+ suite="${suite#*:}"
+ else
+ profile='proteanos'
+ fi
+
+ printf 'Profile: %s\n' "${profile}"
printf 'Suite: %s\n' "${suite}"
printf 'Architecture: %s\n' "${arch}"
printf 'Platform: %s\n' "${plat}"