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
bf54425e
Commit
bf54425e
authored
13 years ago
by
Pawel Szostek
Browse files
Options
Downloads
Patches
Plain Diff
Fixed local manifests' searching
parent
d251326a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synthesis/configparser.py
+3
-0
3 additions, 0 deletions
synthesis/configparser.py
synthesis/module.py
+7
-4
7 additions, 4 deletions
synthesis/module.py
with
10 additions
and
4 deletions
synthesis/configparser.py
+
3
−
0
View file @
bf54425e
...
...
@@ -173,6 +173,9 @@ class ConfigParser(object):
raise RuntimeError(
"
Config file should be added only once
"
)
def add_arbitrary_code(self, code):
self.arbitrary_code = code
def parse(self):
options = {}
ret = {}
...
...
This diff is collapsed.
Click to expand it.
synthesis/module.py
+
7
−
4
View file @
bf54425e
...
...
@@ -21,6 +21,7 @@ class Module(object):
self
.
options
[
"
files
"
]
=
files
if
manifest
!=
None
and
fetchto
==
None
:
options
[
"
fetchto
"
]
=
os
.
path
.
dirname
(
manifest
.
path
)
if
manifest
!=
None
and
url
==
None
and
path
==
None
:
self
.
options
[
"
url
"
]
=
os
.
path
.
dirname
(
manifest
.
path
)
self
.
options
[
"
path
"
]
=
os
.
path
.
dirname
(
manifest
.
path
)
...
...
@@ -32,7 +33,7 @@ class Module(object):
self
.
options
[
"
path
"
]
=
path
self
.
options
[
"
url
"
]
=
url
if
manifest
==
None
:
if
self
.
options
[
"
path
"
]
!=
None
:
if
path
!=
None
:
self
.
options
[
"
manifest
"
]
=
self
.
search_for_manifest
()
else
:
self
.
options
[
"
manifest
"
]
=
None
...
...
@@ -43,6 +44,7 @@ class Module(object):
self
.
options
[
"
isfetched
"
]
=
True
else
:
self
.
options
[
"
isfetched
"
]
=
isfetched
if
source
!=
None
:
if
source
not
in
[
"
local
"
,
"
svn
"
,
"
git
"
]:
raise
ValueError
(
"
Inproper source:
"
+
source
)
...
...
@@ -81,9 +83,10 @@ class Module(object):
"""
p
.
vprint
(
"
Looking for manifest in
"
+
self
.
path
)
for
filename
in
os
.
listdir
(
self
.
path
):
if
filename
==
"
manifest.py
"
and
not
os
.
path
.
isdir
(
filename
):
manifest
=
Manifest
(
path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
self
.
path
,
filename
)))
return
manifest
if
filename
==
"
manifest.py
"
or
filename
==
"
Manifest.py
"
:
if
not
os
.
path
.
isdir
(
filename
):
manifest
=
Manifest
(
path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
self
.
path
,
filename
)))
return
manifest
# no manifest file found
return
None
...
...
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