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

modulize #41

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

modulize #41

wants to merge 3 commits into from

Conversation

ychai23
Copy link
Contributor

@ychai23 ychai23 commented Aug 18, 2022

Modulize main function, pls recommend suggested changes.

@Ankitha-Sathyanarayana
Copy link
Contributor

Ankitha-Sathyanarayana commented Aug 19, 2022

Separating the code in main which specifies the exact -patches branch can be moved to a different method.
https://github.com/red-hat-storage/rdopkg-tar/blob/main/rdopkg_tar/tar_changes.py#L185

Copy link
Collaborator

@bigjust bigjust left a comment

Choose a reason for hiding this comment

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

This appears to be mostly reversions of things merged into main recently. can you rebase (you may have to revert then interactively add relevant sections) so that only the changes relevant to this PR?

Comment on lines 157 to 161
def parse_args(parsed_params):
"""
parse args from the spec file and assign to the collection parsed_params
args assigned: branch, patches_branch, changes, tarball, osdist, args
"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd rather initialize parsed_params in the parse_args function, we can just return it

Comment on lines 230 to 231
params = parsed_params(branch, patches_branch, changes, tarball, osdist, args)

Copy link
Collaborator

Choose a reason for hiding this comment

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

You can just return parsed_params(...) here

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.

3 participants