From fc0bf7c4965d24846ea26cdd82de3148a90cb221 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 26 May 2014 00:48:49 -0400 Subject: bootstrap-prepare.sh: Skip already gotten pkgs. --- diff --git a/bootstrap-prepare.sh b/bootstrap-prepare.sh index 46d108c..1b1c782 100755 --- a/bootstrap-prepare.sh +++ b/bootstrap-prepare.sh @@ -188,6 +188,10 @@ get_pkg() local sha256sum="${3}" local pkg_ver + pkg_ver="${filename##*/src-}" + pkg_ver="${pkg_ver%_src_all.opk}" + [ -d "pkg/${pkg_ver%_*}" ] && return + [ -d pkg ] || mkdir pkg cd pkg @@ -201,8 +205,6 @@ get_pkg() exit 1 fi - pkg_ver="${filename#src-}" - pkg_ver="${pkg_ver%_src_all.opk}" tar -xzOf "${filename}" data.tar.gz | tar -xz mv "usr/src/${pkg_ver}" "${pkg_ver%_*}" rmdir usr/src usr -- cgit v0.9.1