summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-02 11:33:53 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-02 11:33:53 (EDT)
commit615bd40e620136cce17892f01d09b93b2da522ff (patch)
tree6811e7d35fc3d7b4bde142a8c567925bc478843e
parenta7b4c1bae0e98a35332477ac884dd0894f2a71fd (diff)
bootstrap-prepare.sh: Skip Git if no pkgs list.
-rwxr-xr-xbootstrap-prepare.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/bootstrap-prepare.sh b/bootstrap-prepare.sh
index 6b1efbc..72fd47d 100755
--- a/bootstrap-prepare.sh
+++ b/bootstrap-prepare.sh
@@ -75,15 +75,17 @@ prepare_packages_from_git()
{
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
+ elif [ -e "${SCRIPT_DIR}/bootstrap-pkgs-git.txt" ]; then
pkgs_list="${SCRIPT_DIR}/bootstrap-pkgs-git.txt"
+ else
+ return 0
fi
+ [ -d pkg ] || mkdir pkg
+ cd pkg
+
while read repo branch; do
if [ -f "${repo##*/}_"*'_src_all.changes' ]; then
continue