From 317c6abf335c17e4dc4e1fc5db39647e75ab345d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 08 Jun 2014 14:11:25 -0400 Subject: miniprokit.sh: Move .list writing to get_pkg(). --- diff --git a/miniprokit.sh b/miniprokit.sh index 20d3ff2..6c146d7 100755 --- a/miniprokit.sh +++ b/miniprokit.sh @@ -241,6 +241,8 @@ get_pkg() for file in "${root}/tmp/opkg/${package}/"*; do mv "${file}" "${root}/var/lib/opkg/info/${package}.${file##*/}" done + tar -tz "${root}/tmp/opkg/${package}/data.tar.gz" | sed 's/^\.//' \ + >"${root}/var/lib/opkg/info/${package}.list" rm -f "${root}/tmp/opkg/${package}/data.tar.gz" rmdir "${root}/tmp/opkg/${package}" } @@ -270,9 +272,6 @@ configure_pkgs() fi done - tar -xzOf "${opk}" data.tar.gz | tar tz | sed 's/^\.//' \ - >"${root}/var/lib/opkg/info/${pkg}.list" - # Write status file. exec 3>>"${root}/var/lib/opkg/status" control="${root}/var/lib/opkg/info/${pkg}.control" -- cgit v0.9.1