summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-08 14:11:25 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-08 14:11:25 (EDT)
commit317c6abf335c17e4dc4e1fc5db39647e75ab345d (patch)
tree15f92e2700f268404b40e464003ad099af28b28c
parentf300464d952f5a43b87ac2fbfdb21d299c266e78 (diff)
miniprokit.sh: Move .list writing to get_pkg().
-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"