pkgcore.fs.tar module

binpkg tar utilities

pkgcore.fs.tar.add_contents_to_tarfile(contents_set, tar_fd, absolute_paths=False)[source]
pkgcore.fs.tar.archive_to_fsobj(src_tar)[source]
pkgcore.fs.tar.convert_archive(archive)[source]
pkgcore.fs.tar.fsobj_to_tarinfo(fsobj, absolute_path=True)[source]
pkgcore.fs.tar.generate_contents(filepath, compressor='bz2', parallelize=True)[source]

generate a contentset from a tarball

Parameters:
  • filepath – string path to location on disk

  • compressor – defaults to bz2; decompressor to use, see known_compressors for list of valid compressors

pkgcore.fs.tar.write_set(contents_set, filepath, compressor='bzip2', absolute_paths=False, parallelize=False)[source]