mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
Add "archive" as an alias for "archive-z2"
I find the "-z2" is really a long ago relic of the past when I changed the format. We no longer have anything to do with the original `archive`, so let's start allowing people to type `--mode=archive` which just looks saner. At some point later I'll update the docs too, but it'll be an annoying transition period as we'll have to say "On older OSTree, use -z2" etc. Closes: #346 Approved by: giuseppe
This commit is contained in:
parent
85f202d0b2
commit
ab47a8a030
@ -1816,7 +1816,8 @@ ostree_repo_mode_from_string (const char *mode,
|
||||
ret_mode = OSTREE_REPO_MODE_BARE;
|
||||
else if (strcmp (mode, "bare-user") == 0)
|
||||
ret_mode = OSTREE_REPO_MODE_BARE_USER;
|
||||
else if (strcmp (mode, "archive-z2") == 0)
|
||||
else if (strcmp (mode, "archive-z2") == 0 ||
|
||||
strcmp (mode, "archive") == 0)
|
||||
ret_mode = OSTREE_REPO_MODE_ARCHIVE_Z2;
|
||||
else
|
||||
{
|
||||
|
@ -278,7 +278,7 @@ echo "ok prune"
|
||||
|
||||
cd ${test_tmpdir}
|
||||
rm repo3 -rf
|
||||
${CMD_PREFIX} ostree --repo=repo3 init --mode=archive-z2
|
||||
${CMD_PREFIX} ostree --repo=repo3 init --mode=archive
|
||||
${CMD_PREFIX} ostree --repo=repo3 pull-local --remote=aremote repo test2
|
||||
rm repo3/refs/remotes -rf
|
||||
mkdir repo3/refs/remotes
|
||||
@ -405,7 +405,7 @@ echo "ok commit of fifo was rejected"
|
||||
cd ${test_tmpdir}
|
||||
rm repo2 -rf
|
||||
mkdir repo2
|
||||
${CMD_PREFIX} ostree --repo=repo2 init --mode=archive-z2
|
||||
${CMD_PREFIX} ostree --repo=repo2 init --mode=archive
|
||||
${CMD_PREFIX} ostree --repo=repo2 pull-local repo
|
||||
rm -rf test2-checkout
|
||||
${CMD_PREFIX} ostree --repo=repo2 checkout -U --disable-cache test2 test2-checkout
|
||||
|
Loading…
x
Reference in New Issue
Block a user