From b9a7e2e9de4a94973f6cd09114e04f573ce54781 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 20 Aug 2014 21:09:30 -0400 Subject: install: Save full package URLs --- (limited to 'lib/cmd') 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}")" } -- cgit v0.9.1