diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2004-12-15 19:52:41 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2004-12-15 19:52:41 +0000 |
commit | 2abfaffd2dc73af57053ea85987968060d029dfd (patch) | |
tree | 77fe0a3c73768e692493b37dd50a54fa09710f1f /Packdrakeng.pm | |
parent | d4b5d537234aecb8974e38976ced44e0a77290b6 (diff) | |
download | rpmtools-06a392e4457b4c3ed67af3addddd1ebac190c33b.tar rpmtools-06a392e4457b4c3ed67af3addddd1ebac190c33b.tar.gz rpmtools-06a392e4457b4c3ed67af3addddd1ebac190c33b.tar.bz2 rpmtools-06a392e4457b4c3ed67af3addddd1ebac190c33b.tar.xz rpmtools-06a392e4457b4c3ed67af3addddd1ebac190c33b.zip |
- more docsv5_0_5
Diffstat (limited to 'Packdrakeng.pm')
-rw-r--r-- | Packdrakeng.pm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Packdrakeng.pm b/Packdrakeng.pm index 11b93c5..aa271d5 100644 --- a/Packdrakeng.pm +++ b/Packdrakeng.pm @@ -771,6 +771,33 @@ Options are same than the C<new()> function. =back +=item B<Packdrakeng->add_virtual($type, $filename, $data)> + +Add a file into archive according passed information. + +$type gives the type of the file: + +- 'd', the file will be a directory, store as '$filename'. $data is not use; +- 'l', the file will be a symlink named $filename, pointing to the file whose path + is given by the string $data; +- 'f', the file is a normal file, $filename will be its name, $data is an handle to + open file, data will be read from current position to the end of file. + +=item B<Packdrakeng->add($prefix, @files)> + +Add @files into archive located into $prefix. Only directory, files and symlink +will be added. For each file, the path should be relative to $prefix and is +stored as is. + +=item B<Packdrakeng->extract_virtual(*HANDLE, $filename)> + +Extract $filename data from archive into the *HANDLE. $filename should be a +normal file. + +=item B<Packdrakeng->extract($destdir, @files)> + +Extract @files from the archive into $destdir prefix. + =head1 AUTHOR Olivier Thauvin <nanardon@mandrake.org> |