From 9b10c079cebc92eee2a94ff6aa940815e0b3c551 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Tue, 4 Nov 2008 14:44:21 +0100 Subject: quick patch for non-core repos that are not on the cdrom --- src/core/libs/lib-pacman.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/core/libs/lib-pacman.sh b/src/core/libs/lib-pacman.sh index c50416b..9b37bb0 100644 --- a/src/core/libs/lib-pacman.sh +++ b/src/core/libs/lib-pacman.sh @@ -73,11 +73,21 @@ EOF for repo in $repos do - cat << EOF >> /tmp/pacman.conf + #TODO: this is a VERY, VERY dirty hack. we fall back to ftp for any non-core repo because we only have core on the CD. also user maybe didn't pick a mirror yet + if [ "$repo" != core ] + then + cat << EOF >> /tmp/pacman.conf + +[${repo}] +Include = /etc/pacman.d/mirrorlist +EOF + else + cat << EOF >> /tmp/pacman.conf [${repo}] Server = ${serverurl} EOF + fi done # Set up the necessary directories for pacman use [ ! -d "${var_TARGET_DIR}/var/cache/pacman/pkg" ] && mkdir -m 755 -p "${var_TARGET_DIR}/var/cache/pacman/pkg" -- cgit v1.2.3-54-g00ecf