From 6c02331b88c01e3f21081163acc19d81d16122e2 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 02 Dec 2013 21:35:53 -0500 Subject: cmd_install_find_pkgs(): New function --- diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh index 982e9b5..4c7d166 100644 --- a/lib/cmd/install.sh +++ b/lib/cmd/install.sh @@ -54,8 +54,29 @@ cmd_install_main() profile='proteanos' fi - printf 'Profile: %s\n' "${profile}" - printf 'Suite: %s\n' "${suite}" - printf 'Architecture: %s\n' "${arch}" - printf 'Platform: %s\n' "${plat}" + if ! mkdir "${chroot}"; then + : Error + fi + + cmd_install_find_pkgs "${profile}" "${suite}" "${arch}" "${plat}" \ + "${chroot}" +} + +cmd_install_find_pkgs() +{ + local profile="${1}" + local suite="${2}" + local arch="${3}" + local plat="${4}" + local chroot="${5}" + local feed= + + profile_set "${profile}" + + for feed in $(profile_feeds); do + feed_find_pkgs 'profile_include_pkg' "$(profile_dep_fields)" \ + "${chroot}/.depends" <<-EOF + $(feed_download "${feed}") + EOF + done } -- cgit v0.9.1