--- mga-gnome/trunk/mga-gnome 2012/03/18 14:59:46 3557 +++ mga-gnome/trunk/mga-gnome 2012/03/18 15:05:26 3558 @@ -309,19 +309,19 @@ tries = 0 while tries < SLEEP_TIMES: tries += 1 + if tries > 1: time.sleep(SLEEP_REPEAT) try: # Download new tarball subprocess.check_call(['mgarepo', 'sync', '-d'], cwd=self.cwd) + # success, so exit loop break except subprocess.CalledProcessError, e: # mgarepo sync returns 1 if the tarball cannot be downloaded if e.returncode != 1: return False + else: + return False - if tries == SLEEP_TIMES: - return False - - time.sleep(SLEEP_REPEAT) try: # Check patches still apply