commit 3d4f926a04abdaae3166518250e6c277c0416114
parent 5711d4092259d22bb882aab33cc8b82a73d6d861
Author: sin <sin@2f30.org>
Date: Tue, 10 Jun 2014 16:02:05 +0100
Use fetchpkg in install-morpheus
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/misc/install-morpheus b/misc/install-morpheus
@@ -8,7 +8,9 @@ pkgdir="pkgs"
mkdir -p "$root/var/pkg"
mkdir -p "$pkgdir"
# fetch packages.
-searchpkg '\.tgz$' | xargs wget -c -P "$pkgdir"
+cd "$pkgdir"
+searchpkg '\.tgz$' | fetchpkg
+cd - 1>/dev/null
# install
installpkg -p "$root" "$pkgdir/curl#7.36.0.pkg.tgz"
installpkg -p "$root" "$pkgdir/e2fsprogs#1.42.9.pkg.tgz"