Merge branch 'master' of dhozac@git.planet-lab.org:/git/build
[build.git] / mirroring / mirror.sh
index 68e2821..4083875 100755 (executable)
@@ -5,7 +5,7 @@ DIRNAME=$(dirname $0)
 
 default_url="http://localhost/mirror/"
 default_distro="f8"
-all_distros="f8 f10 f12 f13 centos5"
+all_distros="f8 f10 f12 f14 centos5"
 
 function check_distro () {
     local distro=$1; shift
@@ -18,7 +18,7 @@ function check_distro () {
 
 function do_repo () {
     local distro=$1; shift
-    sedargs="-e s,@MIRRORURL@,$URL,"
+    sedargs="-e s,@MIRRORURL@,$URL,g"
     [ -n "$GPGOFF" ] && sedargs="$sedargs -e "'s,gpgcheck\W*=\W*1,gpgcheck=0,'
     sed $sedargs $DIRNAME/$distro/yum.repos.d/building.repo.in
 }