diff options
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() |