summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-18 11:08:41 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-18 11:08:41 (EDT)
commit7aa14bff1aecd178c6663925a3674b24af7ab4a3 (patch)
tree99fe8a9e6a6c9afc945c28de8d0ce1b12955c951 /lib
parent6af206e34b6021b13e730b0676494a203efd4976 (diff)
install: Put pkg idx files in /var/lib/opkg/lists
Diffstat (limited to 'lib')
-rw-r--r--lib/cmd/install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh
index 6cee601..f9ac390 100644
--- a/lib/cmd/install.sh
+++ b/lib/cmd/install.sh
@@ -82,13 +82,15 @@ cmd_install_find_pkgs()
local feed_idx=
local feed=
+ mkdir -p "${chroot}/var/lib/opkg/lists"
+
while read -r feed_idx feed; do
feed_download "${feed}" \
- >"${chroot}/.prokit/${feed_idx}.index"
+ >"${chroot}/var/lib/opkg/lists/${feed_idx}"
feed_find_pkgs 'profile_include_pkg' "$(profile_dep_fields)" \
"${chroot}/.prokit/${feed_idx}.depends" \
"${chroot}/.prokit/${feed_idx}.filenames" \
- <"${chroot}/.prokit/${feed_idx}.index" \
+ <"${chroot}/var/lib/opkg/lists/${feed_idx}"
>>"${chroot}/.prokit/packages"
done <<-EOF
$(profile_feeds "${arch}" "${plat}" "${suite}")