/[soft]/mga-gnome/trunk/mga-gnome
ViewVC logotype

Diff of /mga-gnome/trunk/mga-gnome

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6247 by ovitters, Tue Oct 16 08:08:09 2012 UTC revision 6248 by ovitters, Tue Oct 16 14:57:16 2012 UTC
# Line 54  import requests Line 54  import requests
54    
55  SLEEP_INITIAL=180  SLEEP_INITIAL=180
56  SLEEP_REPEAT=30  SLEEP_REPEAT=30
57  SLEEP_TIMES=20  SLEEP_TIMES=30
58    
59  re_majmin = re.compile(r'^([0-9]+\.[0-9]+).*')  re_majmin = re.compile(r'^([0-9]+\.[0-9]+).*')
60  re_version = re.compile(r'([-.]|\d+|[^-.\d]+)')  re_version = re.compile(r'([-.]|\d+|[^-.\d]+)')
# Line 337  class SpecFile(object): Line 337  class SpecFile(object):
337          tries = 0          tries = 0
338          while tries < SLEEP_TIMES:          while tries < SLEEP_TIMES:
339              tries += 1              tries += 1
340              if tries > 1: time.sleep(SLEEP_REPEAT)              if tries > 1: time.sleep(SLEEP_REPEAT * 2 ** (tries // 10))
341              try:              try:
342                  # Download new tarball                  # Download new tarball
343                  subprocess.check_call(['mgarepo', 'sync', '-d'], cwd=self.cwd)                  subprocess.check_call(['mgarepo', 'sync', '-d'], cwd=self.cwd)

Legend:
Removed from v.6247  
changed lines
  Added in v.6248

  ViewVC Help
Powered by ViewVC 1.1.30