diff options
author | Jonathan Lebon <jonathan@jlebon.com> | 2020-04-17 14:20:25 -0400 |
---|---|---|
committer | Jonathan Lebon <jonathan@jlebon.com> | 2020-04-17 14:28:20 -0400 |
commit | df065ad766c325bac2fa9a83ea1af7e1616abe16 (patch) | |
tree | 7ae6bea29d9d61c8d5f9860a38b0a3d1e646b7db /src/libostree/ostree-repo.c | |
parent | bb8fd5a2c4b91d8fd41e831887f053bb63b13ac5 (diff) | |
download | ostree-df065ad766c325bac2fa9a83ea1af7e1616abe16.tar.gz |
lib: Rename function for staging dir check
Rename the function to more accurately reflect what it does, which is to
check whether the filename has the `staging-` prefix.
Diffstat (limited to 'src/libostree/ostree-repo.c')
-rw-r--r-- | src/libostree/ostree-repo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 97ce95b8..5fd92bb9 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -5959,7 +5959,7 @@ _ostree_repo_maybe_regenerate_summary (OstreeRepo *self, } gboolean -_ostree_repo_is_locked_tmpdir (const char *filename) +_ostree_repo_has_staging_prefix (const char *filename) { return g_str_has_prefix (filename, OSTREE_REPO_TMPDIR_STAGING); } @@ -6019,7 +6019,7 @@ _ostree_repo_allocate_tmpdir (int tmpdir_dfd, GCancellable *cancellable, GError **error) { - g_return_val_if_fail (_ostree_repo_is_locked_tmpdir (tmpdir_prefix), FALSE); + g_return_val_if_fail (_ostree_repo_has_staging_prefix (tmpdir_prefix), FALSE); /* Look for existing tmpdir (with same prefix) to reuse */ g_auto(GLnxDirFdIterator) dfd_iter = { 0, }; |