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
4
Merge Requests
4
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
65b24a72
Commit
65b24a72
authored
Jul 22, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable the fetch --update option
parent
f7aee235
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
__main__.py
hdlmake/__main__.py
+0
-1
fetch.py
hdlmake/action/fetch.py
+1
-1
module_pool.py
hdlmake/module_pool.py
+3
-6
No files found.
hdlmake/__main__.py
View file @
65b24a72
...
...
@@ -219,7 +219,6 @@ def _get_parser():
make_remote
=
subparsers
.
add_parser
(
"make-remote"
,
help
=
"generate remote synthesis makefile"
)
fetch
=
subparsers
.
add_parser
(
"fetch"
,
help
=
"fetch and/or update remote modules listed in Manifest"
)
fetch
.
add_argument
(
"--update"
,
help
=
"force updating of the fetched modules"
,
default
=
False
,
action
=
"store_true"
)
clean
=
subparsers
.
add_parser
(
"clean"
,
help
=
"remove all modules fetched for direct and indirect children of this module"
)
listmod
=
subparsers
.
add_parser
(
"list-mods"
,
help
=
"List all modules together with their files"
)
listmod
.
add_argument
(
"--with-files"
,
help
=
"list modules together with their files"
,
default
=
False
,
action
=
"store_true"
,
dest
=
"withfiles"
)
...
...
hdlmake/action/fetch.py
View file @
65b24a72
...
...
@@ -32,7 +32,7 @@ class FetchModules(Action):
top_module
=
self
.
modules_pool
.
get_top_module
()
logging
.
info
(
"Fetching needed modules."
)
os
.
system
(
top_module
.
fetch_pre_cmd
)
self
.
modules_pool
.
fetch_all
(
unfetched_only
=
not
self
.
options
.
update
)
self
.
modules_pool
.
fetch_all
()
logging
.
debug
(
str
(
self
.
modules_pool
))
os
.
system
(
top_module
.
fetch_post_cmd
)
logging
.
info
(
"All modules fetched."
)
hdlmake/module_pool.py
View file @
65b24a72
...
...
@@ -173,18 +173,15 @@ class ModulePool(list):
new_modules
.
extend
(
module
.
git_submodules
)
return
new_modules
def
fetch_all
(
self
,
unfetched_only
=
False
):
def
fetch_all
(
self
):
"""Fetch recursively all modules"""
fetch_queue
=
[
m
for
m
in
self
]
while
len
(
fetch_queue
)
>
0
:
cur_mod
=
fetch_queue
.
pop
()
new_modules
=
[]
if
unfetched_only
:
if
cur_mod
.
isfetched
:
new_modules
=
cur_mod
.
submodules
()
else
:
new_modules
=
self
.
_fetch
(
cur_mod
)
if
cur_mod
.
isfetched
:
new_modules
=
cur_mod
.
submodules
()
else
:
new_modules
=
self
.
_fetch
(
cur_mod
)
for
mod
in
new_modules
:
...
...
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