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

[modularity] module enabling based on rpms #951

Merged

Conversation

mhatina
Copy link

@mhatina mhatina commented Oct 12, 2017

  • 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


nevra = "{}-{}.{}".format(pkg.name, pkg.evr, pkg.arch)
if nevra in version.module_metadata.artifacts.rpms and \
pkg in not_in_enabled:
Copy link
Member

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

nevra = "{}-{}:{}.{}".format(pkg.name, pkg.epoch, pkg.evr, pkg.arch)

if nevra in version.module_metadata.artifacts.rpms:
print (nevra)
Copy link
Member

Choose a reason for hiding this comment

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

[flake8]

  • [E211] whitespace before '('

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()
Copy link
Member

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

def disable(self, module_spec):
if save_immediately:
self.base._module_persistor.commit()
self.base._module_persistor.save()
Copy link
Member

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

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()
Copy link
Member

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

def lock(self, module_spec):
if save_immediately:
self.base._module_persistor.commit()
self.base._module_persistor.save()
Copy link
Member

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

@@ -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()
Copy link
Member

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


if save_immediately:
self.base._module_persistor.commit()
self.base._module_persistor.save()
Copy link
Member

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

@@ -188,6 +237,11 @@ def unlock(self, module_spec):
raise EnabledStreamException(module_spec)

repo_module.unlock()

if save_immediately:
self.base._module_persistor.commit()
Copy link
Member

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


if save_immediately:
self.base._module_persistor.commit()
self.base._module_persistor.save()
Copy link
Member

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

@mhatina mhatina force-pushed the modules_12102017 branch 2 times, most recently from beab5f9 to c0ef7ce Compare October 12, 2017 08:32
@mhatina mhatina force-pushed the modules_12102017 branch 2 times, most recently from e96b318 to 2361aac Compare October 16, 2017 11:18
@alexxa
Copy link

alexxa commented Oct 18, 2017

@mhatina, can you add to a spec file that package of @ignatenkobrain which fixes module list thing, please?

@mhatina
Copy link
Author

mhatina commented Oct 18, 2017

@alexxa it is in commit d2bd0f3

@mhatina
Copy link
Author

mhatina commented Oct 18, 2017

@alexxa also there is a change in UI (20ca752)

@dmach
Copy link

dmach commented Oct 18, 2017

@rh-atomic-bot r+

rh-atomic-bot pushed a commit that referenced this pull request Oct 18, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 18, 2017
Closes: #951
Approved by: dmach
@rh-atomic-bot
Copy link

💔 Test failed - status-papr

@ignatenkobrain
Copy link
Contributor

@rh-atomic-bot retry

@rh-atomic-bot
Copy link

⌛ Testing commit 9161336 with merge fa2702a...

rh-atomic-bot pushed a commit that referenced this pull request Oct 19, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 19, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 19, 2017
rh-atomic-bot pushed a commit that referenced this pull request Oct 19, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 19, 2017
rh-atomic-bot pushed a commit that referenced this pull request Oct 19, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 19, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 19, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 19, 2017
Closes: #951
Approved by: dmach
@rh-atomic-bot
Copy link

💔 Test failed - status-papr

@mhatina
Copy link
Author

mhatina commented Oct 23, 2017

@rh-atomic-bot retry

@rh-atomic-bot
Copy link

⌛ Testing commit 9161336 with merge 2791659...

rh-atomic-bot pushed a commit that referenced this pull request Oct 23, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 23, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 23, 2017
rh-atomic-bot pushed a commit that referenced this pull request Oct 23, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 23, 2017
rh-atomic-bot pushed a commit that referenced this pull request Oct 23, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 23, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 23, 2017
Closes: #951
Approved by: dmach
rh-atomic-bot pushed a commit that referenced this pull request Oct 23, 2017
Closes: #951
Approved by: dmach
@ignatenkobrain
Copy link
Contributor

@mhatina, DNF is broken at this point, @j-mracek is supposed to look at it. If this is critical, just merge it by hands

@ignatenkobrain
Copy link
Contributor

also, new python-smartcols is not yet in stable

@mhatina
Copy link
Author

mhatina commented Oct 23, 2017

@ignatenkobrain ok, I will merge it by hand and inform users to enable updates-testing repo so they can update to latest python-smartcols

@mhatina mhatina merged commit 7493ec8 into rpm-software-management:wip/modularity Oct 23, 2017
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.

None yet

6 participants