for root, dirs, files in os.walk(SCRIPT_DIR):
print "uninstPKGs ################################"
for file in files:
- print ("file : " + file)
+ print ("file : %s" % (file))
if file.endswith(".wgt"):
pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
- print ("pkg_id wgt : " + pkg_id)
if not pkg_id:
action_status = False
+ print ("pkg_id wgt is None")
continue
+
+ print ("pkg_id wgt : %s" % (pkg_id))
(return_code, output) = doRemoteCMD(
"pkgcmd -u -t wgt -q -n %s" % pkg_id)
for line in output:
break
elif file.endswith(".tpk"):
pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
- print ("tpk pkg_id : " + pkg_id)
if not pkg_id:
+ print ("tpk pkg_id is None")
action_status = False
continue
+
+ print ("tpk pkg_id : %s" % (pkg_id))
(return_code, output) = doRemoteCMD(
"pkgcmd -u -t tpk -q -n %s" % pkg_id)
+
for line in output:
if "Failure" in line:
action_status = False
elif file.endswith(".tpk"):
pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
- print "pkg_id :" + pkg_id
+ print ("pkg_id : %s" % (pkg_id))
print (os.getcwd())
print (os.path.dirname(os.path.realpath(__file__)) )
if not doRemoteCopy("%s/askpolicy.sh" % SCRIPT_DIR, "%s" % (SRC_DIR)):