Changeset 14045 in genesis
- Timestamp:
- Feb 3, 2018, 3:14:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r14035 r14045 1496 1496 refresh_rate = 5 1497 1497 output = "[INFO] Updating subverion, please wait...\n" 1498 old_version = subprocess.Popen([SVNVERSION, '-c', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0] 1498 1499 output += subprocess.Popen([SVN, 'cleanup', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0] 1499 1500 output += subprocess.Popen([SVN, 'up', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0] 1500 try: 1501 generate_static(CACHE_DIR, False) 1502 except: 1503 output += traceback.format_exc() 1504 refresh_rate = 120 1505 pass 1501 new_version = subprocess.Popen([SVNVERSION, '-c', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0] 1502 if old_version != new_version: 1503 try: 1504 generate_static(CACHE_DIR, False) 1505 except: 1506 output += traceback.format_exc() 1507 refresh_rate = 120 1508 pass 1506 1509 output += "[INFO] All done, redirecting in %s seconds" % refresh_rate 1507 1510 response_headers += [
Note:
See TracChangeset
for help on using the changeset viewer.