Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124603
D8596.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
D8596.diff
View Options
diff --git a/swh/loader/package/utils.py b/swh/loader/package/utils.py
--- a/swh/loader/package/utils.py
+++ b/swh/loader/package/utils.py
@@ -79,14 +79,14 @@
auth: Optional[Tuple[str, str]] = None,
extra_request_headers: Optional[Dict[str, str]] = None,
) -> Tuple[str, Dict]:
- """Download a remote tarball from url, uncompresses and computes swh hashes
- on it.
+ """Download a remote file from url, and compute swh hashes on it.
Args:
- url: Artifact uri to fetch, uncompress and hash
+ url: Artifact uri to fetch and hash
dest: Directory to write the archive to
hashes: Dict of expected hashes (key is the hash algo) for the artifact
- to download (those hashes are expected to be hex string)
+ to download (those hashes are expected to be hex string). The supported
+ algorithms are defined in the :data:`swh.model.hashutil.ALGORITHMS` set.
auth: Optional tuple of login/password (for http authentication
service, e.g. deposit)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 2:17 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3226155
Attached To
D8596: package/utils: Fix download function documentation
Event Timeline
Log In to Comment