Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix repo-index #15

Merged
merged 1 commit into from
Jan 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ function add_packages_and_repository ()
# Adding in last week's core archive repo before the official repo as a workaround
if [[ ${IS_DRY_RUN} -ne 1 ]];
then
_echo_if_be_verbose " Adding entry of >>Server = https://archive.archlinux.org/repos/${REPO_INDEX_OR_EMPTY_STRING}/\$repo/os/\$arch<< to:"
_echo_if_be_verbose " Adding entry of >>Server = https://archive.archlinux.org/repos/${REPO_INDEX_OR_EMPTY_STRING}/\$repo/os/\$arch<< to:"
_echo_if_be_verbose " [core]"
sed -i -e 's/\[core\]/\[core\]\nServer = https:\/\/archive.archlinux.org\/repos\/'${REPO_INDEX_OR_EMPTY_STRING}'\/\$repo\/os\/\$arch\//g' "${PATH_TO_THE_PACMAN_CONF_FILE}"
sed -i -e 's|\[core\]|\[core\]\nServer = https://archive.archlinux.org/repos/'${REPO_INDEX_OR_EMPTY_STRING}'/\$repo/os/\$arch/|g' "${PATH_TO_THE_PACMAN_CONF_FILE}"

_echo_if_be_verbose " [extra]"
sed -i -e 's/\[extra\]/\[extra\]\nServer = https:\/\/archive.archlinux.org\/repos\/'${REPO_INDEX_OR_EMPTY_STRING}'\/\$repo\/os\/\$arch\//g' "${PATH_TO_THE_PACMAN_CONF_FILE}"
sed -i -e 's|\[extra\]|\[extra\]\nServer = https://archive.archlinux.org/repos/'${REPO_INDEX_OR_EMPTY_STRING}'/\$repo/os/\$arch/|g' "${PATH_TO_THE_PACMAN_CONF_FILE}"

_echo_if_be_verbose " [community]"
sed -i -e 's/\[community\]/\[community\]\nServer = https:\/\/archive.archlinux.org\/repos\/'${REPO_INDEX_OR_EMPTY_STRING}'\/\$repo\/os\/\$arch\//g' "${PATH_TO_THE_PACMAN_CONF_FILE}"
sed -i -e 's|\[community\]|\[community\]\nServer = https://archive.archlinux.org/repos/'${REPO_INDEX_OR_EMPTY_STRING}'/\$repo/os/\$arch/|g' "${PATH_TO_THE_PACMAN_CONF_FILE}"
fi

fi
Expand Down Expand Up @@ -659,7 +659,7 @@ function _main ()
if [[ ${SHOW_HELP} -eq 1 ]];
then
echo ":: Usage"
echo " ${0} [-d|--dry-run] [-f|--force] [-h|--help] [-r|--repo-index [<string: last|week|month|yyyy\/mm\/dd>]] [-u|--use-dkms] [-v|--verbose]"
echo " ${0} [-d|--dry-run] [-f|--force] [-h|--help] [-r|--repo-index [<string: last|week|month|yyyy/mm/dd>]] [-u|--use-dkms] [-v|--verbose]"

exit 0
fi
Expand Down