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
4ca4b16a
Commit
4ca4b16a
authored
May 24, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detected a piece of code that is not making any job
parent
9cf5b959
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
action.py
hdlmake/action/action.py
+0
-17
No files found.
hdlmake/action/action.py
View file @
4ca4b16a
...
...
@@ -108,9 +108,6 @@ class Action(list):
if
not
self
.
top_module
:
self
.
top_module
=
new_module
new_module
.
parse_manifest
()
url
=
self
.
_guess_origin
(
self
.
top_module
.
path
)
if
url
:
self
.
top_module
.
url
=
url
return
new_module
def
_check_manifest_variable_is_set
(
self
,
name
):
...
...
@@ -213,20 +210,6 @@ class Action(list):
return
True
return
False
def
_guess_origin
(
self
,
path
):
"""Guess origin (git, svn, local) of a module at given path"""
cwd
=
self
.
top_module
.
path
try
:
os
.
chdir
(
path
)
url
=
shell
.
run
(
"git config --get remote.origin.url"
)
if
not
url
:
# try svn
return
shell
.
run
(
"svn info | grep 'Repository Root' | "
+
"awk '{print $NF}'"
)
else
:
return
url
finally
:
os
.
chdir
(
cwd
)
def
__str__
(
self
):
"""Cast the module list as a list of strings"""
return
str
([
str
(
m
)
for
m
in
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