[ostree] core: INCOMPATIBLE CHANGE: Rename .packfile to .archive
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: INCOMPATIBLE CHANGE: Rename .packfile to .archive
- Date: Thu, 8 Dec 2011 22:33:03 +0000 (UTC)
commit 35fa68a74c6574c5036e07942a4a8aa960c9f134
Author: Colin Walters <walters verbum org>
Date: Thu Dec 8 17:15:59 2011 -0500
core: INCOMPATIBLE CHANGE: Rename .packfile to .archive
It's too confusing that we call the mode "archive" but the actual
files ".packfile". Also, git already has a "packfile" that serves a
totally different purpose.
src/libostree/ostree-core.c | 12 ++++++------
src/libostree/ostree-repo.c | 2 +-
src/ostree/ot-builtin-fsck.c | 4 ++--
3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c
index 63793ce..42ba64b 100644
--- a/src/libostree/ostree-core.c
+++ b/src/libostree/ostree-core.c
@@ -541,7 +541,7 @@ ostree_get_relative_object_path (const char *checksum,
{
case OSTREE_OBJECT_TYPE_FILE:
if (archive)
- type_string = ".packfile";
+ type_string = ".archive";
else
type_string = ".file";
break;
@@ -714,7 +714,7 @@ ostree_parse_packed_file (GFile *file,
if (bytes_read != 4)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "Corrupted packfile; too short while reading metadata length");
+ "Corrupted archive file; too short while reading metadata length");
goto out;
}
@@ -722,7 +722,7 @@ ostree_parse_packed_file (GFile *file,
if (metadata_len > OSTREE_MAX_METADATA_SIZE)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "Corrupted packfile; metadata length %u is larger than maximum %u",
+ "Corrupted archive file; metadata length %u is larger than maximum %u",
metadata_len, OSTREE_MAX_METADATA_SIZE);
goto out;
}
@@ -733,7 +733,7 @@ ostree_parse_packed_file (GFile *file,
if (bytes_read != metadata_len)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "Corrupted packfile; too short while reading metadata");
+ "Corrupted archive file; too short while reading metadata");
goto out;
}
@@ -785,7 +785,7 @@ ostree_parse_packed_file (GFile *file,
if (bytes_read != 4)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "Corrupted packfile; too short while reading device id");
+ "Corrupted archive file; too short while reading device id");
goto out;
}
dev = GUINT32_FROM_BE (dev);
@@ -801,7 +801,7 @@ ostree_parse_packed_file (GFile *file,
else
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "Corrupted packfile; invalid mode %u", mode);
+ "Corrupted archive file; invalid mode %u", mode);
goto out;
}
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 745d7a4..43e436f 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -1919,7 +1919,7 @@ iter_object_dir (OstreeRepo *self,
if (g_str_has_suffix (name, ".meta"))
objtype = OSTREE_OBJECT_TYPE_META;
else if (g_str_has_suffix (name, ".file")
- || g_str_has_suffix (name, ".packfile"))
+ || g_str_has_suffix (name, ".archive"))
objtype = OSTREE_OBJECT_TYPE_FILE;
else
goto loop_out;
diff --git a/src/ostree/ot-builtin-fsck.c b/src/ostree/ot-builtin-fsck.c
index 8f65db6..f73f5e9 100644
--- a/src/ostree/ot-builtin-fsck.c
+++ b/src/ostree/ot-builtin-fsck.c
@@ -129,10 +129,10 @@ object_iter_callback (OstreeRepo *repo,
if (ostree_repo_get_mode (repo) == OSTREE_REPO_MODE_ARCHIVE
&& objtype == OSTREE_OBJECT_TYPE_FILE)
{
- if (!g_str_has_suffix (path, ".packfile"))
+ if (!g_str_has_suffix (path, ".archive"))
{
g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "Invalid unpacked filename '%s'",
+ "Invalid archive filename '%s'",
path);
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]