sysroot: Bump mtime when writing an origin file
This ensures that e.g. `rpm-ostreed` will get notified of the changes. Closes: #1464 Approved by: jlebon
This commit is contained in:
parent
971265e4e4
commit
2f5a34bed9
|
|
@ -847,7 +847,9 @@ merge_configuration (OstreeSysroot *sysroot,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write the origin file for a deployment. */
|
/* Write the origin file for a deployment; this does not bump the mtime, under
|
||||||
|
* the assumption the caller may be writing multiple.
|
||||||
|
*/
|
||||||
static gboolean
|
static gboolean
|
||||||
write_origin_file_internal (OstreeSysroot *sysroot,
|
write_origin_file_internal (OstreeSysroot *sysroot,
|
||||||
OstreeDeployment *deployment,
|
OstreeDeployment *deployment,
|
||||||
|
|
@ -903,9 +905,15 @@ ostree_sysroot_write_origin_file (OstreeSysroot *sysroot,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
return write_origin_file_internal (sysroot, deployment, new_origin,
|
if (!write_origin_file_internal (sysroot, deployment, new_origin,
|
||||||
GLNX_FILE_REPLACE_DATASYNC_NEW,
|
GLNX_FILE_REPLACE_DATASYNC_NEW,
|
||||||
cancellable, error);
|
cancellable, error))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
if (!_ostree_sysroot_bump_mtime (sysroot, error))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue