-
Notifications
You must be signed in to change notification settings - Fork 158
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 support for --updates to mkksiso #1366
Conversation
Pull Request Test Coverage Report for Build 7732724437
💛 - Coveralls |
You should already be able to do this by passing Having a dedicated command is slightly nicer of course, but it also skips the CheckBigFiles function. |
Yes, I know but it means that you have to document the approach of how to use this command and it's prone to typos. For that reason I think separate option is better and could be promoted as easy way to develop / debug Anaconda. I'll add the CheckBigFiles support. |
f8670dd
to
d219d3f
Compare
Updated to resolve pending issues. |
src/bin/mkksiso
Outdated
if updates_image: | ||
cmd.extend(["-map", updates_image, "updates/updates.img"]) | ||
|
||
if CheckBigFiles(add_paths + [updates_image]): |
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.
You need to check if updates_img is empty, otherwise you end up with [""]
(which the tests caught, woo hoo!)
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.
Should be fixed. Feel free to say if you don't like to have this kind of expression. I like it but might be harder to read for someone.
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 usually like those, but I think having it as an argument to a function call makes the function it harder to read. Even just moving it up and giving it a new variable:
check_paths = add_paths if not updates_image else add_paths + [updates_image]
if CheckBigFiles(check_paths):
is easier, I think.
It would be great way to avoid requirement for HTTP server for local development.
d219d3f
to
6dae539
Compare
I tweaked the CheckBigFiles call and rewrote the commit message to be a bit clearer about what this does and merged it locally. |
It would be great way to avoid requirement for HTTP server for local development.