Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel393
Commits
ef9290b6
Commit
ef9290b6
authored
Apr 10, 2026
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix legacy scp mode in version check script
parent
13c256b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
.gitignore
.gitignore
+1
-0
check_versions.py
check_versions.py
+8
-4
No files found.
.gitignore
View file @
ef9290b6
...
@@ -12,3 +12,4 @@ projects.json
...
@@ -12,3 +12,4 @@ projects.json
/scripts/.settings
/scripts/.settings
/fpga-elphel
/fpga-elphel
!/fpga-elphel/eclipse_workspace_setup
!/fpga-elphel/eclipse_workspace_setup
__pycache__/
check_versions.py
View file @
ef9290b6
...
@@ -65,8 +65,14 @@ def get_versions_from_target_quick(addr,tdir):
...
@@ -65,8 +65,14 @@ def get_versions_from_target_quick(addr,tdir):
ldir
=
os
.
path
.
basename
(
tdir
)
ldir
=
os
.
path
.
basename
(
tdir
)
if
os
.
path
.
isdir
(
ldir
):
if
os
.
path
.
isdir
(
ldir
):
shout
(
"rm -rf "
+
ldir
)
shout
(
"rm -rf "
+
ldir
)
shout
(
"scp -r "
+
addr
+
":"
+
tdir
+
" ."
)
scp_src
=
addr
+
":"
+
tdir
scp_cmd_legacy
=
"scp -O -r "
+
scp_src
+
" ."
scp_ret
=
subprocess
.
call
(
scp_cmd_legacy
,
shell
=
True
)
if
scp_ret
!=
0
:
raise
Exception
(
"Failed to copy versions from target via scp -O. Check ssh/scp access to "
+
addr
)
if
not
os
.
path
.
isdir
(
ldir
):
raise
Exception
(
"Failed to read target versions: local directory '"
+
ldir
+
"' was not created"
)
remote_list
=
[]
remote_list
=
[]
...
@@ -230,5 +236,3 @@ local_list = sorted(local_list, key=lambda x: x[0])
...
@@ -230,5 +236,3 @@ local_list = sorted(local_list, key=lambda x: x[0])
#print(local_list)
#print(local_list)
deep_analysis
(
local_list
,
target_list
)
deep_analysis
(
local_list
,
target_list
)
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