import repository from arizona
[raven.git] / apps / importyum / download1.sh
1 #!/bin/bash
2
3 name=$1
4 baseurl=$2
5 xmldir=$3
6
7 url=$baseurl
8 wget $url/repodata/primary.xml.gz -O $xmldir/$name.xml.gz
9 if [ -e $xmldir/$name.xml ]; then
10   rm $xmldir/$name.xml
11 fi
12 gzip -d $xmldir/$name.xml.gz
13 echo $url > $xmldir/$name.url