1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
.. _lib:
The Librepo Library
===================
Classes
-------
Librepo includes several classes:
.. toctree::
handle
result
packagetarget
Exceptions
----------
Librepo module has only one own exception.
.. class:: LibrepoException
Value of this exception is tuple with three elements:
``(return code, error message, general error message)``
* Return code is a value from: :ref:`error-codes-label`.
* String with a descriptive description of the error.
* General error message based on rc (feel free to ignore this message)
Constants
----------
.. automodule:: librepo
Functions
---------
.. autofunction:: checksum_str_to_type
.. autofunction:: download_packages
.. autofunction:: download_url
.. autofunction:: yum_repomd_get_age
Debugging
---------
Some tricky/unsafe stuff which can be useful during developing and debugging,
but definitely shouldn't be used in production.
.. autofunction:: log_set_file
.. autofunction:: log_remove_handler
.. autofunction:: set_debug_log_handler
|