From bd69c3a8cce4466eb720b532cb894463024bb733 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 15 Aug 2014 12:06:37 -0400 Subject: install: Move profile_set() call --- (limited to 'lib') 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" -- cgit v0.9.1