-
Notifications
You must be signed in to change notification settings - Fork 55
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
unify external command invocation #102
unify external command invocation #102
Conversation
Congratulations! The build has finished successfully. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. LGTM
It's sad that these functions are mostly old relicts and never used..;-) I'll create an issue to remove the unused ones.
else: | ||
proc = subprocess.run( | ||
["git", "clone", repo_ssh_url], stderr=subprocess.PIPE, timeout=CLONE_TIMEOUT | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
) | ||
output = proc.stderr.read().decode() | ||
logger.debug("Clone exited with {} and output: {}".format(proc.returncode, output)) | ||
if "does not exist yet" in output: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the yet
in the failed git clone
output
proc = subprocess.run( | ||
["git", "clone", repo_ssh_url], stderr=subprocess.PIPE, timeout=CLONE_TIMEOUT | ||
) | ||
output = proc.stderr.read().decode() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output = proc.stderr.read().decode() | |
output = proc.stderr.decode() |
since AttributeError: 'bytes' object has no attribute 'read'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix it
@jpopelka sorry for the quick merge... @lbarcziova Can you please fix the suggestions by @jpopelka in the second pull-request? |
Fixes #33