-
Notifications
You must be signed in to change notification settings - Fork 2
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
Couldn't we shorten install() #37
Comments
I love when complexity collapses! thanks for pointing this out. I think we could also move a significant block into |
may be you have a look at my pull request for install() an the use off get_all_dependencies()... |
"force" could be used if a package is broken and need's a reinstall. So if force is true we don't check versions but do an install with the localy zipped tar. |
Only part I didn't use was removal of `reversed(req)`. The intent of original code here is to install the dependencies in reverse order. Theoretically this sidesteps any issues of "can't install X because Y isn't installed yet". I don't see a reason to stop that (but could be persuaded).
in a37a755 discovered that |
with get_all_dependencies we get all packages to be installed in an list, odered by dependencies, starting with basic packages and ending with those dependending on the foregoing. So we need not to distinguish between packages[] and requiered[] anymore. Also we clean the list froms doubles, so we needn't unique() twice?
just
The text was updated successfully, but these errors were encountered: