Skip to content

Conversation

AyanSinhaMahapatra
Copy link
Member

Reference: #685

@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the minecode-pipeline-cpan branch 3 times, most recently from 8783ec5 to afd274c Compare September 30, 2025 22:46
Reference: #685
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
cpan_packages_url = cpan_repo + "modules/02packages.details.txt.gz"
local_filename = "cpan_packages.gz"

response = requests.get(cpan_packages_url, stream=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use fetch_http (from scanpipe.pipes.fetch import fetch_http) to handle downloads

You can do

cpan_packages_gz_download = fetch_http(cpan_packages_url)
with gzip.open(cpan_packages_gz_download.path, "rb") as f_in:
    ...

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants