diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-02 11:28:54 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-02 11:28:54 (EDT) |
commit | a8a4009a1fa3dd9382c7f3a0652e5dbfc96aadee (patch) | |
tree | 411001f0db33c2b8c86a60a7b9548cf73ef3ac7c | |
parent | 292f4ecc02a2949f5ee24db96f1eba491f8c2ca0 (diff) |
bootstrap-prepare.sh: Use arch-specific repo list.
-rwxr-xr-x | bootstrap-prepare.sh | 10 |
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 .. } |