Skip to content

Commit

Permalink
chore: reset MAIN_REPO_URL for merge
Browse files Browse the repository at this point in the history
also refactor init_repos() slightly
  • Loading branch information
philclifford committed May 14, 2024
1 parent e9b0026 commit 7d78bfe
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions deb-get
Original file line number Diff line number Diff line change
Expand Up @@ -648,13 +648,12 @@ function init_repos() {
if [ ! -e "${ETC_DIR}/01-main.repo" ]; then
${ELEVATE} tee "${ETC_DIR}/01-main.repo" <<<"${MAIN_REPO_URL}" >/dev/null
fi
if [ ! -e "${ETC_DIR}/02-main.repo" ]; then
${ELEVATE} sed 's/01/02/' "${ETC_DIR}/01-main.repo" > "${ETC_DIR}/02-main.repo"
fi
if [ ! -e "${ETC_DIR}/03-main.repo" ]; then
${ELEVATE} sed 's/01/03/' "${ETC_DIR}/01-main.repo" > "${ETC_DIR}/03-main.repo"
fi

for subrepo in 02 03; do
if [ ! -e "${ETC_DIR}/${subrepo}-main.repo" ]; then
${ELEVATE} head -1 "${ETC_DIR}/01-main.repo" | sed "s/01/${subrepo}/" > "${ETC_DIR}/${subrepo}-main.repo"
fi
done

for REPO in $(find "${ETC_DIR}" -maxdepth 1 -name "*.repo" ! -name 00-builtin.repo ! -name 99-local.repo -type f -printf "%f\n" | sed "s/.repo$//"); do
if [ ! -e "${ETC_DIR}/${REPO}.d" ]; then
${ELEVATE} mkdir "${ETC_DIR}/${REPO}.d" 2>/dev/null
Expand Down Expand Up @@ -1575,11 +1574,9 @@ fi

export CACHE_DIR="/var/cache/deb-get"
readonly ETC_DIR="/etc/deb-get"
readonly MAIN_REPO_URL="https://raw.githubusercontent.com/philclifford/deb-get/split_github_repos/01-main"

readonly MAIN_REPO_URL="https://raw.githubusercontent.com/wimpysworld/deb-get/main/01-main"
readonly USER_AGENT="Mozilla/5.0 (X11; Linux ${HOST_CPU}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
readonly USER_HOME="${HOME}"

readonly DEBGET_BIN=$(basename $0)

parse_machine
Expand Down

0 comments on commit 7d78bfe

Please sign in to comment.