Changeset 2531:848a25871806
- Timestamp:
- 12/09/08 09:07:48 (5 weeks ago)
- Author:
- dunker@…
- Branch:
- default
- Tags:
- tip
- Message:
-
remove VERSION check
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2527
|
r2531
|
|
| 83 | 83 | writeconfig() |
| 84 | 84 | config.load() |
| 85 | | if not os.path.isfile(datadir + os.sep + 'VERSION'): |
| 86 | | f = open(datadir + os.sep + 'VERSION', 'w') |
| 87 | | f.write(ver) |
| 88 | | f.close() |
| 89 | | else: |
| 90 | | version = open(datadir + os.sep + 'VERSION', 'r').read() |
| 91 | | if version != ver: |
| 92 | | rlog(10, 'GOZERBOT', 'PLEASE RUN GOZERUPGRADE TO UPDATE YOUR GOZERDATA DIR TO VERSION %s' % ver) |
| 93 | | os._exit(1) |
| 94 | 85 | if opts.dodebug: |
| 95 | 86 | import gozerbot.generic |