except Exception as err:
continue
if not sdk_profile:
- ret_error += 'ERROR: No "profile" tag in property file(tizen-manifest.xml)'
+ sdk_profile = ''
+ # ret_error += 'ERROR: No "profile" tag in property file(tizen-manifest.xml)'
print 'TIZEN-MANIFEST.XML (%s) (%s)' % (sdk_package, sdk_version)
return {'sdk_package': sdk_package, 'sdk_version': sdk_version, 'sdk_profile': sdk_profile, 'ret_error': ret_error}
project_properties = retrieve_project_property(src_git, int_tag)
- #TODO:
+ #FIXME:
+ if project_properties.get('sdk_profile') == "" or project_properties.get('sdk_profile') is None:
+ if "mobile" in data.get('project'):
+ project_properties['sdk_profile'] = "mobile"
+ elif "wearable" in data.get('project'):
+ project_properties['sdk_profile'] = "wearable"
+ else:
+ project_properties['sdk_profile'] = "mobile"
print project_properties.get('sdk_profile')
data['profile'] = project_properties.get('sdk_profile')
# Set new branch and tag