Skip to content

Commit 864afb3

Browse files
Release 10.3.0 preparation
1 parent 0a080fd commit 864afb3

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

kratos.gid/kratos.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Program>
33
<Name>Kratos</Name>
44
<Version>10.3.0</Version>
5-
<Production>0</Production>
5+
<Production>1</Production>
66
<ExecutableVersion />
77
<MinimumGiDVersion>16.1.10d</MinimumGiDVersion>
88
<MaximumGiDVersion>17.99.99d</MaximumGiDVersion>
@@ -46,4 +46,4 @@ Kratos is FREE because is devoted mainly to developers, researchers and students
4646
</Description>
4747

4848
</Program>
49-
<Production>1</Production></Infoproblemtype>
49+
</Infoproblemtype>

tools/prepare-release-files.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ def get_version_number(file_name):
1212

1313
if __name__ == "__main__":
1414

15-
# Open kratos.xml and set Production to 1
15+
# Open kratos.xml and set <Program><Production> to 1
1616
file_name = "../kratos.gid/kratos.xml"
1717
tree = ET.parse(file_name)
1818
root = tree.getroot()
19-
production = root.find('Production')
19+
# Find the Production element
20+
production = root.find('.//Production')
2021
if production is not None:
2122
production.text = '1'
2223
else:
23-
production = ET.SubElement(root, 'Production')
24+
production = ET.SubElement(root, 'Program', 'Production')
2425
production.text = '1'
2526
tree.write(file_name)
26-
27+
2728

2829
file_name = "../kratos.gid/kratos.spd"
2930
version = get_version_number(file_name)

0 commit comments

Comments
 (0)