mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
grab-merge: Output error message in case wget/rsync fails. Not tested for the rsync case!
This commit is contained in:
parent
4cc9db7a36
commit
57ba754a12
5
debian/changelog
vendored
5
debian/changelog
vendored
@ -24,7 +24,10 @@ ubuntu-dev-tools (0.73) karmic; urgency=low
|
||||
* requestsync:
|
||||
- Send a "Content-Type: text/plain; charset=UTF-8" header (LP: #246307).
|
||||
|
||||
-- Colin Watson <cjwatson@ubuntu.com> Mon, 27 Apr 2009 21:39:15 +0100
|
||||
[ Daniel Hahler ]
|
||||
* grab-merge: Output error message in case wget/rsync fails.
|
||||
|
||||
-- Daniel Hahler <ubuntu@thequod.de> Thu, 30 Apr 2009 22:18:38 +0200
|
||||
|
||||
ubuntu-dev-tools (0.72) jaunty; urgency=low
|
||||
|
||||
|
@ -57,15 +57,17 @@ else
|
||||
fi
|
||||
|
||||
if [ "$RSYNC" = "y" ]; then
|
||||
URL="merges.ubuntu.com:/srv/patches.ubuntu.com/merges/$HASH/$MERGE/"
|
||||
rsync --verbose --archive --progress --compress --delete \
|
||||
merges.ubuntu.com:/srv/patches.ubuntu.com/merges/$HASH/$MERGE/ .
|
||||
"$URL" . || { echo "Error while rsyncing $URL"; exit 1; }
|
||||
else
|
||||
rm -rf *
|
||||
wget -q https://merges.ubuntu.com/$HASH/$MERGE/REPORT
|
||||
|
||||
for NAME in $(sed -n -e "/^ /p" REPORT); do
|
||||
echo "Getting $NAME..."
|
||||
[ -f $NAME ] || wget -q https://merges.ubuntu.com/$HASH/$MERGE/$NAME
|
||||
URL="https://merges.ubuntu.com/$HASH/$MERGE/$NAME/foo"
|
||||
wget -q "$URL" || { echo "Error downloading $URL"; exit 1; }
|
||||
done
|
||||
fi
|
||||
echo
|
||||
|
Loading…
x
Reference in New Issue
Block a user