Commit 47d8c627 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rsync_all: add support for p8/images

parent 72c88414
......@@ -23,7 +23,7 @@ get_rsync_path()
local RSYNCPATH
if [ "$1" = "c6/branch" ] ; then
RSYNCPATH=rsync.altlinux.ru::ALTLinux
elif [ "$1" = "p8/branch" ] ; then
elif echo "$1" | grep -q "p8/" ; then
#RSYNCPATH=rsync://ftp.basealt.ru/pub/distributions/ALTLinux
RSYNCPATH=rsync://ftp.basealt.ru/ALTLinux
......@@ -86,6 +86,25 @@ sync_branches()
done
}
sync_other()
{
RES="1"
RSYNCPATH=$(get_rsync_path $1)
echo "Start sync from $RSYNCPATH/$1 to $RPMS/$1"
#until [ $RES = "20" -o $RES = "0" ]
#do
# sync only if main dir is exist
test -d "$RPMS/${1/\/*/}" || return 0
mkdir -p $RPMS/$1/
rsync $DELETE --fuzzy --partial --timeout=$TIMEOUT --progress --stats -vbrlt \
--exclude "*SRPMS*" $2 \
$RSYNCPATH/$1/ $RPMS/$1/
RES=$?
echo "rsync exit: $RES"
#done
return $RES
}
if [ "$1" = "base" ] ; then
BASEONLY=1
shift
......@@ -98,9 +117,12 @@ elif [ "$1" = "--file" ] ; then
shift
sync_file $1
exit
elif [ -n "$1" ] ; then
elif echo "$1" | grep -q branch ; then
sync_branches $1/branch
exit
elif [ -n "$1" ] ; then
sync_other $1
exit
fi
# we do not update 5.0
......@@ -115,6 +137,8 @@ for i in p5 p6 t6 p7 t7 p8; do
sync_branches $i/branch
done
sync_other p8/images
for i in Sisyphus ; do
# FIXME: cert6/x86_32?
sync_branches $i
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment