Skip to content

Commit

Permalink
Update with DFHack fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PeridexisErrant committed Sep 24, 2019
1 parent aeedd03 commit 4f63e1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions base/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.44.12-r08
- fixed DFHack, I hope
- updated Vettlingr graphics to version 1.2

0.44.12-r07
- updated Dwarf Therapist to v41.1.0
- added Vettlingr graphics
Expand Down
6 changes: 4 additions & 2 deletions starterpack/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ def pack_ver(*, warn=True):
"""Return the current version string of the created pack."""
with open('base/changelog.txt') as f:
ver = f.readline().strip()
if warn and not ver.startswith(df_ver()):
print('ERROR: pack version must start with DF version.')
if warn and not ver.startswith(df_ver()):
print('ERROR: pack version must start with DF version.')
for _ in range(100):
assert not f.readline().startswith(ver), ver + " in changelog twice"
return ver


Expand Down

0 comments on commit 4f63e1d

Please sign in to comment.