Skip to content

Commit

Permalink
fixup! daemon: Add new Reload D-Bus method
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon committed Mar 23, 2018
1 parent 0387237 commit 23c00bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/daemon/rpmostreed-sysroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ reset_config_properties (RpmostreedSysroot *self,
}

static gboolean
reload_sysroot_and_os (RpmostreedSysroot *self,
GError **error)
reload_sysroot_force_os_reload (RpmostreedSysroot *self,
GError **error)
{
gboolean sysroot_changed;
if (!sysroot_reload (self, &sysroot_changed, error))
Expand All @@ -454,7 +454,7 @@ handle_reload (RPMOSTreeSysroot *object,
RpmostreedSysroot *self = RPMOSTREED_SYSROOT (object);
g_autoptr(GError) local_error = NULL;

if (reload_sysroot_and_os (self, &local_error))
if (reload_sysroot_force_os_reload (self, &local_error))
rpmostree_sysroot_complete_reload (object, invocation);
else if (local_error)
g_dbus_method_invocation_take_error (invocation, g_steal_pointer (&local_error));
Expand All @@ -477,7 +477,7 @@ handle_reload_config (RPMOSTreeSysroot *object,
if (changed && !reset_config_properties (self, error))
goto out;

if (!reload_sysroot_and_os (self, error))
if (!reload_sysroot_force_os_reload (self, error))
goto out;

rpmostree_sysroot_complete_reload_config (object, invocation);
Expand Down

0 comments on commit 23c00bf

Please sign in to comment.