diff options
author | Colin Walters <walters@verbum.org> | 2013-07-01 22:35:54 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-07-01 22:43:17 -0400 |
commit | a93f2b8d160058f7c250a0ce1b16a73b83b4f5ae (patch) | |
tree | f2500bc19f6236727b4b426ceffbedac489ebd9f /tests/archive-test.sh | |
parent | dc0f3c3dcbdd63d6a41ebc172b38c65576db9cd3 (diff) | |
download | ostree-a93f2b8d160058f7c250a0ce1b16a73b83b4f5ae.tar.gz |
pull: Make fetcher work for file:/// URIs too
Even if very suboptimally, for now; we copy the files, then copy them
again.
The obvious long term plan is to merge pull-local and pull together,
but truly optimizing that requires the pull code to know how to use
the OstreeRepo APIs when operating on local repositories (as
pull-local does), rather than assuming the remote is an archive-z
fetched over HTTP.
Diffstat (limited to 'tests/archive-test.sh')
-rwxr-xr-x | tests/archive-test.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/archive-test.sh b/tests/archive-test.sh index cd0b2995..62595cfb 100755 --- a/tests/archive-test.sh +++ b/tests/archive-test.sh @@ -39,6 +39,8 @@ cd ${test_tmpdir} ${CMD_PREFIX} ostree --repo=repo2 checkout test2 test2-checkout-from-local-clone cd test2-checkout-from-local-clone assert_file_has_content baz/cow moo +cd ${test_tmpdir} +rm repo2 -rf echo "ok local clone checkout" $OSTREE checkout -U test2 checkout-user-test2 @@ -64,3 +66,12 @@ echo "ok cat-file" cd ${test_tmpdir} $OSTREE fsck echo "ok fsck" + +cd ${test_tmpdir} +mkdir repo2 +${CMD_PREFIX} ostree --repo=repo2 init +${CMD_PREFIX} ostree --repo=repo2 remote add aremote file://$(pwd)/repo test2 +ostree --repo=repo2 pull aremote +ostree --repo=repo2 rev-parse aremote/test2 +ostree --repo=repo2 fsck +echo "ok pull with from file:/// uri" |