mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-11 09:18:20 +03:00
lib/sysroot: Add some g_prefix_error() for ostree_sysroot_cleanup()
We saw this fail in a CI run. We've been trying to add strategic error prefixing as a general rule, and this specific instance may help debug. Closes: #929 Approved by: pwithnall
This commit is contained in:
parent
584735b1c9
commit
0e6d23835b
@ -505,10 +505,10 @@ _ostree_sysroot_cleanup_internal (OstreeSysroot *self,
|
||||
g_return_val_if_fail (self->loaded, FALSE);
|
||||
|
||||
if (!cleanup_other_bootversions (self, cancellable, error))
|
||||
return FALSE;
|
||||
return glnx_prefix_error (error, "Cleaning bootversions");
|
||||
|
||||
if (!cleanup_old_deployments (self, cancellable, error))
|
||||
return FALSE;
|
||||
return glnx_prefix_error (error, "Cleaning deployments");
|
||||
|
||||
OstreeRepo *repo = ostree_sysroot_repo (self);
|
||||
if (!generate_deployment_refs (self, repo,
|
||||
@ -516,12 +516,12 @@ _ostree_sysroot_cleanup_internal (OstreeSysroot *self,
|
||||
self->subbootversion,
|
||||
self->deployments,
|
||||
cancellable, error))
|
||||
return FALSE;
|
||||
return glnx_prefix_error (error, "Generating deployment refs");
|
||||
|
||||
if (do_prune_repo)
|
||||
{
|
||||
if (!prune_repo (repo, cancellable, error))
|
||||
return FALSE;
|
||||
return glnx_prefix_error (error, "Pruning repo");
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user