From: Colin Walters Date: Wed, 11 Apr 2012 23:53:10 +0000 (-0400) Subject: core: unpack: Regenerate pack index after unpacking X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~2126 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6542b8f5c983db938c3dc62bac1b928452171f9b;p=ostree.git core: unpack: Regenerate pack index after unpacking --- 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)