Skip to content

Commit

Permalink
fixup! deployment: add ostree_deployment_get_version API
Browse files Browse the repository at this point in the history
Copy version on clone
  • Loading branch information
r4f4 committed Nov 26, 2019
1 parent 510d10c commit 68dfb0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libostree/ostree-deployment.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ ostree_deployment_clone (OstreeDeployment *self)
self->deployserial,
self->bootcsum, self->bootserial);

if (self->version)
ret->version = g_strdup (self->version);

new_bootconfig = ostree_bootconfig_parser_clone (self->bootconfig);
ostree_deployment_set_bootconfig (ret, new_bootconfig);

Expand Down

0 comments on commit 68dfb0f

Please sign in to comment.