Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenGEODE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
OpenGEODE
Commits
d17b8e39
Commit
d17b8e39
authored
Oct 04, 2020
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bugs
parent
2f830229
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
opengeode/AdaGenerator.py
opengeode/AdaGenerator.py
+2
-1
No files found.
opengeode/AdaGenerator.py
View file @
d17b8e39
...
...
@@ -1269,7 +1269,8 @@ package body {process_name}_RI is''']
ri_stub
.
write
(
"
\n
"
.
join
(
format_ada_code
(
ri_stub_ads
)).
encode
(
'latin1'
))
stub_adb
=
f'
{
process_name
.
lower
()
}
_ri.adb'
# don't overwrite adb as it may contain user code
if
not
os
.
path
.
exists
(
stub_adb
):
# also don't generate if there are no RI in the system
if
not
os
.
path
.
exists
(
stub_adb
)
and
len
(
ri_stub_adb
)
>
2
:
with
open
(
stub_adb
,
"wb"
)
as
ri_stub
:
ri_stub
.
write
(
"
\n
"
.
join
(
format_ada_code
(
ri_stub_adb
)).
encode
(
'latin1'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment