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
- header = <snakeoil.struct_compat.Struct object>¶
- header_pre_magic = b'XPAKPACK'¶
- keys_dict¶
- trailer = <snakeoil.struct_compat.Struct object>¶
- trailer_post_magic = b'STOP'¶
- trailer_pre_magic = b'XPAKSTOP'¶
- classmethod write_xpak(target_source, data)[source]¶
write an xpak dict to disk; overwriting an xpak if it exists
- Parameters:
target_source – string path, or
snakeoil.data_source.base
derivativedata – mapping instance to write into the xpak.
- Returns:
xpak instance
- xpak_start¶