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
68c1b82f
Commit
68c1b82f
authored
Jun 14, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken SVN fetcher
parent
5baf592b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
svn.py
hdlmake/fetch/svn.py
+4
-7
No files found.
hdlmake/fetch/svn.py
View file @
68c1b82f
...
...
@@ -41,23 +41,20 @@ class Svn(Fetcher):
fetchto
=
module
.
fetchto
()
if
not
os
.
path
.
exists
(
fetchto
):
os
.
mkdir
(
fetchto
)
cur_dir
=
module
.
pool
.
top_module
.
path
os
.
chdir
(
fetchto
)
basename
=
path_utils
.
svn_basename
(
module
.
url
)
mod_path
=
os
.
path
.
join
(
fetchto
,
basename
)
cmd
=
"
svn checkout {0} "
+
module
.
basename
cmd
=
"
cd {0} && svn checkout {1} "
+
module
.
basename
()
if
module
.
revision
:
cmd
=
cmd
.
format
(
module
.
url
+
'@'
+
module
.
revision
)
cmd
=
cmd
.
format
(
fetchto
,
module
.
url
+
'@'
+
module
.
revision
)
else
:
cmd
=
cmd
.
format
(
module
.
url
)
cmd
=
cmd
.
format
(
fetchto
,
module
.
url
)
success
=
True
logging
.
info
(
"Checking out module
%
s"
,
mod_path
)
logging
.
debug
(
cmd
)
if
os
.
system
(
cmd
)
!=
0
:
success
=
False
os
.
chdir
(
cur_dir
)
module
.
isfetched
=
True
module
.
path
=
os
.
path
.
join
(
fetchto
,
module
.
basename
)
module
.
path
=
os
.
path
.
join
(
fetchto
,
module
.
basename
()
)
return
success
@
staticmethod
...
...
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