Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate repo sync return code and stop in case of error #342

Open
wants to merge 1 commit into
base: halium-9.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ else
# Synchronize new new sources
repo sync -c -j$JOBS -q $REPO_ARGS

# Bail out here if repo sync has an error. Else this can lead to corrupted builds
# It is not enough to rely on previous repo sync by the user
if [ $? -ne 0 ]; then
echo "repo sync failed, check your device manifest. Stopping..."
exit 1
fi

# Refresh the device & common repositories so apks and jars are not copied
# For this to work, all apks and jars need to be removed from
# device/$VENDOR/$DEVICE/*proprietary-files*.txt and
Expand Down