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.
This commit is contained in:
Jonathan Lebon committed 2020-04-17 14:28:20 -04:00
1 parent bb8fd5a2c4
commit df065ad766
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -2011,7 +2011,7 @@ cleanup_tmpdir (OstreeRepo *self,
continue;
/* Handle transaction tmpdirs */
if (_ostree_repo_is_locked_tmpdir (dent->d_name))
if (_ostree_repo_has_staging_prefix (dent->d_name))
{
if (!cleanup_txn_dir (self, dfd_iter.fd, dent->d_name, cancellable, error))
return FALSE;