pkgcore.fetch package

Submodules

Module contents

functionality related to downloading files

class pkgcore.fetch.default_mirror(mirrors, mirror_name)[source]

Bases: mirror

class pkgcore.fetch.fetchable(filename, uri=None, chksums=None)[source]

Bases: object

class representing uri sources for a file and chksum information.

chksums
filename
property upstream

Return a new fetchable with all mirror URIs removed.

uri
class pkgcore.fetch.mirror(mirrors, mirror_name)[source]

Bases: object

uri source representing a mirror tier

mirror_name
mirrors
class pkgcore.fetch.uri_list(filename)[source]

Bases: object

add_mirror(mirror_inst, sub_uri=None)[source]
add_uri(uri)[source]
filename
finalize()[source]
remove_mirrors()[source]

Return a new URI source list after dropping all mirror-based URIs.

visit_mirrors(invert=False, treat_default_as_mirror=True)[source]