diff --git a/build.sh b/build.sh index 50e9b96f..33d50c1d 100755 --- a/build.sh +++ b/build.sh @@ -21,11 +21,14 @@ if [ "$SKIPMIRRORCHECK" = "yes" ]; then echo " ... WARNING: skipping mirror check" else echo " ... checking your mirror" - make mirrorcheck-binary - make mirrorcheck-source - if [ $? -gt 0 ]; then - echo "ERROR: Your mirror has a problem, please correct it." >&2 - exit 1 + RET="" + make mirrorcheck-binary || RET=$? + if [ -z "$RET" ] && [ -z "$NOSOURCE" ]; then + make mirrorcheck-source || RET=$? + fi + if [ "$RET" ]; then + echo "ERROR: Your mirror has a problem, please correct it." >&2 + exit 1 fi fi echo " ... selecting packages to include"