Skip to content

Commit

Permalink
fixup! deploy: Keep last deployment version during stage
Browse files Browse the repository at this point in the history
Get version of new deployment
  • Loading branch information
r4f4 committed Dec 20, 2019
1 parent 2dd8418 commit 06efb55
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libostree/ostree-sysroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1745,10 +1745,8 @@ ostree_sysroot_simple_write_deployment (OstreeSysroot *sysroot,

/* tracks current versioned deployment */
OstreeRepo *repo = ostree_sysroot_repo (sysroot);
OstreeDeployment *versioned = booted_deployment ? booted_deployment : merge_deployment;
const gchar *last_version = NULL;
if (versioned)
last_version = _ostree_deployment_get_version (versioned, repo, error);
const gchar *last_version =
_ostree_deployment_get_version (new_deployment, repo, error);

/* tracks when we come across the booted deployment */
gboolean before_booted = TRUE;
Expand Down

0 comments on commit 06efb55

Please sign in to comment.