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:
parent
4bebca140d
commit
d8054d8672
|
@ -35,13 +35,13 @@ newer_than() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch_manifest() {
|
fetch_manifest() {
|
||||||
local MIRROR=$1
|
local mirror=$1
|
||||||
local manifest=$2
|
local manifest=$2
|
||||||
|
|
||||||
wget -O$manifest "$MIRROR"/manifest
|
wget -O$manifest "${mirror}/${BRANCH}.manifest" || wget -O$manifest "${mirror}/manifest"
|
||||||
|
|
||||||
if test $? -ne 0; then
|
if test $? -ne 0; then
|
||||||
echo "Couldn't fetch manifest from $MIRROR" >&2
|
echo "Couldn't fetch manifest from $mirror" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue