Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
43abaeb8
Commit
43abaeb8
authored
Nov 19, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
versions inside files
parent
016480bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
check-versions_1.0.bb
recipes-help/check-versions/check-versions_1.0.bb
+8
-4
No files found.
recipes-help/check-versions/check-versions_1.0.bb
View file @
43abaeb8
...
@@ -51,7 +51,7 @@ python do_run(){
...
@@ -51,7 +51,7 @@ python do_run(){
tmp_list = tmp_str.split()
tmp_list = tmp_str.split()
for elem in tmp_list:
for elem in tmp_list:
remote_list.append(
elem.split("-")
)
remote_list.append(
[elem,command_over_ssh(d,"'cat "+pdir+"/"+elem+"'")]
)
else:
else:
raise Exception("\033[1;37m"+user+"@"+ip+":"+pdir+": No such file or directory\033[0m")
raise Exception("\033[1;37m"+user+"@"+ip+":"+pdir+": No such file or directory\033[0m")
...
@@ -71,7 +71,11 @@ python do_run(){
...
@@ -71,7 +71,11 @@ python do_run(){
if (os.path.isdir(tmp_path+"/"+imagedir+pdir)):
if (os.path.isdir(tmp_path+"/"+imagedir+pdir)):
for root,dir,files in os.walk(tmp_path+"/"+imagedir+pdir):
for root,dir,files in os.walk(tmp_path+"/"+imagedir+pdir):
for name in files:
for name in files:
built_pv = name.split("-")
with open(tmp_path+"/"+imagedir+pdir+"/"+name, 'r') as content_file:
built_v = content_file.read()
built_pv = [name,built_v.strip()]
#get source version
#get source version
tmp_v = version_update(tmp_path,"VERSION",0)+"."+version_update(tmp_path,"VERSION",1)+"."+version_update(tmp_path,"VERSION",2)
tmp_v = version_update(tmp_path,"VERSION",0)+"."+version_update(tmp_path,"VERSION",1)+"."+version_update(tmp_path,"VERSION",2)
source_pv = [built_pv[0],tmp_v]
source_pv = [built_pv[0],tmp_v]
...
@@ -85,9 +89,9 @@ python do_run(){
...
@@ -85,9 +89,9 @@ python do_run(){
if remote_pv[0]==built_pv[0]:
if remote_pv[0]==built_pv[0]:
print("Names match")
print("Names match")
if remote_pv[1]==built_pv[1]:
if remote_pv[1]==built_pv[1]:
print(" versions match: "+
name
)
print(" versions match: "+
remote_pv[1]
)
else:
else:
bb.warn("project "+k+": package versions do not match, local: "+
name+" vs remote: "+remote_pv[0]+"-
"+remote_pv[1])
bb.warn("project "+k+": package versions do not match, local: "+
built_pv[1]+" vs remote:
"+remote_pv[1])
else:
else:
bb.warn("project "+k+" is not built or too old")
bb.warn("project "+k+" is not built or too old")
#raise Exception("\033[1;37mproject is not built\033[0m")
#raise Exception("\033[1;37mproject is not built\033[0m")
...
...
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