Package backend :: Module createrepo
[hide private]
[frames] | no frames]

Module createrepo

source code

Functions [hide private]
 
createrepo_unsafe(path, lock=None, dest_dir=None, base_url=None)
Run createrepo_c on the given path
source code
 
createrepo(path, front_url, username, projectname, base_url=None, lock=None)
Creates repo depending on the project setting "auto_createrepo".
source code
Variables [hide private]
  __package__ = 'backend'
Function Details [hide private]

createrepo_unsafe(path, lock=None, dest_dir=None, base_url=None)

source code 

    Run createrepo_c on the given path

    Warning! This function doesn't check user preferences.
    In most cases use `createrepo(...)`

:param string path: target location to create repo
:param lock: [optional]
:param str dest_dir: [optional] relative to path location for repomd, in most cases
    you should also provide base_url.
:param str base_url: optional parameter for createrepo_c, "--baseurl"

:return tuple: (return_code,  stdout, stderr)

createrepo(path, front_url, username, projectname, base_url=None, lock=None)

source code 

    Creates repo depending on the project setting "auto_createrepo".
    When enabled creates `repodata` at the provided path, otherwise

:param path: directory with rpms
:param front_url: url to the copr frontend
:param username: copr project owner username
:param projectname: copr project name
:param base_url: base_url to access rpms independently of repomd location
:param Multiprocessing.Lock lock:  [optional] global copr-backend lock

:return: tuple(returncode, stdout, stderr) produced by `createrepo_c`