Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
8fed7121
Commit
8fed7121
authored
Oct 29, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
action.py: simplify code.
parent
0cc0718e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
action.py
hdlmake/action/action.py
+2
-11
No files found.
hdlmake/action/action.py
View file @
8fed7121
...
...
@@ -55,16 +55,6 @@ class Action(object):
return
True
return
False
def
_add
(
self
,
new_module
):
"""Add the given new module if this is not already in the pool"""
assert
isinstance
(
new_module
,
Module
),
"Expect a Module instance"
if
self
.
__contains
(
new_module
):
return
if
new_module
.
isfetched
:
for
mod
in
new_module
.
submodules
():
self
.
_add
(
mod
)
self
.
manifests
.
append
(
new_module
)
def
new_module
(
self
,
parent
,
url
,
source
,
fetchto
):
"""Add new module to the pool.
...
...
@@ -75,7 +65,8 @@ class Action(object):
args
=
ModuleArgs
()
args
.
set_args
(
parent
,
url
,
source
,
fetchto
)
new_module
=
Module
(
args
,
self
)
self
.
_add
(
new_module
)
if
not
self
.
__contains
(
new_module
):
self
.
manifests
.
append
(
new_module
)
return
new_module
def
load_all_manifests
(
self
):
...
...
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