From 5189326431fe42f995babdd470c6dd14315b9db8 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sun, 19 Jan 2020 11:54:35 -0700 Subject: [PATCH] Don't replace existing repo in build functions * Addresses issue #149 --- setup/build_linux | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/setup/build_linux b/setup/build_linux index 937e911a..16e8d8c0 100755 --- a/setup/build_linux +++ b/setup/build_linux @@ -345,7 +345,11 @@ function build_all() { fix_kit_permissions install_deps load_settings --edit - update_repo + + # Build repo if needed + if ! [[ -e "${REPO_DIR}/custom.db.tar.gz" ]]; then + update_repo + fi # Build (full) copy_live_env @@ -414,7 +418,13 @@ function build_full() { fix_kit_permissions install_deps load_settings --edit - update_repo + + # Build repo if needed + if ! [[ -e "${REPO_DIR}/custom.db.tar.gz" ]]; then + update_repo + fi + + # Build Full copy_live_env update_live_env # Rerun script as root to start Archiso build process @@ -435,7 +445,13 @@ function build_minimal() { fix_kit_permissions install_deps load_settings --edit - update_repo + + # Build repo if needed + if ! [[ -e "${REPO_DIR}/custom.db.tar.gz" ]]; then + update_repo + fi + + # Build Minimal copy_live_env --minimal update_live_env --minimal # Rerun script as root to start Archiso build process