pkgcore.binpkg.xpak module

XPAK container support

exception pkgcore.binpkg.xpak.MalformedXpak(msg)[source]

Bases: PkgcoreException

class pkgcore.binpkg.xpak.Xpak(source)[source]

Bases: object

get(key, default=None)[source]
header = <snakeoil.struct_compat.Struct object>
header_pre_magic = b'XPAKPACK'
items()[source]
keys()[source]
keys_dict
pop(key, *a)[source]
trailer = <snakeoil.struct_compat.Struct object>
trailer_post_magic = b'STOP'
trailer_pre_magic = b'XPAKSTOP'
values()[source]
classmethod write_xpak(target_source, data)[source]

write an xpak dict to disk; overwriting an xpak if it exists

Parameters:
Returns:

xpak instance

xpak_start