summaryrefslogtreecommitdiff
path: root/src/core/procedures/interactive
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-18 15:51:44 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-18 15:51:44 +0100
commit83df0500533e6e5b7a93b4d37df34a0952e2795b (patch)
treede86160f07a553ac8069e55cbe0202b15ca3c0da /src/core/procedures/interactive
parentc5e7eea26c1ce2305012ab67d88e54477e389ccd (diff)
mirrorlist scope/softcoding cleanups
Diffstat (limited to 'src/core/procedures/interactive')
-rw-r--r--src/core/procedures/interactive4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive
index 6ee7023..dc1bf2b 100644
--- a/src/core/procedures/interactive
+++ b/src/core/procedures/interactive
@@ -115,7 +115,9 @@ worker_configure_system()
# /etc/pacman.d/mirrorlist
# add installer-selected mirror to the top of the mirrorlist
if [ "$var_PKG_SOURCE_TYPE" = "ftp" -a "${SYNC_URL}" != "" ]; then
- awk "BEGIN { printf(\"# Mirror used during installation\nServer = "${SYNC_URL}"\n\n\") } 1 " "${var_TARGET_DIR}/etc/pacman.d/mirrorlist"
+ debug "Adding choosen mirror (${SYNC_URL}) to ${var_TARGET_DIR}/$var_MIRRORLIST"
+ mirrorlist=`awk "BEGIN { printf(\"# Mirror used during installation\nServer = "${SYNC_URL}"\n\n\") } 1 " "${var_TARGET_DIR}/$var_MIRRORLIST"`
+ echo "$mirrorlist" > "${var_TARGET_DIR}/$var_MIRRORLIST" #TODO: test this, this may not work
fi
# /etc/rc.conf