Add new file operations

This commit is contained in:
topjohnwu
2017-10-12 02:57:18 +08:00
parent df7eaa5598
commit 25bdbcf526
9 changed files with 326 additions and 224 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ int merge_img(const char *source, const char *target) {
snprintf(buffer, sizeof(buffer), "%s/%s", TARGET_TMP, entry->d_name);
if (access(buffer, F_OK) == 0) {
LOGI("Upgrade module: %s\n", entry->d_name);
exec_command_sync(BBPATH "/rm", "-rf", buffer, NULL);
rm_rf(buffer);
} else {
LOGI("New module: %s\n", entry->d_name);
}