Skip to content

Commit 28453d0

Browse files
authored
Include more MSL packages in the cache (#9648)
* Include ModelicaReference since the documentation can be useful * Include ObsoleteModelica4 in case of conversion scripts
1 parent 6814223 commit 28453d0

File tree

4 files changed

+47
-2
lines changed

4 files changed

+47
-2
lines changed

libraries/Makefile.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
STAMP=20221031131604.stamp
1+
STAMP=20221102135323.stamp

libraries/install-index.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
}
6868
}
6969
},
70+
"ModelicaReference": {
71+
"versions": {
72+
"4.0.0+maint.om": {
73+
"path": "ModelicaReference",
74+
"sha": "74d056ef1b4a89463408ba70fc4ea4db83a6296f",
75+
"support": "fullSupport",
76+
"version": "4.0.0+maint.om",
77+
"zipfile": "https://github.com/OpenModelica/OpenModelica-ModelicaStandardLibrary/archive/74d056ef1b4a89463408ba70fc4ea4db83a6296f.zip"
78+
}
79+
}
80+
},
7081
"ModelicaServices": {
7182
"versions": {
7283
"4.0.0+maint.om": {
@@ -85,6 +96,20 @@
8596
"zipfile": "https://github.com/OpenModelica/OpenModelica-ModelicaStandardLibrary/archive/74d056ef1b4a89463408ba70fc4ea4db83a6296f.zip"
8697
}
8798
}
99+
},
100+
"ObsoleteModelica4": {
101+
"versions": {
102+
"4.0.0+maint.om": {
103+
"path": "ObsoleteModelica4.mo",
104+
"sha": "74d056ef1b4a89463408ba70fc4ea4db83a6296f",
105+
"support": "fullSupport",
106+
"uses": {
107+
"Modelica": "4.0.0"
108+
},
109+
"version": "4.0.0+maint.om",
110+
"zipfile": "https://github.com/OpenModelica/OpenModelica-ModelicaStandardLibrary/archive/74d056ef1b4a89463408ba70fc4ea4db83a6296f.zip"
111+
}
112+
}
88113
}
89114
}
90115
}

libraries/install-index.mos

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,18 @@ if not installPackage(ModelicaServices, "4.0.0+maint.om", exactMatch=true) then
5151
else
5252
print("Installed: ModelicaServices 4.0.0+maint.om\n");
5353
end if;
54-
system("touch .openmodelica/20221031104147.stamp")
54+
if not installPackage(ObsoleteModelica4, "4.0.0+maint.om", exactMatch=true) then
55+
print("ObsoleteModelica4 4.0.0+maint.om failed.\n");
56+
print(getErrorString());
57+
exit(1);
58+
else
59+
print("Installed: ObsoleteModelica4 4.0.0+maint.om\n");
60+
end if;
61+
if not installPackage(ModelicaReference, "4.0.0+maint.om", exactMatch=true) then
62+
print("ModelicaReference 4.0.0+maint.om failed.\n");
63+
print(getErrorString());
64+
exit(1);
65+
else
66+
print("Installed: ModelicaReference 4.0.0+maint.om\n");
67+
end if;
68+
system("touch .openmodelica/20221102135323.stamp")

libraries/update.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
"ModelicaServices": {
7474
"4.0.0+maint.om"
7575
},
76+
"ObsoleteModelica4": { # Used by MSL 3 to 4 conversion scripts
77+
"4.0.0+maint.om"
78+
},
79+
"ModelicaReference": {
80+
"4.0.0+maint.om"
81+
}
7682
}
7783
newdata = {}
7884
for key in data["libs"].keys():

0 commit comments

Comments
 (0)