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
= ''¶
-
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
= '.gem'¶
-
-
class
rebasehelper.archive.
TarBz2ArchiveType
[source]¶ -
EXTENSION
= '.tar.bz2'¶
-
-
class
rebasehelper.archive.
TarGzArchiveType
[source]¶ -
EXTENSION
= '.tar.gz'¶
-
-
class
rebasehelper.archive.
TarXzArchiveType
[source]¶ -
EXTENSION
= '.tar.xz'¶
-
-
class
rebasehelper.archive.
ZipArchiveType
[source]¶ -
EXTENSION
= '.zip'¶
-
classmethod
extract
(archive, filename, path)[source]¶ Extracts the archive into the given path
Parameters: path – Path where to extract the archive to. Returns:
-