[Non-ACR][inst.py][fixed none type issue] 08/204608/1
authorSanghoon Lee <shooney.lee@samsung.com>
Thu, 25 Apr 2019 01:40:01 +0000 (10:40 +0900)
committerSanghoon Lee <shooney.lee@samsung.com>
Thu, 25 Apr 2019 01:40:01 +0000 (10:40 +0900)
Change-Id: Ic8c491ee2739a3ef5a7c56e89abf3d4c5a8ba150

tool/script/template/inst.py

index 3f275d5..6b6af4e 100755 (executable)
@@ -128,10 +128,10 @@ def uninstPKGs():
                 pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
                 if not pkg_id:
                     action_status = False
-                    print ("pkg_id wgt is None")
+                    print ("wgt pkg_id is None. file name is : %s " % (file))
                     continue
 
-                print ("pkg_id wgt : %s" % (pkg_id))
+                print ("wgt pkg_id : %s" % (pkg_id))
                 (return_code, output) = doRemoteCMD(
                     "pkgcmd -u -t wgt -q -n %s" % pkg_id)
                 for line in output:
@@ -141,7 +141,7 @@ def uninstPKGs():
             elif file.endswith(".tpk"):
                 pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
                 if not pkg_id:
-                    print ("tpk pkg_id is None")
+                    print ("tpk pkg_id is None. file name is : %s " % (file))
                     action_status = False
                     continue