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 | |
parent | d4b5d537234aecb8974e38976ced44e0a77290b6 (diff) | |
download | rpmtools-2abfaffd2dc73af57053ea85987968060d029dfd.tar rpmtools-2abfaffd2dc73af57053ea85987968060d029dfd.tar.gz rpmtools-2abfaffd2dc73af57053ea85987968060d029dfd.tar.bz2 rpmtools-2abfaffd2dc73af57053ea85987968060d029dfd.tar.xz rpmtools-2abfaffd2dc73af57053ea85987968060d029dfd.zip |
- more docsv5_0_5
-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> |