Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Commits
ec053df9
Commit
ec053df9
authored
5 years ago
by
Rolf Bork
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix: Had some tabs instead of spaces which would result in
inconsistent tab/space indentation errors when run.
parent
07ef60e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/epics/util/post_build_script.py
+10
-10
10 additions, 10 deletions
src/epics/util/post_build_script.py
with
10 additions
and
10 deletions
src/epics/util/post_build_script.py
+
10
−
10
View file @
ec053df9
...
...
@@ -184,7 +184,7 @@ def parse_block(data_lines,line_number,reference_name):
#Search the file (i.e. data_lines) for the names in order
for
name
in
reference_name_tree
:
for
current_line_count
in
range
(
line_number
,
len
(
data_lines
)):
current_line
=
data_lines
[
current_line_count
]
current_line
=
data_lines
[
current_line_count
]
if
(
current_line
.
split
()[
0
]
==
'
Name
'
):
if
(
current_line
.
split
(
'"'
)[
1
]
==
name
):
break
...
...
@@ -208,12 +208,12 @@ def parse_block(data_lines,line_number,reference_name):
while
data_lines
[
current_line_count
].
split
()[
-
1
]
!=
'
{
'
:
current_line_count
+=
1
if
current_line_count
==
len
(
data_lines
):
sys
.
stderr
.
write
(
"
ERROR: For part:
"
+
reference_name
+
"
\n
"
)
sys
.
stderr
.
write
(
"
Could not find the proper library reference.
\n
"
)
sys
.
stderr
.
write
(
"
Your model may be referencing a different source model than what is in the current library path.
\n\n
"
)
sys
.
stderr
.
write
(
"
Current path is:
"
+
rcg_lib_path
+
"
\n\n
"
)
sys
.
stderr
.
write
(
"
Exiting
\n
"
)
sys
.
exit
(
1
)
sys
.
stderr
.
write
(
"
ERROR: For part:
"
+
reference_name
+
"
\n
"
)
sys
.
stderr
.
write
(
"
Could not find the proper library reference.
\n
"
)
sys
.
stderr
.
write
(
"
Your model may be referencing a different source model than what is in the current library path.
\n\n
"
)
sys
.
stderr
.
write
(
"
Current path is:
"
+
rcg_lib_path
+
"
\n\n
"
)
sys
.
stderr
.
write
(
"
Exiting
\n
"
)
sys
.
exit
(
1
)
new_block
,
scratch
=
parse_block
(
data_lines
,
current_line_count
,
None
)
if
description_present
:
...
...
@@ -406,9 +406,9 @@ def read_tree(node,name_so_far):
for
before
,
after
in
custom_subs
:
if
not
'
--name
'
in
before
:
temp_lines
[
k
]
=
string
.
replace
(
temp_lines
[
k
],
before
,
after
)
if
quiet_mode
==
False
:
print
(
adl_target_name
)
output_medm_file
=
open
(
adl_target_name
,
'
w
'
)
if
quiet_mode
==
False
:
print
(
adl_target_name
)
output_medm_file
=
open
(
adl_target_name
,
'
w
'
)
for
k
in
range
(
len
(
temp_lines
)):
output_medm_file
.
write
(
temp_lines
[
k
])
break
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment