diff options
Diffstat (limited to 'lib/cmd')
-rw-r--r-- | lib/cmd/install.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh index 2cd8218..88b6b0a 100644 --- a/lib/cmd/install.sh +++ b/lib/cmd/install.sh @@ -26,6 +26,7 @@ use pkg cmd_install_optstring='a:P:m:' cmd_install_deps= cmd_install_fnames= +cmd_install_feed_url= cmd_install_main() { @@ -120,6 +121,7 @@ cmd_install_find_pkgs() printf 'src %s %s\n' "${feed_idx}" "${feed}" >&${opkg_conf_fd} feed_download "${feed}" \ >"${chroot}/var/lib/opkg/lists/${feed_idx}" + cmd_install_feed_url="${feed%/*}" feed_find_pkgs "${chroot}/var/lib/opkg/lists/${feed_idx}" \ "$(profile_dep_fields)" profile_include_pkg \ cmd_install_deps_cb cmd_install_fname_cb >&${pkgs_fd} @@ -150,5 +152,6 @@ cmd_install_fname_cb() local pkg="${1}" local fname="${2}" - cmd_install_fnames="${cmd_install_fnames}${pkg} ${fname}${LF}" + cmd_install_fnames="$(printf '%s\n%s %s/%s' "${cmd_install_fnames}" \ + "${pkg}" "${cmd_install_feed_url}" "${fname}")" } |