From: Marc Fiuczynski Date: Mon, 26 Nov 2007 20:46:19 +0000 (+0000) Subject: added centos5 support X-Git-Tag: 4.2-rc2~449 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=075049453face1d59411bb9584f2cfd5ccbce3c2;p=build.git added centos5 support --- diff --git a/vbuild-fedora-mirror.sh b/vbuild-fedora-mirror.sh index 5533985f..48391455 100755 --- a/vbuild-fedora-mirror.sh +++ b/vbuild-fedora-mirror.sh @@ -51,7 +51,7 @@ case $distroname in esac excludelist="debug/ iso/ ppc/ source/" -options="$dry_run -avz --delete --delete-excluded --no-motd" +options="$dry_run -avz --delete --delete-excluded --quiet" for e in $excludelist do options="$options --exclude $e" @@ -65,6 +65,7 @@ echo "arch=$arch" echo rsyncurl="$rsyncurl" echo "rsync options=$options" +RES=0 case $distro in [Ff]edora*) case $distroindex in @@ -75,7 +76,6 @@ case $distro in mkdir -p ${root}/${repopath} rsync $options ${rsyncurl}/${repopath} ${root}/${repopath} done - RES=0 ;; 7|8) @@ -85,7 +85,6 @@ case $distro in mkdir -p ${root}/${repopath} rsync $options ${rsyncurl}/${repopath} ${root}/${repopath} done - RES=0 ;; *) echo "Unknown fedora index $distroindex - exiting" @@ -93,6 +92,25 @@ case $distro in ;; esac ;; + + CentOS*) + case $distroindex in + 5) + for repopath in $distroindex/os/$arch/ $distroindex/updates/$arch/ + do + echo "============================== $distro -> $distroindex $repopath" + mkdir -p ${root}/${repopath} + rsync $options ${rsyncurl}/${repopath} ${root}/${repopath} + done + + ;; + *) + echo "$distro $distroindex currently unsupported - exiting" + RES=1 + ;; + esac + ;; + *) echo "$distro $distroindex currently unsupported - exiting" RES=1