#
e1e6c124 |
|
13-Jul-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter::Recompress(): Change param to BPositionIO* Besides that this is a nicer interface, it allows us to get a the HPKG header as a side effect of initializing the reader, thus preventing seeking backward in the file. This makes "package recompress - <file>" work.
|
#
44c47711 |
|
12-Jul-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter: Add BPositionIO support
|
#
8f5130ed |
|
12-Jul-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
package kit: Actually add support for B_HPKG_COMPRESSION_NONE Until now we always declared in the HPKG header that the package file is zlib compressed. For uncompressed files we would just store all individual chunks uncompressed. Now we handle completely uncompressed files slightly differently: We don't write the redundant chunk size table anymore. The size savings are minor, but it makes the uncompressed format read-streamable which may be handy.
|
#
cdfeba5a |
|
08-Jul-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter: Add Recompress() Allows rewriting an existing package file with a different compression.
|
#
796343ed |
|
18-May-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Allow specifying the compression level for package creation * Introduce BPackageWriterParameters which comprises all parameters for package creation, currently flags and compression level. Such an object can be passed to BPackageWriter::Init() and is passed on to PackageWriterImpl and WriterImplBase. * PackageFileHeapWriter: Add compressionLevel property and pass the value on to ZlibCompressor. * package add/create: Add options -0 ... -9 to specify the compression level to be used.
|
#
6ae0ecd4 |
|
11-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add a package info "install-path" attribute The attribute is intended for simplifying package building. The package's install path will be used for the package's .self package symlink, allowing installation to a temporary directory when building the package.
|
#
7efa133c |
|
11-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter: Add SetCheckLicenses() The default is still "true", but now it is possible to disable the license check.
|
#
00bc8e9c |
|
02-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add support for adding/updating package entries Add flags parameter to BPackageWriter::Init() (and the private implementation classes) to indicate that an existing package file shall be updated instead of created. Currently that always happens in-place.
|
#
0f9a98a4 |
|
30-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add optional FD parameter to AddEntry() If a FD is specified, instead of using the file with the given the FD is used. Allows for adding entries without first copying them into the directory structure.
|
#
efb64627 |
|
30-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Cleanup
|
#
f19957b8 |
|
11-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add a package info "install-path" attribute The attribute is intended for simplifying package building. The package's install path will be used for the package's .self package symlink, allowing installation to a temporary directory when building the package.
|
#
d7227dfa |
|
11-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter: Add SetCheckLicenses() The default is still "true", but now it is possible to disable the license check.
|
#
327b38d6 |
|
02-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add support for adding/updating package entries Add flags parameter to BPackageWriter::Init() (and the private implementation classes) to indicate that an existing package file shall be updated instead of created. Currently that always happens in-place.
|
#
4512e8d5 |
|
30-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add optional FD parameter to AddEntry() If a FD is specified, instead of using the file with the given the FD is used. Allows for adding entries without first copying them into the directory structure.
|
#
4cf5f929 |
|
30-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Cleanup
|
#
33bc4425 |
|
12-Feb-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Largish adjustments to PackagerReaderImpl and package attribute handling: * package attributes are now compatible with the low level attribute handling of other HPKG attributes (such that 'package dump' now shows package attributes, too) * dropped type names from hpkg format, the attributes were identified by IDs already and this simplifies the code considerably. Type names are now handled in BLowLevelPackageHandler only. * instead of rolling their own mechanism, high-level package attributes handling is now implemented via a corresonding set of AttributeHandler-subclasses * adjusted package writer to only write package attributes that are needed (empty ones are left out) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40466 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d77c6cd2 |
|
08-Feb-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* implemented checking of licenses, such that it is no longer possible to create a package that refers to a license that is not a system license or contained in the package * added package-info flags (currently only approve_license and system_package) * adjusted package-reader/writer and pkgman accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40393 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f2022173 |
|
07-Feb-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Refactoring step towards implementation of RepositoryWriter: * pulled commonly useful parts out of PackageWriterImpl into WriterImplBase * moved CachedStringTable and related methods into a separate class, StringCache, in order to support having more than one string cache per package file * made package attribute section use a string cache, too, as that's going to be very useful for repositories * instead of writing package attributes directly, we now collect corresponding PackageAttributes and write those later * adjusted package reader accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40376 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7fd711ef |
|
31-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* refactored PackageWriter(Impl) to no longer print anything itself, but publish that info through a BPackageWriterListener * adjusted 'package create' to print a package summary by default and more verbose info upon request. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40332 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
95d84e41 |
|
30-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* attributed copyright in all public HPKG headers to Haiku, Inc. * added my own copyright to a couple of files that I changed git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40321 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5fb1c6ff |
|
30-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Refactored hpkg implementation to provide some separation between public and private API (still far from ideal, but a start): * moved several HPKG-classes into the public namespace BPackageKit::HPKG * added fImpl-wrappers around PackageReader and PackageWriter to hide most of the gory details * adjusted 'package'-binary and packagefs accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40320 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e1e6c124809fae466b89b13ef1ecf87f8026d7fb |
|
13-Jul-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter::Recompress(): Change param to BPositionIO* Besides that this is a nicer interface, it allows us to get a the HPKG header as a side effect of initializing the reader, thus preventing seeking backward in the file. This makes "package recompress - <file>" work.
|
#
44c4771163b9166dc042f69cb5373c9de9e37006 |
|
12-Jul-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter: Add BPositionIO support
|
#
8f5130edfa454cc7ee21e4c3aef2a151f7c3c567 |
|
12-Jul-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
package kit: Actually add support for B_HPKG_COMPRESSION_NONE Until now we always declared in the HPKG header that the package file is zlib compressed. For uncompressed files we would just store all individual chunks uncompressed. Now we handle completely uncompressed files slightly differently: We don't write the redundant chunk size table anymore. The size savings are minor, but it makes the uncompressed format read-streamable which may be handy.
|
#
cdfeba5a1e49d0993e7ab6853c77392bbc10d3c4 |
|
08-Jul-2014 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter: Add Recompress() Allows rewriting an existing package file with a different compression.
|
#
796343ed73b1707ed97e91e22b72b8ca81bcdbad |
|
18-May-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Allow specifying the compression level for package creation * Introduce BPackageWriterParameters which comprises all parameters for package creation, currently flags and compression level. Such an object can be passed to BPackageWriter::Init() and is passed on to PackageWriterImpl and WriterImplBase. * PackageFileHeapWriter: Add compressionLevel property and pass the value on to ZlibCompressor. * package add/create: Add options -0 ... -9 to specify the compression level to be used.
|
#
6ae0ecd49a584abd81f3fa0fb0c0dd5b7a3ddb71 |
|
11-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add a package info "install-path" attribute The attribute is intended for simplifying package building. The package's install path will be used for the package's .self package symlink, allowing installation to a temporary directory when building the package.
|
#
7efa133cb45708be6f134f3dc60a0426beaeb440 |
|
11-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter: Add SetCheckLicenses() The default is still "true", but now it is possible to disable the license check.
|
#
00bc8e9cbd92f6a812d75ad75ca91c34beb67e72 |
|
02-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add support for adding/updating package entries Add flags parameter to BPackageWriter::Init() (and the private implementation classes) to indicate that an existing package file shall be updated instead of created. Currently that always happens in-place.
|
#
0f9a98a4194cd773a14affbf7aba5de5a2800b81 |
|
30-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add optional FD parameter to AddEntry() If a FD is specified, instead of using the file with the given the FD is used. Allows for adding entries without first copying them into the directory structure.
|
#
efb64627777bf9302043c3e6467ffe5cbec8b574 |
|
30-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Cleanup
|
#
f19957b8e5311ffc5b802032e4f24cdda81f9b50 |
|
11-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add a package info "install-path" attribute The attribute is intended for simplifying package building. The package's install path will be used for the package's .self package symlink, allowing installation to a temporary directory when building the package.
|
#
d7227dfa9e644112f7019d94b4611da400c6c884 |
|
11-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BPackageWriter: Add SetCheckLicenses() The default is still "true", but now it is possible to disable the license check.
|
#
327b38d69c8d9a128c64d0535f15b0274b51c51b |
|
02-Jul-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add support for adding/updating package entries Add flags parameter to BPackageWriter::Init() (and the private implementation classes) to indicate that an existing package file shall be updated instead of created. Currently that always happens in-place.
|
#
4512e8d5669716c2d0e41f6f117cb86635482ebc |
|
30-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Add optional FD parameter to AddEntry() If a FD is specified, instead of using the file with the given the FD is used. Allows for adding entries without first copying them into the directory structure.
|
#
4cf5f9293fa9bd941c1cf1072042b90d11e4f5d3 |
|
30-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Cleanup
|
#
33bc4425be0b545ed3d0b7e7a9a873d31e5a0330 |
|
12-Feb-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Largish adjustments to PackagerReaderImpl and package attribute handling: * package attributes are now compatible with the low level attribute handling of other HPKG attributes (such that 'package dump' now shows package attributes, too) * dropped type names from hpkg format, the attributes were identified by IDs already and this simplifies the code considerably. Type names are now handled in BLowLevelPackageHandler only. * instead of rolling their own mechanism, high-level package attributes handling is now implemented via a corresonding set of AttributeHandler-subclasses * adjusted package writer to only write package attributes that are needed (empty ones are left out) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40466 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d77c6cd26a5cf3863ba4258a063d7d8645abf1e3 |
|
08-Feb-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* implemented checking of licenses, such that it is no longer possible to create a package that refers to a license that is not a system license or contained in the package * added package-info flags (currently only approve_license and system_package) * adjusted package-reader/writer and pkgman accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40393 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f202217364f40d170b7bf07b60a75457b275b0c1 |
|
07-Feb-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Refactoring step towards implementation of RepositoryWriter: * pulled commonly useful parts out of PackageWriterImpl into WriterImplBase * moved CachedStringTable and related methods into a separate class, StringCache, in order to support having more than one string cache per package file * made package attribute section use a string cache, too, as that's going to be very useful for repositories * instead of writing package attributes directly, we now collect corresponding PackageAttributes and write those later * adjusted package reader accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40376 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7fd711ef9999af8ce8dc6c44509ee154230b8d90 |
|
31-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* refactored PackageWriter(Impl) to no longer print anything itself, but publish that info through a BPackageWriterListener * adjusted 'package create' to print a package summary by default and more verbose info upon request. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40332 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
95d84e41761622cc71312fa8012a4ceb36836856 |
|
30-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* attributed copyright in all public HPKG headers to Haiku, Inc. * added my own copyright to a couple of files that I changed git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40321 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5fb1c6ff1f55fe4094a761b653041b3a0b9abf1d |
|
30-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Refactored hpkg implementation to provide some separation between public and private API (still far from ideal, but a start): * moved several HPKG-classes into the public namespace BPackageKit::HPKG * added fImpl-wrappers around PackageReader and PackageWriter to hide most of the gory details * adjusted 'package'-binary and packagefs accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40320 a95241bf-73f2-0310-859d-f6bbb57e9c96
|