[ostree/wip/archive-v3: 3/10] core: unpack: Regenerate pack index after unpacking



commit 6542b8f5c983db938c3dc62bac1b928452171f9b
Author: Colin Walters <walters verbum org>
Date:   Wed Apr 11 19:53:10 2012 -0400

    core: unpack: Regenerate pack index after unpacking

 src/ostree/ot-builtin-unpack.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ot-builtin-unpack.c b/src/ostree/ot-builtin-unpack.c
index 9f0efb0..e72bf45 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]