Joerg Jaspert pushed to branch deploy at Debian FTP Team / dak
Commits:
1 changed file:
Changes:
... | ... | @@ -112,13 +112,13 @@ while read mfile; do |
112 | 112 |
fi
|
113 | 113 |
else
|
114 | 114 |
# If we run wherever, use curl and the http interface
|
115 |
- if curl --fail --silent --max-time 120 --head ${FARMURL}/${mshasum} >/dev/null; then
|
|
115 |
+ if out=$(curl --fail --silent --max-time 120 --head ${FARMURL}/${mshasum}); then
|
|
116 | 116 |
# Yes, lets symlink it
|
117 | 117 |
# Yay for tons of dangling symlinks, but when this is done a rsync
|
118 | 118 |
# will run and transfer the whole shitload of links over to the morgue host.
|
119 | 119 |
ln -sf "${FARMBASE}/${LVL1}/${LVL2}/${mshasum}" "${mfile}"
|
120 | 120 |
else
|
121 |
- touch "${mfile}.nosnapshot" || true
|
|
121 |
+ echo $out > "${mfile}.nosnapshot" || true
|
|
122 | 122 |
fi
|
123 | 123 |
fi
|
124 | 124 |
done # for mfile in...
|