Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9337264
D1899.id6371.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
733 B
Subscribers
None
D1899.id6371.diff
View Options
diff --git a/swh/loader/tar/loader.py b/swh/loader/tar/loader.py
--- a/swh/loader/tar/loader.py
+++ b/swh/loader/tar/loader.py
@@ -128,6 +128,8 @@
'debug': ('bool', False), # NOT FOR PRODUCTION
}
+ visit_type = 'tar'
+
def __init__(self, logging_class='swh.loader.tar.TarLoader', config=None):
super().__init__(logging_class=logging_class, config=config)
self.local_cache = None
@@ -169,7 +171,7 @@
"""
self.origin = origin
if 'type' not in self.origin: # let the type flow if present
- self.origin['type'] = 'tar'
+ self.origin['type'] = self.visit_type
self.visit_date = visit_date
def get_tarball_url_to_retrieve(self):
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 3 2025, 7:58 AM (10 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3228138
Attached To
D1899: Add attribute visit_type to tar loader
Event Timeline
Log In to Comment