Commit 20ea6087 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-altlinux-contents-index: fix update content index

parent 451a81ce
......@@ -36,7 +36,7 @@ __alt_local_content_search()
update_repo_if_needed
if [ ! -s "$ALT_CONTENTS_INDEX_LIST" ] ; then
fatal "Have no local contents index. Check epm repo --help."
fatal "There was some error in contents index retrieving. Try run 'epm update' again."
fi
local CI="$(cat $ALT_CONTENTS_INDEX_LIST)"
......
......@@ -59,10 +59,13 @@ rsync_alt_contents_index()
__rsync_check "$URL" || return
mkdir -p "$(dirname "$TD")"
[ -n "$USER" ] && sudorun chown -R $USER "$TD"
if [ -z "$quiet" ] ; then
docmd rsync --partial --inplace $3 -a --progress "$URL" "$TD"
docmd rsync --partial --inplace $3 -a "$URL" "$TD"
else
a= rsync --partial --inplace $3 -a --progress "$URL" "$TD" >/dev/null
a= rsync --partial --inplace $3 -a "$URL" "$TD"
fi
res=$?
[ -f "$TD" ] && sudorun chmod a+rw "$TD"
......
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