Skip to content

Commit

Permalink
core manifest url hackery
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed May 14, 2012
1 parent 3bce247 commit ac7991b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,12 @@ then
repo init -u $SYNC_PROTO://github.com/CyanogenMod/android.git -b $REPO_BRANCH
else
cd $REPO_BRANCH
# temp hack for turl
repo init -u $SYNC_PROTO://github.com/CyanogenMod/android.git -b $REPO_BRANCH
if [ -d ".repo/manifests" ]
then
cd .repo/manifests
git reset --hard
cd ../..
fi
fi

# make sure ccache is in PATH
Expand All @@ -101,6 +105,11 @@ then
fi

cp $WORKSPACE/hudson/$REPO_BRANCH.xml .repo/local_manifest.xml
if [ ! -z "$CORE_MANIFEST_URL" ]
then
curl $CORE_MANIFEST_URL > .repo/manifests/default.xml
check_result "CORE_MANIFEST_URL: $CORE_MANIFEST_URL download failed."
fi

echo Syncing...
repo sync -d > /dev/null 2> /tmp/jenkins-sync-errors.txt
Expand Down

0 comments on commit ac7991b

Please sign in to comment.