Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124368
D6737.id24471.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D6737.id24471.diff
View Options
diff --git a/swh/loader/package/debian/loader.py b/swh/loader/package/debian/loader.py
--- a/swh/loader/package/debian/loader.py
+++ b/swh/loader/package/debian/loader.py
@@ -126,7 +126,6 @@
self,
storage: StorageInterface,
url: str,
- date: str,
packages: Mapping[str, Any],
max_content_size: Optional[int] = None,
):
diff --git a/swh/loader/package/debian/tasks.py b/swh/loader/package/debian/tasks.py
--- a/swh/loader/package/debian/tasks.py
+++ b/swh/loader/package/debian/tasks.py
@@ -9,7 +9,7 @@
@shared_task(name=__name__ + ".LoadDebian")
-def load_deb_package(*, url, date, packages):
+def load_deb_package(*, url, packages):
"""Load Debian package"""
- loader = DebianLoader.from_configfile(url=url, date=date, packages=packages)
+ loader = DebianLoader.from_configfile(url=url, packages=packages)
return loader.load()
diff --git a/swh/loader/package/debian/tests/test_debian.py b/swh/loader/package/debian/tests/test_debian.py
--- a/swh/loader/package/debian/tests/test_debian.py
+++ b/swh/loader/package/debian/tests/test_debian.py
@@ -111,12 +111,7 @@
"""With no prior visit, load a gnu project ends up with 1 snapshot
"""
- loader = DebianLoader(
- swh_storage,
- URL,
- date="2019-10-12T05:58:09.165557+00:00",
- packages=PACKAGE_PER_VERSION,
- )
+ loader = DebianLoader(swh_storage, URL, packages=PACKAGE_PER_VERSION,)
actual_load_status = loader.load()
expected_snapshot_id = "ad1367b5470a03857be7c7325a5a8bde698e1800"
@@ -182,12 +177,7 @@
"""With no prior visit, load a debian project ends up with 1 snapshot
"""
- loader = DebianLoader(
- swh_storage,
- URL,
- date="2019-10-12T05:58:09.165557+00:00",
- packages=PACKAGE_PER_VERSION,
- )
+ loader = DebianLoader(swh_storage, URL, packages=PACKAGE_PER_VERSION,)
actual_load_status = loader.load()
@@ -439,12 +429,7 @@
def test_debian_multiple_packages(swh_storage, requests_mock_datadir):
- loader = DebianLoader(
- swh_storage,
- URL,
- date="2019-10-12T05:58:09.165557+00:00",
- packages=PACKAGES_PER_VERSION,
- )
+ loader = DebianLoader(swh_storage, URL, packages=PACKAGES_PER_VERSION,)
actual_load_status = loader.load()
expected_snapshot_id = "a83fa5c089b048161f0677b9614a4aae96a6ca18"
diff --git a/swh/loader/package/debian/tests/test_tasks.py b/swh/loader/package/debian/tests/test_tasks.py
--- a/swh/loader/package/debian/tests/test_tasks.py
+++ b/swh/loader/package/debian/tests/test_tasks.py
@@ -12,7 +12,7 @@
res = swh_scheduler_celery_app.send_task(
"swh.loader.package.debian.tasks.LoadDebian",
- kwargs=dict(url="some-url", date="some-date", packages={}),
+ kwargs=dict(url="some-url", packages={}),
)
assert res
res.wait()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 8:44 AM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3215768
Attached To
D6737: debian: Fix a couple of issues in the loader
Event Timeline
Log In to Comment