Skip to content

Commit

Permalink
Merge pull request #3562 from cgwalters/extensions-fix
Browse files Browse the repository at this point in the history
compose: Fix handling of base rev
  • Loading branch information
Luca Bruno authored Apr 1, 2022
2 parents 15fe8ca + daeb323 commit 1869937
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/rpmostree-compose-builtin-tree.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1547,8 +1547,6 @@ rpmostree_compose_builtin_extensions (int argc, char **argv, RpmOstreeCommandInv

auto packages_mapping = std::make_unique<rust::Vec<rpmostreecxx::StringMapping> > ();
g_autofree char *base_rev = NULL;
if (!ostree_repo_resolve_rev (repo, opt_extensions_base_rev, FALSE, &base_rev, error))
return FALSE;

if (opt_extensions_rootfs)
{
Expand All @@ -1568,6 +1566,9 @@ rpmostree_compose_builtin_extensions (int argc, char **argv, RpmOstreeCommandInv
}
else
{
if (!ostree_repo_resolve_rev (repo, opt_extensions_base_rev, FALSE, &base_rev, error))
return FALSE;

g_autoptr (GVariant) commit = NULL;
if (!ostree_repo_load_commit (repo, base_rev, &commit, NULL, error))
return FALSE;
Expand Down

0 comments on commit 1869937

Please sign in to comment.