Commit bc41d41b authored by Vitaly Lipatov's avatar Vitaly Lipatov Committed by Downloader

rsync_all.sh: add SRPMS download support

parent aa4f557c
...@@ -65,8 +65,7 @@ echo "Start sync from $RSYNCPATH/$1 to $RPMS/$1" ...@@ -65,8 +65,7 @@ echo "Start sync from $RSYNCPATH/$1 to $RPMS/$1"
# sync only if main dir is exist # sync only if main dir is exist
test -d "$RPMS/${1/\/*/}" || return 0 test -d "$RPMS/${1/\/*/}" || return 0
mkdir -p $RPMS/$1/ mkdir -p $RPMS/$1/
rsync $DELETE --fuzzy --partial --inplace --timeout=$TIMEOUT --progress --stats -vrlt --copy-links \ rsync $DELETE --fuzzy --partial --inplace --timeout=$TIMEOUT --progress --stats -vrlt --copy-links $2 \
--exclude "*SRPMS*" $2 \
$RSYNCPATH/$1/ $RPMS/$1/ $RSYNCPATH/$1/ $RPMS/$1/
RES=$? RES=$?
echo "rsync exit: $RES" echo "rsync exit: $RES"
...@@ -99,7 +98,7 @@ sync_branches() ...@@ -99,7 +98,7 @@ sync_branches()
fi fi
for i in $LISTARCH; do for i in $LISTARCH; do
func $1/$i func $1/$i '--exclude *SRPMS*'
done done
} }
...@@ -134,6 +133,12 @@ elif [ "$1" = "--file" ] ; then ...@@ -134,6 +133,12 @@ elif [ "$1" = "--file" ] ; then
shift shift
sync_file $1 sync_file $1
exit exit
elif [ "$1" = "--srpms" ] ; then
shift
RSYNCPATH=$(get_rsync_path $1)
# http://ftp.basealt.ru/pub/distributions/ALTLinux/Sisyphus/files/SRPMS/
func $1/files/SRPMS
exit
elif echo "$1" | grep -q branch ; then elif echo "$1" | grep -q branch ; then
sync_branches $1 sync_branches $1
exit exit
......
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