autoupdater: try URL ${BRANCH}.manifest before manifest

This will allow storing different manifests for multiple branches in a single
directory.
This commit is contained in:
Matthias Schiffer 2014-07-14 23:10:27 +02:00
parent 4bebca140d
commit d8054d8672
1 changed files with 3 additions and 3 deletions

View File

@ -35,13 +35,13 @@ newer_than() {
}
fetch_manifest() {
local MIRROR=$1
local mirror=$1
local manifest=$2
wget -O$manifest "$MIRROR"/manifest
wget -O$manifest "${mirror}/${BRANCH}.manifest" || wget -O$manifest "${mirror}/manifest"
if test $? -ne 0; then
echo "Couldn't fetch manifest from $MIRROR" >&2
echo "Couldn't fetch manifest from $mirror" >&2
return 1
fi