- case $distro in
- [Ff]edora*)
- case $distroindex in
- 2|4|6)
- [ -z "$skip_core" ] && paths="core/$distroindex/$arch/os/"
- paths="$paths core/updates/$distroindex/$arch/ extras/$distroindex/$arch/"
- RES=0
- ;;
- 7|8|9|1?|2?)
- [ -z "$skip_core" ] && paths="releases/$distroindex/Everything/$arch/os/"
- paths="$paths updates/$distroindex/$arch/"
- # f8 and f9 have the additional newkey repo
- case $distroindex in
- 8|9) paths="$paths updates/$distroindex/${arch}.newkey/" ;;
- esac
- RES=0
- ;;
- esac
- localpath=fedora
- ;;
-
- CentOS*)
- case $distroindex in
- 5*)
- [ -z "$skip_core" ] && paths="$distroindex/os/$arch/"
- paths="$paths $distroindex/updates/$arch/"
- RES=0
- ;;
- esac
- localpath=centos
- ;;
-
- epel*)
- case $distroindex in
- 5|6)
- paths="$paths $distroindex/$arch/"
- RES=0
- ;;
- esac
- localpath=epel
- ;;
-
- dhozac*)
- case $distroindex in
- 5)
- # leave off trailing '/'
- paths="$paths $distroindex/vserver/$arch"
- RES=0
- ;;
- esac
- localpath=dhozac
- ;;
-
- esac
-
- if [ "$RES" = 1 ] ; then
- echo "DISTRIBUTION $distro $distroindex CURRENTLY UNSUPPORTED - skipped"
- else
- for repopath in $paths; do
- echo "===== $distro -> $distroindex $repopath"
- [ -z "$dry_run" ] && mkdir -p ${root}/${localpath}/${repopath}
- command="rsync $options ${rsyncurl}/${repopath} ${root}/${localpath}/${repopath}"
- echo $command
- $command
- done
- fi
+ [ -z "$skip_core" ] && paths="releases/$distroindex/Everything/$arch/os/"
+ paths="$paths updates/$distroindex/$arch/"
+ localpath=fedora
+
+ for repopath in $paths; do
+ echo "===== $distro -> $distroindex $repopath"
+ [ -z "$dry_run" ] && mkdir -p ${root}/${localpath}/${repopath}
+ command="rsync $options ${rsyncurl}/${repopath} ${root}/${localpath}/${repopath}"
+ echo $command
+ $command
+ done