Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hdlmake
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Hdlmake
Commits
00d31f79
Commit
00d31f79
authored
13 years ago
by
Paweł Szostek
Browse files
Options
Downloads
Patches
Plain Diff
dep_solver: slightly clear the code
parent
9cd290e5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dep_solver.py
+3
-5
3 additions, 5 deletions
src/dep_solver.py
with
3 additions
and
5 deletions
src/dep_solver.py
+
3
−
5
View file @
00d31f79
...
@@ -53,9 +53,8 @@ class DependencySolver:
...
@@ -53,9 +53,8 @@ class DependencySolver:
def
__find_provider_vhdl_file
(
self
,
files
,
req
):
def
__find_provider_vhdl_file
(
self
,
files
,
req
):
for
f
in
files
:
for
f
in
files
:
if
f
.
dep_provides
:
if
req
in
f
.
dep_provides
:
if
req
in
f
.
dep_provides
:
return
f
return
f
return
None
return
None
...
@@ -136,8 +135,7 @@ class DependencySolver:
...
@@ -136,8 +135,7 @@ class DependencySolver:
for
req
in
f
.
dep_requires
:
for
req
in
f
.
dep_requires
:
pf
=
self
.
__find_provider_vhdl_file
([
file
for
file
in
fset
if
isinstance
(
file
,
VHDLFile
)],
req
)
pf
=
self
.
__find_provider_vhdl_file
([
file
for
file
in
fset
if
isinstance
(
file
,
VHDLFile
)],
req
)
if
not
pf
:
if
not
pf
:
p
.
rawprint
(
"
Missing dependency in file
"
+
str
(
f
)
+
"
:
"
+
req
[
0
]
+
'
.
'
+
req
[
1
])
p
.
rawprint
(
"
ERROR: Missing dependency in file
"
+
str
(
f
)
+
"
:
"
+
req
[
0
]
+
'
.
'
+
req
[
1
])
quit
()
else
:
else
:
p
.
vprint
(
"
-->
"
+
pf
.
path
);
p
.
vprint
(
"
-->
"
+
pf
.
path
);
if
pf
.
path
!=
f
.
path
:
if
pf
.
path
!=
f
.
path
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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