summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-08-19 18:35:32 +0200
committerDan McGee <dan@archlinux.org>2009-09-06 15:53:54 -0500
commit65c1f06be5a9c4bdb197b61563da7c2e28162392 (patch)
treecc715dc8a677a2568700a16dcac047f500c1a20e /doc
parent5b27e78ba015a48baf2d3c8687fdf3084781f9c9 (diff)
Allow $arch to be used in Server
similarly to the $repo variable, Server can now contain $arch, which will be automatically replaced by the appropriate architecture. This allows us to have one universal mirrorlist file, for both i686 and x86_64, woohoo! Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/pacman.conf.5.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/pacman.conf.5.txt b/doc/pacman.conf.5.txt
index 59bed156..640e62bb 100644
--- a/doc/pacman.conf.5.txt
+++ b/doc/pacman.conf.5.txt
@@ -181,10 +181,12 @@ Include = /etc/pacman.d/mirrorlist
During parsing, pacman will define the `$repo` variable to the name of the
current section. This is often utilized in files specified using the 'Include'
-directive so all repositories can use the same mirrorfile.
+directive so all repositories can use the same mirrorfile. pacman also defines
+the `$arch` variable to the value of `Architecture`, so the same mirrorfile can
+even be used for different architectures.
--------
-Server = ftp://ftp.archlinux.org/$repo/os/arch
+Server = ftp://ftp.archlinux.org/$repo/os/$arch
--------
The order of repositories in the configuration files matters; repositories