Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
2500138f
Commit
2500138f
authored
Jun 07, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup: copying via cls_cmd only supports absolute paths
parent
10d2af11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
ci-scripts/cls_cmd.py
ci-scripts/cls_cmd.py
+7
-4
No files found.
ci-scripts/cls_cmd.py
View file @
2500138f
...
...
@@ -118,11 +118,14 @@ class LocalCmd(Cmd):
def
getBefore
(
self
):
return
self
.
cp
.
stdout
def
copyin
(
self
,
scpIp
,
scpUser
,
scpPw
,
src
,
tgt
):
self
.
run
(
f'cp -r
{
src
}
{
tgt
}
'
)
def
copyin
(
self
,
src
,
tgt
,
recursive
=
False
):
if
src
[
0
]
!=
'/'
or
tgt
[
0
]
!=
'/'
:
raise
Exception
(
'support only absolute file paths!'
)
opt
=
'-r'
if
recursive
else
''
self
.
run
(
f'cp
{
opt
}
{
src
}
{
tgt
}
'
)
def
copyout
(
self
,
s
cpIp
,
scpUser
,
scpPw
,
src
,
tgt
):
self
.
run
(
f'cp -r
{
src
}
{
tgt
}
'
)
def
copyout
(
self
,
s
rc
,
tgt
,
recursive
=
False
):
self
.
copyin
(
src
,
tgt
,
recursive
)
class
RemoteCmd
(
Cmd
):
def
__init__
(
self
,
hostname
,
d
=
None
):
...
...
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