#do repo init
cmd = 'repo init' + repo_init_arg
print 'repo init cmd: %s' %cmd
- subprocess.call(cmd, stdout=sys.stdout,stderr=sys.stderr, shell=True)
+ ret = subprocess.call(cmd, stdout=sys.stdout,stderr=sys.stderr, shell=True)
+ if ret != 0:
+ print '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
+ print 'repo init failed'
+ print '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
+ return 1
#do repo sync
print 'do repo sync'
cmd = 'repo sync'
- subprocess.call(cmd, stdout=sys.stdout,stderr=sys.stderr, shell=True)
+ ret = subprocess.call(cmd, stdout=sys.stdout,stderr=sys.stderr, shell=True)
+ if ret != 0:
+ print '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
+ print 'repo sync failed'
+ print '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
+ return 1
def ___get_index_file_name(repo,arch):
profile_list=os.listdir(BUILD_ROOT+'/local/repos/')