diff options
author | P. J. McDermott <pjm@nac.net> | 2014-01-28 17:41:07 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-01-28 17:41:07 (EST) |
commit | 5ccb68af847afbac9624a7b5ea1ccfdac2dfec93 (patch) | |
tree | 79664805b3e4841c45b35dbefb715e047668fcb4 | |
parent | 5b7e18bbb3604e2680de9686601489083cf638aa (diff) |
bootstrap-prepare.sh: Find cached source archives.
-rwxr-xr-x | bootstrap-prepare.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bootstrap-prepare.sh b/bootstrap-prepare.sh index c01638c..f4e1a2a 100755 --- a/bootstrap-prepare.sh +++ b/bootstrap-prepare.sh @@ -97,8 +97,12 @@ prepare_packages_from_git() fi rm -f local.mk if [ -f source.mk -a ! -f "${repo##*/}"*.orig.tar* ]; then - opkbuild -bCT source - rm -Rf tmp + if [ -f "../.cache/${repo##*/}"*.orig.tar* ]; then + mv "../.cache/${repo##*/}"*.orig.tar* . + else + opkbuild -bCT source + rm -Rf tmp + fi fi opkbuild -SC rm -Rf tmp |