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

Add URL detection for argument according prefix (RhBug:1472847) #898

Closed
wants to merge 1 commit into from

Conversation

j-mracek
Copy link
Member

Additionally it reduce calls for check of available of repos if filename is
present.

https://bugzilla.redhat.com/show_bug.cgi?id=1472847

Copy link
Member

@m-blaha m-blaha left a comment

Choose a reason for hiding this comment

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

The docstring of _checkEnabledRepo function does not reflect actual parameters of this function.

@@ -91,6 +91,9 @@ def _checkEnabledRepo(base, possible_local_files=[]):
for lfile in possible_local_files:
if lfile.endswith(".rpm") and os.path.exists(lfile):
return
schemes = dnf.pycomp.urlparse.urlparse(lfile)[0]
if schemes and schemes in ('http', 'ftp', 'file', 'https'):
Copy link
Member

Choose a reason for hiding this comment

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

if schemes in ('http', 'ftp', 'file', 'https'):
should be enough
Also in variable schemes is only one scheme. Rename variable to singular "scheme"?

@ignatenkobrain
Copy link
Contributor

@rh-atomic-bot try

@rh-atomic-bot
Copy link

⌛ Trying commit db070c0 with merge 118c3df...

rh-atomic-bot pushed a commit that referenced this pull request Oct 1, 2017
Additionally it reduce calls for check of available of repos if filename is
present.

https://bugzilla.redhat.com/show_bug.cgi?id=1472847

Closes: #898
Approved by: <try>
@rh-atomic-bot
Copy link

💥 Test timed out

Additionally it reduce calls for check of available of repos if filename is
present.

https://bugzilla.redhat.com/show_bug.cgi?id=1472847
@j-mracek
Copy link
Member Author

j-mracek commented Oct 3, 2017

@m-blaha Refactored according to your request. If you will approve PR I will request the merge. Thanks a lot.

@mhatina
Copy link

mhatina commented Oct 3, 2017

@rh-atomic-bot r+

@rh-atomic-bot
Copy link

📌 Commit e0862bf has been approved by mhatina

@rh-atomic-bot
Copy link

⌛ Testing commit e0862bf with merge fc09f4b...

@rh-atomic-bot
Copy link

☀️ Test successful - status-papr
Approved by: mhatina
Pushing fc09f4b to master...

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

5 participants