return True
return False
+def checkProfile():
+ config_key = 'tizen.org/feature/profile'
+ (return_code, output) = doRemoteCMD("cat /etc/config/model-config.xml | grep %s" % (config_key))
+ output_len = len(output)
+
+ #'mobile/wearable/tv'
+ for out in output:
+ if config_key in out:
+ if 'mobile' in out:
+ return 'mobile'
+ elif 'wearable' in out:
+ return 'wearable'
+ elif 'tv' in out:
+ return 'tv'
def instPKGs():
action_status = True
else:
print("Skipped installation on this platform. file name is %s" % (file))
+ elif file == "org.tizen.example.IMESample.Tizen.Mobile-1.0.0.tpk":
+ check_profile = checkProfile()
+ if check_profile != 'wearable':
+ (return_code, output) = doRemoteCMD("pkgcmd -i -t tpk -q -p %s/%s" % (SRC_DIR, file))
+ else:
+ print("Skipped installation on this profile. file name is %s" % (file))
+
+ elif file == "org.tizen.example.IMESample.Tizen.Wearable-1.0.0.tpk":
+ check_profile = checkProfile()
+ if check_profile == 'wearable':
+ (return_code, output) = doRemoteCMD("pkgcmd -i -t tpk -q -p %s/%s" % (SRC_DIR, file))
+ else:
+ print("Skipped installation on this profile. file name is %s" % (file))
+
else:
(return_code, output) = doRemoteCMD(
"pkgcmd -i -t tpk -q -p %s/%s" % (SRC_DIR, file))