libostree: Also use xattr callback for directories
They need labels too, obviously.
This commit is contained in:
1 parent
234ae70b4c
commit
f86a132eb0
1 file changed
+6
-1
@@ -1751,7 +1751,12 @@ write_directory_to_mtree_internal (OstreeRepo *self,
|
|||||||
if (filter_result == OSTREE_REPO_COMMIT_FILTER_ALLOW)
|
if (filter_result == OSTREE_REPO_COMMIT_FILTER_ALLOW)
|
||||||
{
|
{
|
||||||
g_debug ("Adding: %s", gs_file_get_path_cached (dir));
|
g_debug ("Adding: %s", gs_file_get_path_cached (dir));
|
||||||
if (!(modifier && (modifier->flags & OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS) > 0))
|
if (modifier && modifier->xattr_callback)
|
||||||
|
{
|
||||||
|
xattrs = modifier->xattr_callback (self, relpath, child_info,
|
||||||
|
modifier->xattr_user_data);
|
||||||
|
}
|
||||||
|
else if (!(modifier && (modifier->flags & OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS) > 0))
|
||||||
{
|
{
|
||||||
if (!gs_file_get_all_xattrs (dir, &xattrs, cancellable, error))
|
if (!gs_file_get_all_xattrs (dir, &xattrs, cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
Reference in new issue
Block a user