pkgcheck.checks.network module

Various checks that require network support.

class pkgcheck.checks.network.DeadUrl(attr, url, message, **kwargs)[source]

Bases: _UrlResult

Package with a dead URL of some type.

name = 'DeadUrl'
class pkgcheck.checks.network.FetchablesUrlCheck(*args, use_addon, **kwargs)[source]

Bases: _UrlCheck

Verify SRC_URI URLs.

required_addons = (<class 'pkgcheck.addons.UseAddon'>,)
scope = <PackageScope desc='version' @0x7fc9bedc9290>
class pkgcheck.checks.network.HomepageUrlCheck(*args, net_addon, **kwargs)[source]

Bases: _UrlCheck

Verify HOMEPAGE URLs.

scope = <PackageScope desc='version' @0x7fc9bedc9290>
class pkgcheck.checks.network.HttpsUrlAvailable(attr, url, new_url, **kwargs)[source]

Bases: _UpdatedUrlResult

URL uses http:// when https:// is available.

message = 'HTTPS url available'
name = 'HttpsUrlAvailable'
class pkgcheck.checks.network.MetadataUrlCheck(*args, **kwargs)[source]

Bases: _UrlCheck

Verify metadata.xml URLs.

schedule(pkgs, *args, **kwargs)[source]

Schedule verification methods to run in separate threads for all flagged URLs.

scope = <PackageScope desc='package' @0x7fc9bedc8f50>
class pkgcheck.checks.network.RedirectedUrl(attr, url, new_url, **kwargs)[source]

Bases: _UpdatedUrlResult

Package with a URL that permanently redirects to a different site.

message = 'permanently redirected'
name = 'RedirectedUrl'
exception pkgcheck.checks.network.RequestError(exc, msg=None)[source]

Bases: _RequestException

Wrapper for generic requests exception.

class pkgcheck.checks.network.SSLCertificateError(attr, url, message, **kwargs)[source]

Bases: _UrlResult

Package with https:// HOMEPAGE with an invalid SSL cert.

property desc

Result description.

name = 'SSLCertificateError'
exception pkgcheck.checks.network.SSLError(exc, msg=None)[source]

Bases: _RequestException

Wrapper for requests SSLError exception.