From 79e7a2e8093e3217b2b45a1f42d120dbf1241b88 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 03 Dec 2013 14:40:18 -0500 Subject: cmd_install_find_pkgs(): Update function calls --- (limited to 'lib/cmd') diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh index 4c7d166..596c803 100644 --- a/lib/cmd/install.sh +++ b/lib/cmd/install.sh @@ -54,7 +54,7 @@ cmd_install_main() profile='proteanos' fi - if ! mkdir "${chroot}"; then + if ! mkdir "${chroot}" || ! mkdir "${chroot}/.prokit"; then : Error fi @@ -69,14 +69,20 @@ cmd_install_find_pkgs() local arch="${3}" local plat="${4}" local chroot="${5}" + local feed_idx= local feed= profile_set "${profile}" - for feed in $(profile_feeds); do + while read -r feed_idx feed; do + feed_download "${feed}" \ + >"${chroot}/.prokit/${feed_idx}.index" feed_find_pkgs 'profile_include_pkg' "$(profile_dep_fields)" \ - "${chroot}/.depends" <<-EOF - $(feed_download "${feed}") - EOF - done + "${chroot}/.prokit/${feed_idx}.depends" \ + "${chroot}/.prokit/${feed_idx}.filenames" \ + <"${chroot}/.prokit/${feed_idx}.index" \ + >>"${chroot}/.prokit/packages" + done <<-EOF + $(profile_feeds) + EOF } -- cgit v0.9.1