[ostree/wip/packfile-rebase2] core: Rename repack -> pack



commit 292a428470c71cd784e2c434178e1feefecca1d6
Author: Colin Walters <walters verbum org>
Date:   Tue Mar 27 17:49:04 2012 -0400

    core: Rename repack -> pack

 Makefile-ostree.am                                 |    2 +-
 src/ostree/main.c                                  |    2 +-
 .../{ot-builtin-repack.c => ot-builtin-pack.c}     |    2 +-
 src/ostree/ot-builtins.h                           |    2 +-
 tests/t0001-archive.sh                             |   12 ++++++------
 5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/Makefile-ostree.am b/Makefile-ostree.am
index f88a91c..1b65f3c 100644
--- a/Makefile-ostree.am
+++ b/Makefile-ostree.am
@@ -34,7 +34,7 @@ ostree_SOURCES = src/ostree/main.c \
 	src/ostree/ot-builtin-ls.c \
 	src/ostree/ot-builtin-prune.c \
 	src/ostree/ot-builtin-remote.c \
-	src/ostree/ot-builtin-repack.c \
+	src/ostree/ot-builtin-pack.c \
 	src/ostree/ot-builtin-rev-parse.c \
 	src/ostree/ot-builtin-show.c \
 	src/ostree/ot-main.h \
diff --git a/src/ostree/main.c b/src/ostree/main.c
index 7898b14..9be3b8f 100644
--- a/src/ostree/main.c
+++ b/src/ostree/main.c
@@ -42,7 +42,7 @@ static OstreeBuiltin builtins[] = {
   { "ls", ostree_builtin_ls, 0 },
   { "prune", ostree_builtin_prune, 0 },
   { "fsck", ostree_builtin_fsck, 0 },
-  { "repack", ostree_builtin_repack, 0 },
+  { "pack", ostree_builtin_pack, 0 },
   { "remote", ostree_builtin_remote, 0 },
   { "rev-parse", ostree_builtin_rev_parse, 0 },
   { "remote", ostree_builtin_remote, 0 },
diff --git a/src/ostree/ot-builtin-repack.c b/src/ostree/ot-builtin-pack.c
similarity index 99%
rename from src/ostree/ot-builtin-repack.c
rename to src/ostree/ot-builtin-pack.c
index 581dc47..8b9dadc 100644
--- a/src/ostree/ot-builtin-repack.c
+++ b/src/ostree/ot-builtin-pack.c
@@ -759,7 +759,7 @@ do_stats_gather_loose (OtRepackData  *data,
 }
 
 gboolean
-ostree_builtin_repack (int argc, char **argv, GFile *repo_path, GError **error)
+ostree_builtin_pack (int argc, char **argv, GFile *repo_path, GError **error)
 {
   gboolean ret = FALSE;
   GOptionContext *context;
diff --git a/src/ostree/ot-builtins.h b/src/ostree/ot-builtins.h
index 59a71a8..d230cba 100644
--- a/src/ostree/ot-builtins.h
+++ b/src/ostree/ot-builtins.h
@@ -40,7 +40,7 @@ gboolean ostree_builtin_ls (int argc, char **argv, GFile *repo_path, GError **er
 gboolean ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GError **error);
 gboolean ostree_builtin_fsck (int argc, char **argv, GFile *repo_path, GError **error);
 gboolean ostree_builtin_show (int argc, char **argv, GFile *repo_path, GError **error);
-gboolean ostree_builtin_repack (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_pack (int argc, char **argv, GFile *repo_path, GError **error);
 gboolean ostree_builtin_rev_parse (int argc, char **argv, GFile *repo_path, GError **error);
 gboolean ostree_builtin_remote (int argc, char **argv, GFile *repo_path, GError **error);
 
diff --git a/tests/t0001-archive.sh b/tests/t0001-archive.sh
index 47efe53..ec3ab2c 100755
--- a/tests/t0001-archive.sh
+++ b/tests/t0001-archive.sh
@@ -69,8 +69,8 @@ assert_file_has_content cow-contents "moo"
 echo "ok cat-file"
 
 cd ${test_tmpdir}
-$OSTREE repack --keep-loose
-echo "ok repack"
+$OSTREE pack --keep-loose
+echo "ok pack"
 
 cd ${test_tmpdir}
 $OSTREE fsck
@@ -80,12 +80,12 @@ $OSTREE checkout test2 checkout-test2-from-packed
 echo "ok checkout union 1"
 
 cd ${test_tmpdir}
-$OSTREE repack
-echo "ok repack delete loose"
+$OSTREE pack
+echo "ok pack delete loose"
 
 cd ${test_tmpdir}
 $OSTREE fsck
 echo "ok fsck"
 
-$OSTREE repack --analyze-only
-echo "ok repack analyze"
+$OSTREE pack --analyze-only
+echo "ok pack analyze"



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