Archive module¶
- class rebasehelper.archive.Archive(filename)[source]¶
Class representing an archive with sources
- class rebasehelper.archive.ArchiveTypeBase[source]¶
Base class for various archive types
- EXTENSION: str = ''¶
- classmethod extract(archive, filename, path)[source]¶
Extracts the archive into the given path
- Parameters:
path – Path where to extract the archive to.
- Returns:
- class rebasehelper.archive.GemArchiveType[source]¶
- EXTENSION: str = '.gem'¶
- class rebasehelper.archive.TarBz2ArchiveType[source]¶
- EXTENSION: str = '.tar.bz2'¶
- class rebasehelper.archive.TarGzArchiveType[source]¶
- EXTENSION: str = '.tar.gz'¶
- class rebasehelper.archive.TarXzArchiveType[source]¶
- EXTENSION: str = '.tar.xz'¶
- class rebasehelper.archive.ZipArchiveType[source]¶
- EXTENSION: str = '.zip'¶
- classmethod extract(archive, filename, path)[source]¶
Extracts the archive into the given path
- Parameters:
path – Path where to extract the archive to.
- Returns: