if (type != NULL && pkgpath != NULL && pkgid != NULL && teppath != NULL) {
D("args: type=%s, pkgpath=%s, pkgid=%s, teppath=%s\n", type, pkgpath, pkgid, teppath);
- if (strncmp(pkgid, "null", 4) == 0) {
- if (strncmp(teppath, "null", 4) == 0) {
+ if (strncmp(pkgid, "\\n\\u\\l\\l", 8) == 0) {
+ if (strncmp(teppath, "\\n\\u\\l\\l", 8) == 0) {
/* Normal install case */
snprintf(buf, len, "pkgcmd -i -q -t %s -p %s -G", type, pkgpath);
} else {
/* Re-install case */
snprintf(buf, len, "pkgcmd -r -q -t %s -n %s", type, pkgid);
}
-
+ D("buf=%s\n", buf);
free(type);
free(pkgpath);
free(pkgid);