diff options
-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 |