Loading check_versions.py +5 −4 Original line number Original line Diff line number Diff line Loading @@ -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) Loading Loading @@ -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("\nTo sync the software on the target run:\n"+update_list) print("\nTo sync the software on the target run:\n"+update_list) # all exceptions in one place # all exceptions in one place Loading Loading @@ -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: Loading @@ -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) Loading Loading
check_versions.py +5 −4 Original line number Original line Diff line number Diff line Loading @@ -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) Loading Loading @@ -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("\nTo sync the software on the target run:\n"+update_list) print("\nTo sync the software on the target run:\n"+update_list) # all exceptions in one place # all exceptions in one place Loading Loading @@ -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: Loading @@ -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) Loading