Document convenience functions.
This commit is contained in:
parent
3bd8441fa5
commit
bae89f9c67
|
@ -3,6 +3,8 @@
|
|||
* Document the --outdir option for the extract command.
|
||||
Closes: SF bug #3363964
|
||||
* Added convenience library function to handle archives.
|
||||
Documentation for those functions can be found in
|
||||
doc/development.txt.
|
||||
Closes: SF bug #3351936
|
||||
* Fix generating an RPM installer.
|
||||
Closes: SF bug #2977749
|
||||
|
@ -10,7 +12,6 @@
|
|||
* Added support for the plzip program handling LZIP archives.
|
||||
* Prevent overwriting the same file with repack.
|
||||
|
||||
|
||||
0.15 "Contraband" (released 8.4.2012)
|
||||
|
||||
* Print help when unknown options are given.
|
||||
|
|
|
@ -48,18 +48,27 @@ The convenience functions are:
|
|||
|
||||
* ``def create(archive, *filenames, **kwargs)``
|
||||
|
||||
This function create a new archive. The type of archive is determined
|
||||
This function creates a new archive. The type of archive is determined
|
||||
by the archive filename extension. The archive must not already
|
||||
exist.
|
||||
The list of filenames to add to the archive must not be empty.
|
||||
The list of filenames to add to the archive must not be empty and the
|
||||
files must exist and be readable.
|
||||
If verbose operation is set to True, additional output of the archive
|
||||
program is shown.
|
||||
|
||||
* ``def diff(archive1, archive2, verbose=False)``
|
||||
|
||||
This function
|
||||
This function lists differences in the content of the two archives.
|
||||
Both archives are extracted and the contents are compared
|
||||
recursively with the diff(1) program.
|
||||
If verbose operation is set to True, additional output of the archive
|
||||
program is shown.
|
||||
|
||||
* ``def repack(archive1, archive2, verbose=False)``
|
||||
|
||||
This function
|
||||
This function extracts the contents of archive1 and packs them
|
||||
into archive2.
|
||||
Archive1 and archive2 must be different files.
|
||||
If verbose operation is set to True, additional output of the archive
|
||||
program is shown.
|
||||
|
||||
|
|
Loading…
Reference in New Issue