grab-merge: Only download files listed multiple times in REPORT once

This commit is contained in:
Manny Vindiola 2009-11-24 17:04:06 -05:00
parent 3eb8f13f35
commit 4b556e6d3b
2 changed files with 10 additions and 4 deletions

6
debian/changelog vendored
View File

@ -1,9 +1,13 @@
ubuntu-dev-tools (0.84) UNRELEASED; urgency=low
[ Michael Bienia ]
* update-maintainer: Remove the check for LP credentials again as this
script doesn't use the LP API.
-- Michael Bienia <geser@ubuntu.com> Sat, 21 Nov 2009 20:22:54 +0100
[ Manny Vindiola ]
* grab-merge: Only download files listed multiple times in REPORT once
-- Manny Vindiola <mannyv@gmail.com> Tue, 24 Nov 2009 17:03:08 -0500
ubuntu-dev-tools (0.83) lucid; urgency=low

View File

@ -69,9 +69,11 @@ else
}
for NAME in $(sed -n -e "/^ /p" REPORT); do
echo "Getting $NAME..."
URL="https://merges.ubuntu.com/$HASH/$MERGE/$NAME"
wget -q "$URL" || { echo "Error downloading $URL"; exit 1; }
if [ ! -f "$NAME" ]; then
echo "Getting $NAME..."
URL="https://merges.ubuntu.com/$HASH/$MERGE/$NAME"
wget -q "$URL" || { echo "Error downloading $URL"; exit 1; }
fi
done
fi
echo