sysroot: Handle deleting directories in /etc

We need to use the full shutil_rm_rf() in order to actually delete
complete directories.

Test suite code based on a patch from Sjoerd Simons <sjored@luon.net>

https://bugzilla.gnome.org/show_bug.cgi?id=710097
This commit is contained in:
Colin Walters committed 2013-10-15 14:56:43 -04:00
1 parent 3b700ccb50
commit b2a98f4ca3
3 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -161,7 +161,7 @@ merge_etc_changes (GFile *orig_etc,
g_assert (path);
target_file = g_file_resolve_relative_path (new_etc, path);
if (!ot_gfile_ensure_unlinked (target_file, cancellable, error))
if (!gs_shutil_rm_rf (target_file, cancellable, error))
goto out;
}