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"
# sync only if main dir is exist
test -d "$RPMS/${1/\/*/}" || return 0
mkdir -p $RPMS/$1/
rsync $DELETE --fuzzy --partial --inplace --timeout=$TIMEOUT --progress --stats -vrlt --copy-links \
--exclude "*SRPMS*" $2 \
rsync $DELETE --fuzzy --partial --inplace --timeout=$TIMEOUT --progress --stats -vrlt --copy-links $2 \
$RSYNCPATH/$1/ $RPMS/$1/
RES=$?
echo "rsync exit: $RES"
......@@ -99,7 +98,7 @@ sync_branches()
fi
for i in $LISTARCH; do
func $1/$i
func $1/$i '--exclude *SRPMS*'
done
}
......@@ -134,6 +133,12 @@ elif [ "$1" = "--file" ] ; then
shift
sync_file $1
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
sync_branches $1
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