Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9337569
D6135.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D6135.diff
View Options
diff --git a/swh/core/tarball.py b/swh/core/tarball.py
--- a/swh/core/tarball.py
+++ b/swh/core/tarball.py
@@ -175,8 +175,9 @@
# Additional uncompression archive format support
ADDITIONAL_ARCHIVE_FORMATS = [
- # name , extensions, function
+ # name, extensions, function
("tar.Z|x", [".tar.Z", ".tar.x"], _unpack_tar),
+ ("tbz2", [".tbz", "tbz2"], _unpack_tar),
# FIXME: make this optional depending on the runtime lzip package install
("tar.lz", [".tar.lz"], _unpack_tar),
]
diff --git a/swh/core/tests/data/archives/hello.tbz b/swh/core/tests/data/archives/hello.tbz
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/swh/core/tests/data/archives/hello.tbz2 b/swh/core/tests/data/archives/hello.tbz2
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 3 2025, 8:10 AM (10 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218629
Attached To
D6135: tarball: Add support for tbz and tbz2 tarball formats
Event Timeline
Log In to Comment