Callbacks¶
|
|
|
|
|
|
|
Details¶
- OSTree.RepoCheckoutFilter(repo, path, stbuf, *user_data)¶
- Parameters:
- Returns:
OSTree.RepoCheckoutFilterResult
saying whether or not to checkout this file- Return type:
New in version 2018.2.
- OSTree.RepoCommitFilter(repo, path, file_info, *user_data)¶
- Parameters:
repo (
OSTree.Repo
) – Repopath (
str
) – Path to filefile_info (
Gio.FileInfo
) – File information
- Returns:
OSTree.RepoCommitFilterResult
saying whether or not to commit this file- Return type:
- OSTree.RepoCommitModifierXattrCallback(repo, path, file_info, *user_data)¶
- Parameters:
repo (
OSTree.Repo
) –path (
str
) –file_info (
Gio.FileInfo
) –
- Return type:
- OSTree.RepoImportArchiveTranslatePathname(repo, stbuf, src_path, *user_data)¶
- Parameters:
- Return type:
Possibly change a pathname while importing an archive. If
None
is returned, then src_path will be used unchanged. Otherwise, return a new pathname which will be freed viag_free()
.This pathname translation will be performed *before* any processing from an active
OstreeRepoCommitModifier
. Will be invoked for all directory and file types, first with outer directories, then their sub-files and directories.Note that enabling pathname translation will always override the setting for
use_ostree_convention
.New in version 2017.11.