summaryrefslogtreecommitdiffstats
path: root/lib/cmd
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-20 21:09:30 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-20 21:09:30 (EDT)
commitb9a7e2e9de4a94973f6cd09114e04f573ce54781 (patch)
tree285168dc087f941f4970547a90684f41545e0153 /lib/cmd
parent39f26f94e942e730cea0cd4c8f97e138148233de (diff)
install: Save full package URLs
Diffstat (limited to 'lib/cmd')
-rw-r--r--lib/cmd/install.sh5
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}")"
}