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
[modularity] module enabling based on rpms #951
[modularity] module enabling based on rpms #951
Conversation
mhatina
commented
Oct 12, 2017
•
edited
edited
- module list output fixed
- module enabling based on rpms
- do not enable module when transaction fails
- enable module runtime dependencies, when enabling module:stream
- accept no profile when installing module, but inform user about it
- install new rpms when updating profiles
- limit the width of module list command
dnf/module/repo_module_dict.py
Outdated
|
||
nevra = "{}-{}.{}".format(pkg.name, pkg.evr, pkg.arch) | ||
if nevra in version.module_metadata.artifacts.rpms and \ | ||
pkg in not_in_enabled: |
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.
[flake8]
- [E127] continuation line over-indented for visual indent
dnf/module/repo_module_dict.py
Outdated
nevra = "{}-{}:{}.{}".format(pkg.name, pkg.epoch, pkg.evr, pkg.arch) | ||
|
||
if nevra in version.module_metadata.artifacts.rpms: | ||
print (nevra) |
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.
[flake8]
- [E211] whitespace before '('
2492870
to
9ed4e94
Compare
dnf/module/repo_module_dict.py
Outdated
subj = ModuleSubject(module_spec) | ||
module_version, module_form = subj.find_module_version(self) | ||
|
||
self[module_version.name].enable(module_version.stream, self.base.conf.assumeyes) | ||
|
||
def disable(self, module_spec): | ||
if save_immediately: | ||
self.base._module_persistor.commit() |
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.
[flake8]
- [E111] indentation is not a multiple of four
dnf/module/repo_module_dict.py
Outdated
def disable(self, module_spec): | ||
if save_immediately: | ||
self.base._module_persistor.commit() | ||
self.base._module_persistor.save() |
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.
[flake8]
- [E111] indentation is not a multiple of four
dnf/module/repo_module_dict.py
Outdated
subj = ModuleSubject(module_spec) | ||
module_version, module_form = subj.find_module_version(self) | ||
|
||
repo_module = module_version.repo_module | ||
repo_module.disable() | ||
|
||
def lock(self, module_spec): | ||
if save_immediately: | ||
self.base._module_persistor.commit() |
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.
[flake8]
- [E111] indentation is not a multiple of four
dnf/module/repo_module_dict.py
Outdated
def lock(self, module_spec): | ||
if save_immediately: | ||
self.base._module_persistor.commit() | ||
self.base._module_persistor.save() |
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.
[flake8]
- [E111] indentation is not a multiple of four
dnf/module/repo_module_dict.py
Outdated
@@ -176,9 +220,14 @@ def lock(self, module_spec): | |||
raise EnabledStreamException(module_spec) | |||
|
|||
repo_module.lock(module_version.version) | |||
|
|||
if save_immediately: | |||
self.base._module_persistor.commit() |
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.
[flake8]
- [E111] indentation is not a multiple of four
dnf/module/repo_module_dict.py
Outdated
|
||
if save_immediately: | ||
self.base._module_persistor.commit() | ||
self.base._module_persistor.save() |
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.
[flake8]
- [E111] indentation is not a multiple of four
dnf/module/repo_module_dict.py
Outdated
@@ -188,6 +237,11 @@ def unlock(self, module_spec): | |||
raise EnabledStreamException(module_spec) | |||
|
|||
repo_module.unlock() | |||
|
|||
if save_immediately: | |||
self.base._module_persistor.commit() |
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.
[flake8]
- [E111] indentation is not a multiple of four
dnf/module/repo_module_dict.py
Outdated
|
||
if save_immediately: | ||
self.base._module_persistor.commit() | ||
self.base._module_persistor.save() |
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.
[flake8]
- [E111] indentation is not a multiple of four
beab5f9
to
c0ef7ce
Compare
e96b318
to
2361aac
Compare
2361aac
to
dcc2604
Compare
@mhatina, can you add to a spec file that package of @ignatenkobrain which fixes module list thing, please? |
5f04bf3
to
d2bd0f3
Compare
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
💔 Test failed - status-papr |
@rh-atomic-bot retry |
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
💔 Test failed - status-papr |
@rh-atomic-bot retry |
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
Closes: #951 Approved by: dmach
also, new python-smartcols is not yet in stable |
@ignatenkobrain ok, I will merge it by hand and inform users to enable updates-testing repo so they can update to latest python-smartcols |