core: Drop packfiles as they are now

They're not a large efficiency win at the moment, because we don't
do any delta compression.

At the moment, they simply served to compress data, but we will change
the archive mode to do that by default.
This commit is contained in:
Colin Walters committed 2012-09-23 16:02:03 -04:00
1 parent aa9aaa9a62
commit 2a0601efc7
15 files changed
+37 -3694

No files matched your search

+1 -40
View File
@@ -21,7 +21,7 @@ set -e
. libtest.sh
echo '1..22'
echo '1..11'
setup_test_repository "archive"
echo "ok setup"
@@ -68,45 +68,6 @@ $OSTREE cat test2 /baz/cow > cow-contents
assert_file_has_content cow-contents "moo"
echo "ok cat-file"
cd ${test_tmpdir}
$OSTREE pack
echo "ok pack"
cd ${test_tmpdir}
$OSTREE fsck
echo "ok fsck"
$OSTREE checkout test2 checkout-test2-from-packed
echo "ok checkout union 1"
cd ${test_tmpdir}
$OSTREE fsck
echo "ok fsck"
$OSTREE pack --analyze-only
echo "ok pack analyze"
$OSTREE unpack
echo "ok unpack"
cd ${test_tmpdir}
$OSTREE fsck
echo "ok fsck"
cd ${test_tmpdir}
$OSTREE checkout test2 checkout-test2-from-unpacked
echo "ok checkout union 2"
$OSTREE pack --metadata-only
echo "ok pack metadata"
$OSTREE fsck
echo "ok fsck"
cd ${test_tmpdir}
rm -rf checkout-test2
$OSTREE checkout test2 checkout-test2
echo "ok checkout metadata-packed"
$OSTREE unpack
echo "ok unpack"
+1 -19
View File
@@ -21,7 +21,7 @@ set -e
. libtest.sh
echo '1..4'
echo '1..2'
setup_fake_remote_repo1
cd ${test_tmpdir}
@@ -38,21 +38,3 @@ cd checkout-origin-main
assert_file_has_content firstfile '^first$'
assert_file_has_content baz/cow '^moo$'
echo "ok pull contents"
cd ${test_tmpdir}
ostree --repo=$(pwd)/ostree-srv/gnomerepo pack
rm -rf repo
mkdir repo
${CMD_PREFIX} ostree --repo=repo init
${CMD_PREFIX} ostree --repo=repo remote add origin $(cat httpd-address)/ostree/gnomerepo
${CMD_PREFIX} ostree-pull --repo=repo origin main
${CMD_PREFIX} ostree --repo=repo fsck
echo "ok pull packed"
cd ${test_tmpdir}
rm -rf checkout-origin-main
$OSTREE checkout origin/main checkout-origin-main
cd checkout-origin-main
assert_file_has_content firstfile '^first$'
assert_file_has_content baz/cow '^moo$'
echo "ok pull contents packed"