|
|
|
|
|
|
|
|
|
parse_package_name(pkg)
Parse package name from possibly incomplete nvra string. |
source code
|
|
|
|
|
fix_protocol_for_backend(url)
Ensure that url either has http or https protocol according to the
option in app config "ENFORCE_PROTOCOL_FOR_BACKEND_URL" |
source code
|
|
|
fix_protocol_for_frontend(url)
Ensure that url either has http or https protocol according to the
option in app config "ENFORCE_PROTOCOL_FOR_FRONTEND_URL" |
source code
|
|
|
get_redis_connection()
Creates connection to redis, now we use default instance at
localhost, no config needed |
source code
|
|
|
dt_to_unixtime(dt)
Converts datetime to unixtime :param dt: DateTime instance :rtype:
float |
source code
|
|
|
string_dt_to_unixtime(dt_string)
Converts datetime to unixtime from string :param dt_string: datetime
string :rtype: str |
source code
|
|
|
is_ip_from_builder_net(ip)
Checks is ip is owned by the builders network :param str ip: IPv4
address :return bool: True |
source code
|
|
|
|
|
copr_url(view,
copr,
**kwargs)
Examine given copr and generate proper URL for the `view` |
source code
|
|
|
url_for_copr_view(view,
group_view,
copr,
**kwargs) |
source code
|
|
|
|
|
|
|
generate_repo_name(repo_url)
based on url, generate repo name |
source code
|
|
|
pre_process_repo_url(chroot,
repo_url)
Expands variables and sanitize repo url to be used for mock config |
source code
|
|
|
generate_build_config(copr,
chroot_id)
Return dict with proper build config contents |
source code
|
|