diff options
author | Tatsuhiko Miyagawa <miyagawa@bulknews.net> | 2018-05-04 10:56:33 -0700 |
---|---|---|
committer | Tatsuhiko Miyagawa <miyagawa@bulknews.net> | 2018-05-04 10:56:33 -0700 |
commit | 741ff4b4c4497a664d57dcdbf748555feecedf03 (patch) | |
tree | d5b9a94ab6225deeae65a71c387f29428085321b | |
parent | 438a2f0ee7a805bc67ba641e99f8bf6f7f867026 (diff) | |
download | carton-741ff4b4c4497a664d57dcdbf748555feecedf03.tar.gz |
write out 02packages.details.txt.gz
-rw-r--r-- | lib/Carton/Builder.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Carton/Builder.pm b/lib/Carton/Builder.pm index 8a2eed9..d03318f 100644 --- a/lib/Carton/Builder.pm +++ b/lib/Carton/Builder.pm @@ -41,6 +41,15 @@ sub bundle { warn "Couldn't find @{[ $dist->pathname ]}\n"; } } + + require IO::Compress::Gzip; + my $index = $cache_path->child("modules/02packages.details.txt.gz"); + $index->parent->mkpath; + + warn "Writing $index\n"; + my $out = IO::Compress::Gzip->new($index->openw) + or die "gzip failed: $IO::Compress::Gzip::GzipError"; + $snapshot->index->write($out); } sub install { |