Skip to content

Conversation

@raramakr
Copy link
Contributor

The fields are required for handling more use cases
Refactor: Handle directory removal logic(cleaning of build directories) in one function

…ndling in RPM and Debian packaging

Refactor: Handle directory removal logic(cleaning of build directories) in one function
Copy link
Member

@ScottTodd ScottTodd left a comment

Choose a reason for hiding this comment

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

For future PRs, can you please request reviews from RPM/DEB packaging maintainers (@nunnikri and @frepaul ?) first, before requesting a review from me? I have a very high code review load and these types of change should first be reviewed by someone closer to the given domain.

Comment on lines +89 to +90
# Clean debian build directory
remove_dir(DEBIAN_CONTENTS_DIR)
Copy link
Member

Choose a reason for hiding this comment

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

Oh, I'm just noticing that this is a global variable... you could move it into a local variable that gets passed into each function for better encapsulation.

https://google.github.io/styleguide/pyguide.html#25-mutable-global-state

This looks dangerous since it isn't clear where the variable gets set to a valid directory and this is a destructive operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: TODO

Development

Successfully merging this pull request may close these issues.

3 participants