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

unify external command invocation #102

Merged

Conversation

lbarcziova
Copy link
Member

Fixes #33

@packit-as-a-service
Copy link

Congratulations! The build has finished successfully. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/packit-service-ogr-102
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

Copy link
Member

@lachmanfrantisek lachmanfrantisek left a 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
)
Copy link
Member

Choose a reason for hiding this comment

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

👍

@lachmanfrantisek lachmanfrantisek merged commit ee2e6c3 into packit:master Jul 9, 2019
)
output = proc.stderr.read().decode()
logger.debug("Clone exited with {} and output: {}".format(proc.returncode, output))
if "does not exist yet" in output:
Copy link
Member

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()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
output = proc.stderr.read().decode()
output = proc.stderr.decode()

since AttributeError: 'bytes' object has no attribute 'read'

Copy link
Member Author

Choose a reason for hiding this comment

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

I will fix it

@lachmanfrantisek
Copy link
Member

@jpopelka sorry for the quick merge...

@lbarcziova Can you please fix the suggestions by @jpopelka in the second pull-request?

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.

Unify external command invocation
3 participants