summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-15 12:06:37 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-15 12:08:41 (EDT)
commitbd69c3a8cce4466eb720b532cb894463024bb733 (patch)
treeed6c0d02dbd4771e453775a83e70c2d8a95934f5
parent79e7a2e8093e3217b2b45a1f42d120dbf1241b88 (diff)
install: Move profile_set() call
-rw-r--r--lib/cmd/install.sh16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh
index 596c803..676724d 100644
--- a/lib/cmd/install.sh
+++ b/lib/cmd/install.sh
@@ -58,22 +58,20 @@ cmd_install_main()
: Error
fi
- cmd_install_find_pkgs "${profile}" "${suite}" "${arch}" "${plat}" \
- "${chroot}"
+ profile_set "${profile}"
+
+ cmd_install_find_pkgs "${suite}" "${arch}" "${plat}" "${chroot}"
}
cmd_install_find_pkgs()
{
- local profile="${1}"
- local suite="${2}"
- local arch="${3}"
- local plat="${4}"
- local chroot="${5}"
+ local suite="${1}"
+ local arch="${2}"
+ local plat="${3}"
+ local chroot="${4}"
local feed_idx=
local feed=
- profile_set "${profile}"
-
while read -r feed_idx feed; do
feed_download "${feed}" \
>"${chroot}/.prokit/${feed_idx}.index"