mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 20:52:43 +00:00
pypi: use todo file to inspect sync status
This commit is contained in:
parent
c0c5136848
commit
46732b01e9
17
pypi.sh
17
pypi.sh
@ -20,8 +20,7 @@ workers = 10
|
||||
stop-on-error = true
|
||||
delete-packages = true
|
||||
EOF
|
||||
/usr/bin/timeout -s INT 7200 $BANDERSNATCH -c $CONF mirror || exit 1
|
||||
|
||||
/usr/bin/timeout -s INT 7200 $BANDERSNATCH -c $CONF mirror
|
||||
else
|
||||
cat > $CONF << EOF
|
||||
[mirror]
|
||||
@ -33,5 +32,17 @@ stop-on-error = false
|
||||
delete-packages = false
|
||||
EOF
|
||||
|
||||
$BANDERSNATCH -c $CONF mirror || exit 1
|
||||
$BANDERSNATCH -c $CONF mirror
|
||||
fi
|
||||
|
||||
TODOFILE="${TUNASYNC_WORKING_DIR}/todo"
|
||||
if [[ -f $TODOFILE ]]; then
|
||||
rsize=`stat -c "%s" ${dest_filename}`
|
||||
if [[ "$rsize" != "0" ]]; then
|
||||
echo "Sync Failed T_T"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Sync Done ^_-"
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user