diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-08-20 20:50:05 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-08-20 20:50:05 (EDT) |
commit | 39f26f94e942e730cea0cd4c8f97e138148233de (patch) | |
tree | f03234a2a53be7c665e90ccb7724c6b18521b38b /lib | |
parent | ba6efbbcba28e5a0b2d9f87d055e5520c3dd1a4d (diff) |
install: Write full package list to temporary file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cmd/install.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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() |