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
fda7e391
Commit
fda7e391
authored
Mar 23, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a warning to list-files when some modules have not been fetched
parent
de2ec00d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
list_files.py
hdlmake/action/list_files.py
+6
-3
No files found.
hdlmake/action/list_files.py
View file @
fda7e391
...
...
@@ -20,13 +20,16 @@
# along with Hdlmake. If not, see <http://www.gnu.org/licenses/>.
from
.action
import
Action
import
logging
class
ListFiles
(
Action
):
def
run
(
self
):
unfetched_modules
=
False
files_str
=
[]
for
m
in
self
.
modules_pool
:
if
not
m
.
isfetched
:
continue
files_str
.
append
(
self
.
options
.
delimiter
.
join
([
f
.
path
for
f
in
m
.
files
]))
unfetched_modules
=
True
else
:
files_str
.
append
(
self
.
options
.
delimiter
.
join
([
f
.
path
for
f
in
m
.
files
]))
if
unfetched_modules
:
logging
.
warning
(
"Some of the modules have not been fetched!"
)
print
(
" "
.
join
(
files_str
))
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