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
85c8abbf
Commit
85c8abbf
authored
Nov 30, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
less verbose
parent
7b040aae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
check_versions.py
check_versions.py
+5
-4
No files found.
check_versions.py
View file @
85c8abbf
...
@@ -82,7 +82,7 @@ def get_versions_from_target_quick(addr,tdir):
...
@@ -82,7 +82,7 @@ def get_versions_from_target_quick(addr,tdir):
return
remote_list
return
remote_list
def
get_version_from_git
(
path
,
vfile
):
def
get_version_from_git
(
path
,
vfile
):
print
(
path
)
#
print(path)
cwd
=
os
.
getcwd
()
cwd
=
os
.
getcwd
()
os
.
chdir
(
cwd
+
"/"
+
path
)
os
.
chdir
(
cwd
+
"/"
+
path
)
...
@@ -135,6 +135,7 @@ def deep_analysis(local,remote):
...
@@ -135,6 +135,7 @@ def deep_analysis(local,remote):
update_list
=
update_list
+
" bitbake "
+
pl
+
" -c target_scp -f
\n
"
update_list
=
update_list
+
" bitbake "
+
pl
+
" -c target_scp -f
\n
"
print
(
recstr
)
print
(
recstr
)
if
not
update_list
==
""
:
print
(
"
\n
To sync the software on the target run:
\n
"
+
update_list
)
print
(
"
\n
To sync the software on the target run:
\n
"
+
update_list
)
# all exceptions in one place
# all exceptions in one place
...
@@ -201,7 +202,7 @@ print("Software/firmware versions check for target "+bcolors.BOLDWHITE+user+"@"+
...
@@ -201,7 +202,7 @@ print("Software/firmware versions check for target "+bcolors.BOLDWHITE+user+"@"+
print
(
bcolors
.
BOLDWHITE
+
"=== Read versions from the target ==="
+
bcolors
.
ENDC
)
print
(
bcolors
.
BOLDWHITE
+
"=== Read versions from the target ==="
+
bcolors
.
ENDC
)
target_list
=
get_versions_from_target_quick
(
user
+
"@"
+
ip
,
target_dir
)
target_list
=
get_versions_from_target_quick
(
user
+
"@"
+
ip
,
target_dir
)
print
(
target_list
)
#
print(target_list)
print
(
bcolors
.
BOLDWHITE
+
"=== Read local versions ==="
+
bcolors
.
ENDC
)
print
(
bcolors
.
BOLDWHITE
+
"=== Read local versions ==="
+
bcolors
.
ENDC
)
with
open
(
local_project_list
)
as
data_file
:
with
open
(
local_project_list
)
as
data_file
:
...
@@ -223,7 +224,7 @@ for p,v in Projects.items():
...
@@ -223,7 +224,7 @@ for p,v in Projects.items():
else
:
else
:
raise
Exception
(
"Unknown error"
)
raise
Exception
(
"Unknown error"
)
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