chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
86a8ff1
)
Mirroring: Sort out stderr plumbing
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 11 Jul 2015 16:40:26 +0000
(17:40 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 11 Jul 2015 18:31:19 +0000
(19:31 +0100)
infra/dgit-mirror-rsync
patch
|
blob
|
history
diff --git
a/infra/dgit-mirror-rsync
b/infra/dgit-mirror-rsync
index 2858047b57f85307085c1df13f0448d69e29473e..01620424182ddaae166c1e9c71bb142d96178afc 100755
(executable)
--- a/
infra/dgit-mirror-rsync
+++ b/
infra/dgit-mirror-rsync
@@
-105,13
+105,13
@@
lock-and-process () {
}
attempt () {
}
attempt () {
- exec >"$queue/$package.err" 2>&1
+ exec
3>&2
>"$queue/$package.err" 2>&1
if actually; then
rm -f "$queue/$package.a"
mv -f "$queue/$package.err" "$queue/$package.log"
rm "$queue/$package.lock"
else
if actually; then
rm -f "$queue/$package.a"
mv -f "$queue/$package.err" "$queue/$package.log"
rm "$queue/$package.lock"
else
- cat >&
2
"$queue/$package.err"
+ cat >&
3
"$queue/$package.err"
exit 127
fi
}
exit 127
fi
}