From 39f26f94e942e730cea0cd4c8f97e138148233de Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 20 Aug 2014 20:50:05 -0400 Subject: install: Write full package list to temporary file --- (limited to 'lib/cmd') diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh index c84161d..2cd8218 100644 --- a/lib/cmd/install.sh +++ b/lib/cmd/install.sh @@ -104,6 +104,7 @@ cmd_install_find_pkgs() local pkgs_fd= local feed_idx= local feed= + local pkgs= mkdir -p "${chroot}/etc/opkg" "${chroot}/var/lib/opkg/lists" fopen "${chroot}/etc/opkg/opkg.conf" 'w' @@ -131,8 +132,9 @@ cmd_install_find_pkgs() fclose ${opkg_conf_fd} fclose ${pkgs_fd} - resolve_deps "$(cat "${chroot}/.prokit/packages")" \ - "${cmd_install_deps}" | xargs printf '%s\n' | sort -u + pkgs="$(resolve_deps "$(cat "${chroot}/.prokit/packages")" \ + "${cmd_install_deps}" | xargs printf '%s\n' | sort -u)" + printf '%s\n' "${pkgs}" >"${chroot}/.prokit/packages" } cmd_install_deps_cb() -- cgit v0.9.1