tree-wide: Replace archive-z2 with archive
In almost all places. There are just a few exceptions; one tricky bit for example is that the repo config must still have `mode=archive-z2`, since `archive` used to mean something else. (We could very likely just get rid of that check, but eh, later). I also added a test that one can still do `ostree repo init --mode=archive-z2`. Closes: #1125 Approved by: jlebon
This commit is contained in:
1 parent
f07432d4ce
commit
88b25dc65c
57 files changed
+85
-78
No files matched your search
@@ -312,7 +312,7 @@ _ostree_file_header_new (GFileInfo *file_info,
|
||||
* @file_info: a #GFileInfo
|
||||
* @xattrs: (allow-none): Optional extended attribute array
|
||||
*
|
||||
* Returns: (transfer full): A new #GVariant containing file header for an archive-z2 repository
|
||||
* Returns: (transfer full): A new #GVariant containing file header for an archive repository
|
||||
*/
|
||||
GVariant *
|
||||
_ostree_zlib_file_header_new (GFileInfo *file_info,
|
||||
|
||||
@@ -3631,7 +3631,7 @@ ostree_repo_pull_with_options (OstreeRepo *self,
|
||||
|
||||
}
|
||||
|
||||
/* We can't use static deltas if pulling into an archive-z2 repo. */
|
||||
/* We can't use static deltas if pulling into an archive repo. */
|
||||
if (self->mode == OSTREE_REPO_MODE_ARCHIVE_Z2)
|
||||
{
|
||||
if (pull_data->require_static_deltas)
|
||||
|
||||
@@ -608,7 +608,7 @@ dispatch_open_splice_and_close (OstreeRepo *repo,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Slower path, for symlinks and unpacking deltas into archive-z2 */
|
||||
/* Slower path, for symlinks and unpacking deltas into archive */
|
||||
g_autoptr(GFileInfo) finfo =
|
||||
_ostree_mode_uidgid_to_gfileinfo (state->mode, state->uid, state->gid);
|
||||
|
||||
|
||||
Reference in new issue
Block a user