From 6542b8f5c983db938c3dc62bac1b928452171f9b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 11 Apr 2012 19:53:10 -0400 Subject: [PATCH] core: unpack: Regenerate pack index after unpacking --- src/ostree/ot-builtin-unpack.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ostree/ot-builtin-unpack.c b/src/ostree/ot-builtin-unpack.c index 9f0efb0a..e72bf458 100644 --- a/src/ostree/ot-builtin-unpack.c +++ b/src/ostree/ot-builtin-unpack.c @@ -275,6 +275,9 @@ ostree_builtin_unpack (int argc, char **argv, GFile *repo_path, GError **error) g_print ("Deleted packfile '%s'\n", pack_checksum); } + if (!ostree_repo_regenerate_pack_index (repo, cancellable, error)) + goto out; + ret = TRUE; out: if (in_transaction)