remove not needed functions from media install

This commit is contained in:
Tobias Powalowski 2021-09-13 18:23:08 +02:00
parent 2e641b5eea
commit 0b98dc0b49

View file

@ -30,7 +30,6 @@ PACMAN="pacman --root ${DESTDIR} --config /tmp/pacman.conf --noconfirm --noprogr
DLPROG="wget" DLPROG="wget"
# sources # sources
SYNC_URL="" SYNC_URL=""
FILE_URL="file:///packages/core-$(uname -m)/pkg"
MIRRORLIST="/etc/pacman.d/mirrorlist" MIRRORLIST="/etc/pacman.d/mirrorlist"
unset PACKAGES unset PACKAGES
@ -2579,9 +2578,7 @@ dotesting() {
# pacman_conf() # pacman_conf()
# creates temporary pacman.conf file # creates temporary pacman.conf file
pacman_conf() { pacman_conf() {
if [[ "${MODE}" = "media" ]]; then if [[ "${MODE}" = "network" ]]; then
local serverurl="${FILE_URL}"
elif [[ "${MODE}" = "network" ]]; then
local serverurl="${SYNC_URL}" local serverurl="${SYNC_URL}"
if [[ "${DOTESTING}" = "yes" ]]; then if [[ "${DOTESTING}" = "yes" ]]; then
TESTING_REPOSITORY="[testing]" TESTING_REPOSITORY="[testing]"