summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-prepare.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/bootstrap-prepare.sh b/bootstrap-prepare.sh
index 7be6634..6b1efbc 100755
--- a/bootstrap-prepare.sh
+++ b/bootstrap-prepare.sh
@@ -73,11 +73,17 @@ prepare_file_system_fake()
prepare_packages_from_git()
{
- local repo branch patch
+ local pkgs_list repo branch patch
[ -d pkg ] || mkdir pkg
cd pkg
+ if [ -e "${SCRIPT_DIR}/bootstrap-pkgs-git_${ARCH}.txt" ]; then
+ pkgs_list="${SCRIPT_DIR}/bootstrap-pkgs-git_${ARCH}.txt"
+ else
+ pkgs_list="${SCRIPT_DIR}/bootstrap-pkgs-git.txt"
+ fi
+
while read repo branch; do
if [ -f "${repo##*/}_"*'_src_all.changes' ]; then
continue
@@ -112,7 +118,7 @@ prepare_packages_from_git()
opkbuild -SC
rm -Rf tmp
cd ..
- done <"${SCRIPT_DIR}/bootstrap-pkgs-git.txt"
+ done <"${pkgs_list}"
cd ..
}