Bug 1510939 - [modularity] disabled module still receives updates
Summary: [modularity] disabled module still receives updates
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Hatina
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1478068
TreeView+ depends on / blocked
 
Reported: 2017-11-08 13:10 UTC by Jan Blazek
Modified: 2018-03-13 08:04 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-13 08:04:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Blazek 2017-11-08 13:10:56 UTC
Disabled module still receives updates.

Feature: Disabling module stream # behave/module-disable-2-dnf-3.feature:1

  @setup
  Scenario: Testing repository Setup                          # behave/module-disable-2-dnf-3.feature:4
    Given I run steps from file "modularity-repo-1.setup"     # behave/steps/file_steps.py:181
    When I enable repository "modularityABDE"                 # behave/steps/repo_steps.py:520
    And I successfully run "dnf -y module enable ModuleB:f26" # behave/steps/command_steps.py:34

  Scenario: Disabled but installed profile should not be receiving updates  # behave/module-disable-2-dnf-3.feature:9
    Given I successfully run "dnf module install -y ModuleB:f26:1/default"  # behave/steps/command_steps.py:34
    And I successfully run "dnf module disable ModuleB"                     # behave/steps/command_steps.py:34
    When I save rpmdb                                                       # behave/steps/rpm_steps.py:16
    And I successfully run "dnf update --assumeyes"                         # behave/steps/command_steps.py:34
    Then rpmdb does not change                                              # behave/steps/rpm_steps.py:151
      Assertion Failed: Element counts were not equal:
      First has 1, Second has 0:  u'TestG-1-1.modB.noarch'
      First has 1, Second has 0:  u'TestH-1-1.modB.noarch'
      First has 0, Second has 1:  u'TestG-2-1.modB.noarch'
      First has 0, Second has 1:  u'TestH-2-1.modB.noarch'



Version-Release number of selected component:
dnf-2.7.5-11.fc26.modularity.1.3fb9e5c.git.8069.189de9fNone.noarch
libdnf-0.11.1-1.fc26.x86_64

Comment 1 Martin Hatina 2017-11-09 08:26:12 UTC
Fixed by https://github.com/rpm-software-management/dnf/pull/976


Note You need to log in before you can comment on or make changes to this bug.