summaryrefslogtreecommitdiffstats
path: root/miniprokit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'miniprokit.sh')
-rwxr-xr-xminiprokit.sh5
1 files changed, 2 insertions, 3 deletions
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"