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"
echo rsyncurl="$rsyncurl"
echo "rsync options=$options"
+RES=0
case $distro in
[Ff]edora*)
case $distroindex in
mkdir -p ${root}/${repopath}
rsync $options ${rsyncurl}/${repopath} ${root}/${repopath}
done
- RES=0
;;
7|8)
mkdir -p ${root}/${repopath}
rsync $options ${rsyncurl}/${repopath} ${root}/${repopath}
done
- RES=0
;;
*)
echo "Unknown fedora index $distroindex - exiting"
;;
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