Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crawler: also crawl https-only mirrors #192

Merged
merged 1 commit into from Sep 29, 2016
Merged

crawler: also crawl https-only mirrors #192

merged 1 commit into from Sep 29, 2016

Conversation

adrianreber
Copy link
Member

The function which selects the crawl protocol only knows
about 'rsync:', 'http:' and 'ftp:'.

A mirror which only provides 'https' will never be crawled.

This only changes 'http:' to 'http'.

Signed-off-by: Adrian Reber adrian@lisas.de

pref = None
for u in urls:
if prev.startswith('rsync:'):
break
if u.startswith('rsync:'):
return u
for u in urls:
if u.startswith('http:'):
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer a "if u.startswith(('http:', 'https:'))", so that we have the colon included at least, so we know it's a protocol indication.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, changed.

The function which selects the crawl protocol only knows
about 'rsync:', 'http:' and 'ftp:'.

A mirror which only provides 'https' will never be crawled.

Now 'http:' (and 'https:' only) mirrors will be crawled.

Signed-off-by: Adrian Reber <adrian@lisas.de>
@adrianreber adrianreber merged commit 57ae0cf into fedora-infra:master Sep 29, 2016
@adrianreber adrianreber deleted the http branch September 29, 2016 14:02
@adrianreber
Copy link
Member Author

Fixes #183

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.

None yet

2 participants