From 78b03ce8a32f8e643e84ed9d4b3bde15943c2f19 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 5 Apr 2020 19:22:14 +0100 Subject: [PATCH] bootstrap_archives: remove useless param --- scripts/build/bootstrap | 2 +- scripts/build/bootstrap_archives | 17 ++--------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/scripts/build/bootstrap b/scripts/build/bootstrap index 08229a393..56d62e481 100755 --- a/scripts/build/bootstrap +++ b/scripts/build/bootstrap @@ -35,7 +35,7 @@ lb bootstrap_cache save "${@}" # Configuring chroot lb chroot_prep install all-except-archives "${@}" -lb bootstrap_archives binary "${@}" +lb bootstrap_archives "${@}" # Deconfiguring chroot lb chroot_prep remove all-except-archives "${@}" diff --git a/scripts/build/bootstrap_archives b/scripts/build/bootstrap_archives index 4dc07bffe..18e992838 100755 --- a/scripts/build/bootstrap_archives +++ b/scripts/build/bootstrap_archives @@ -16,14 +16,7 @@ set -e # Setting static variables DESCRIPTION="Manage /etc/apt/sources.list" -USAGE="${PROGRAM} {source|binary} [--force]" - -_PASS="${1}" -shift - -if [ "${_PASS}" != "binary" ] && [ "${_PASS}" != "source" ]; then - Usage -fi +USAGE="${PROGRAM} [--force]" # Processing arguments and configuration files Init_config_data "${@}" @@ -49,7 +42,7 @@ then fi # Configure custom sources.list -Create_apt_sources_list chroot "${_PASS}" +Create_apt_sources_list chroot # Adding local apt sources (chroot) for FILE in config/archives/*.list config/archives/*.list.chroot @@ -61,12 +54,6 @@ do -e "s|@ARCHIVE_AREAS@|${LB_ARCHIVE_AREAS}|g" \ -e "s|@PARENT_ARCHIVE_AREAS@|${LB_PARENT_ARCHIVE_AREAS}|g" \ "${FILE}" > "chroot/etc/apt/sources.list.d/$(basename ${FILE} .chroot)" - - if [ "${_PASS}" != "source" ] && [ "${LB_APT_SOURCE_ARCHIVES}" = "false" ] - then - # Disable source archives - sed -i "s/^deb-src/#deb-src/g" "chroot/etc/apt/sources.list.d/$(basename ${FILE} .chroot)" - fi fi done