diff options
Diffstat (limited to 'infra')
-rwxr-xr-x | infra/dgit-mirror-rsync | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/infra/dgit-mirror-rsync b/infra/dgit-mirror-rsync index 47142ee..0d29ffb 100755 --- a/infra/dgit-mirror-rsync +++ b/infra/dgit-mirror-rsync @@ -108,7 +108,11 @@ attempt () { exec 3>&2 >"$queue/$package.err" 2>&1 if actually; then rm -f "$queue/$package.a" + exec 2>&3 2>&1 mv -f "$queue/$package.err" "$queue/$package.log" + if ! [ -s "$queue/$package.log" ]; then + rm "$queue/$package.log" + fi rm "$queue/$package.lock" else cat >&3 "$queue/$package.err" |