GNOME Bugzilla – Bug 710097
/etc merge fails if a directory in /etc was removed
Last modified: 2013-10-15 18:57:00 UTC
Created attachment 257251 [details] [review] Patch for the testsuite to reproduce the issue When upgrading after removing a directory under /etc i hit the following error: ostree admin: During /etc merge: Is a directory Problem seems to be that the diff function lists a directory as removed, which then gets passed to ot_gfile_ensure_unlinked which bails as the entry isn't a file. Attached is a patch for the testsuite to reproduce this error.
Created attachment 257380 [details] [review] 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>
That looks good to me, and makes sense. Go for it.
Attachment 257380 [details] pushed as b2a98f4 - sysroot: Handle deleting directories in /etc