print 'Trying to delete %s/%s' % (target, package)
sys.stdout.flush()
build.delete_package(target, package)
- build.create_link_pac(target, link_pkg, \
- target, package)
- print ' [_link] %s/%s -> %s/%s' % (target, link_pkg, target, package)
+ if link_pkg in build.get_package_list(target):
+ build.create_link_pac(target, link_pkg, \
+ target, package)
+ print ' [_link] %s/%s -> %s/%s' % (target, link_pkg, target, package)
def compare_with_manifest(self, todo_dict, manifest_packages):
#TODO: If we have changed git path???
if os.getenv('SR_SYNC_PROJECTS'):
enabled_projects = ast.literal_eval(os.getenv('SR_SYNC_PROJECTS'))
count = 0
- for project in enabled_projects[profile]:
+ for project in enabled_projects.get(profile):
print project
if project.get('obs-sync') == 'Yes':
data={}
print " 0) Get meta, config, package list from remote [ %s ]" % (profile)
remote_meta = remote_build.get_meta(profile)
config = remote_build.get_project_config(profile)
- remote_package_list = [ p for p in remote_build.get_sourceinfo_list(profile) ]
+ sourceinfo = remote_build.get_sourceinfo_list(profile)
+ remote_package_list = [ p for p in sourceinfo if len(sourceinfo[p]) == 0 ]
print '\nGet Package List from Remote Done at %s' % (str(datetime.now()))
if 'patchinfo' in remote_package_list:
remote_package_list.remove('patchinfo')