diff --git a/indra/develop.py b/indra/develop.py
index a8a7b63aa7f863238dd054388bf7b71b039c100f..0a2d3c5e52113ab37b3bd70f8ff719ae154c030d 100755
--- a/indra/develop.py
+++ b/indra/develop.py
@@ -596,7 +596,9 @@ def run(self, command, name=None, retry_on=None, retries=1):
             print "develop.py tries to run:", command
             ret = subprocess.call(command, executable=path)
             print "got ret", ret, "from", command
-            if ret:
+            if ret == 0:
+                break
+            else:
                 error = 'exited with status %d' % ret
                 if retry_on is not None and retry_on == ret:
                     print "Retrying... the command %r %s" % (name, error)