diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-04 14:44:21 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-04 14:44:21 +0100 |
commit | 9b10c079cebc92eee2a94ff6aa940815e0b3c551 (patch) | |
tree | 9337e4770204e8b8ce8259f20cdca97ace4f5efe /src | |
parent | 5a16c840dacd58108ac61b5344605bf5f1fd913e (diff) |
quick patch for non-core repos that are not on the cdrom
Diffstat (limited to 'src')
-rw-r--r-- | src/core/libs/lib-pacman.sh | 12 |
1 files changed, 11 insertions, 1 deletions
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" |