Hi,
here is the output of foreman-rake console:
irb(main):001:0> ::Katello::ModuleStream.where(name: 'ant', stream: '1.10', version: '820181213135032', context: '5ea3b708', arch: "x86_64").map { |stream| { stream_id: stream.id, repositories: stream.repositories.map { |r| { id: r.id, name: r.name } } } }
=> [{:stream_id=>430, :repositories=>[{:id=>1, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>749, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>283, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>687, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>287, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>439, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>470, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>375, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>534, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>860, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>592, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>635, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>665, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>565, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}, {:id=>732, :name=>"Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8"}]}]
The rpms are provided by only the Appstream Repo RHEL8.
In the modules.yaml duplicate entries were made once with the stream value with quotation marks and once without for the same package ant,subversion and scala.
Here a snippet:
---
document: modulemd
version: 2
data:
name: ant
stream: 1.10
version: 820181213135032
context: 5ea3b708
arch: x86_64
summary: Java build tool
description: >-
Apache Ant is a Java library and command-line tool whose mission is to drive processes
described in build files as targets and extension points dependent upon each other.
The main known usage of Ant is the build of Java applications. Ant supplies a
number of built-in tasks allowing to compile, assemble, test and run Java applications.
Ant can also be used effectively to build non Java applications, for instance
C or C++ applications. More generally, Ant can be used to pilot any type of process
which can be described in terms of targets and tasks.
license:
module:
- MIT
content:
- ASL 2.0
xmd:
mbs:
mse: TRUE
scmurl: git://pkgs.devel.redhat.com/modules/ant?#b714d3c51217e45d0cc8b7a2756be6cca5b58f90
commit: b714d3c51217e45d0cc8b7a2756be6cca5b58f90
buildrequires:
javapackages-tools:
filtered_rpms: []
ref: b8556cc718a858e88d7efa3ff125508ba7bdd878
stream: 201801
context: dca7b4a4
version: 820181211123648
koji_tag: module-javapackages-tools-201801-820181211123648-dca7b4a4
platform:
stream_collision_modules:
stream: el8
ref: virtual
filtered_rpms: []
ursine_rpms:
koji_tag: module-rhel-8.0.0-build
version: 2
context: 00000000
rpms:
ant:
ref: 3d2d13b14b4b4cccd2c34d8d584643417f4939d3
dependencies:
- buildrequires:
javapackages-tools: [201801]
platform: [el8]
requires:
platform: []
references:
community: https://ant.apache.org/
profiles:
common:
rpms:
- ant
api:
rpms:
- ant
filter:
rpms:
- ant-antlr
- ant-apache-bcel
- ant-apache-bsf
- ant-apache-log4j
- ant-apache-oro
- ant-apache-regexp
- ant-apache-resolver
- ant-apache-xalan2
- ant-commons-logging
- ant-commons-net
- ant-javadoc
- ant-javamail
- ant-jdepend
- ant-jmf
- ant-jsch
- ant-junit
- ant-manual
- ant-swing
- ant-testutil
- ant-xz
buildopts:
rpms:
macros: |
%_with_xmvn_javadoc 1
%_without_asciidoc 1
%_without_avalon 1
%_without_bouncycastle 1
%_without_cython 1
%_without_dafsa 1
%_without_desktop 1
%_without_doxygen 1
%_without_dtd 1
%_without_eclipse 1
%_without_ehcache 1
%_without_emacs 1
%_without_equinox 1
%_without_fop 1
%_without_ftp 1
%_without_gradle 1
%_without_groovy 1
%_without_hadoop 1
%_without_hsqldb 1
%_without_itext 1
%_without_jackson 1
%_without_jmh 1
%_without_jna 1
%_without_jpa 1
%_without_junit5 1
%_without_logback 1
%_without_markdown 1
%_without_memcached 1
%_without_memoryfilesystem 1
%_without_obr 1
%_without_python 1
%_without_reporting 1
%_without_scm 1
%_without_snappy 1
%_without_spring 1
%_without_ssh 1
%_without_testlib 1
components:
rpms:
ant:
rationale: 'Module API.
'
repository: git://pkgs.devel.redhat.com/rpms/ant
cache: http://pkgs.devel.redhat.com/repo/pkgs/ant
ref: stream-ant-1.10
buildorder: 10
arches: [aarch64, i686, ppc64le, s390x, x86_64]
artifacts:
rpms:
- ant-0:1.10.5-1.module+el8+2438+c99a8a1e.noarch
- ant-lib-0:1.10.5-1.module+el8+2438+c99a8a1e.noarch
...
---
document: modulemd
version: 2
data:
name: ant
stream: "1.10"
version: 820181213135032
context: 5ea3b708
arch: x86_64
summary: Java build tool
description: >-
Apache Ant is a Java library and command-line tool whose mission is to drive processes
described in build files as targets and extension points dependent upon each other.
The main known usage of Ant is the build of Java applications. Ant supplies a
number of built-in tasks allowing to compile, assemble, test and run Java applications.
Ant can also be used effectively to build non Java applications, for instance
C or C++ applications. More generally, Ant can be used to pilot any type of process
which can be described in terms of targets and tasks.
license:
module:
- MIT
content:
- ASL 2.0
xmd:
mbs:
buildrequires:
javapackages-tools:
context: dca7b4a4
filtered_rpms: []
koji_tag: module-javapackages-tools-201801-820181211123648-dca7b4a4
ref: b8556cc718a858e88d7efa3ff125508ba7bdd878
stream: 201801
version: 820181211123648
platform:
context: 00000000
filtered_rpms: []
koji_tag: module-rhel-8.0.0-build
ref: virtual
stream: el8
stream_collision_modules:
ursine_rpms:
version: 2
commit: b714d3c51217e45d0cc8b7a2756be6cca5b58f90
mse: TRUE
rpms:
ant:
ref: 3d2d13b14b4b4cccd2c34d8d584643417f4939d3
scmurl: git://pkgs.devel.redhat.com/modules/ant?#b714d3c51217e45d0cc8b7a2756be6cca5b58f90
dependencies:
- buildrequires:
javapackages-tools: [201801]
platform: [el8]
requires:
platform: []
references:
community: https://ant.apache.org/
profiles:
common:
rpms:
- ant
api:
rpms:
- ant
filter:
rpms:
- ant-antlr
- ant-apache-bcel
- ant-apache-bsf
- ant-apache-log4j
- ant-apache-oro
- ant-apache-regexp
- ant-apache-resolver
- ant-apache-xalan2
- ant-commons-logging
- ant-commons-net
- ant-javadoc
- ant-javamail
- ant-jdepend
- ant-jmf
- ant-jsch
- ant-junit
- ant-manual
- ant-swing
- ant-testutil
- ant-xz
buildopts:
rpms:
macros: >
%_with_xmvn_javadoc 1
%_without_asciidoc 1
%_without_avalon 1
%_without_bouncycastle 1
%_without_cython 1
%_without_dafsa 1
%_without_desktop 1
%_without_doxygen 1
%_without_dtd 1
%_without_eclipse 1
%_without_ehcache 1
%_without_emacs 1
%_without_equinox 1
%_without_fop 1
%_without_ftp 1
%_without_gradle 1
%_without_groovy 1
%_without_hadoop 1
%_without_hsqldb 1
%_without_itext 1
%_without_jackson 1
%_without_jmh 1
%_without_jna 1
%_without_jpa 1
%_without_junit5 1
%_without_logback 1
%_without_markdown 1
%_without_memcached 1
%_without_memoryfilesystem 1
%_without_obr 1
%_without_python 1
%_without_reporting 1
%_without_scm 1
%_without_snappy 1
%_without_spring 1
%_without_ssh 1
%_without_testlib 1
components:
rpms:
ant:
rationale: 'Module API.
'
repository: git://pkgs.devel.redhat.com/rpms/ant
cache: http://pkgs.devel.redhat.com/repo/pkgs/ant
ref: stream-ant-1.10
buildorder: 10
arches: [aarch64, i686, ppc64le, s390x, x86_64]
artifacts:
rpms:
- ant-0:1.10.5-1.module+el8+2438+c99a8a1e.noarch
- ant-lib-0:1.10.5-1.module+el8+2438+c99a8a1e.noarch
...
---
What would be the procedure to get rid of these duplicates?
Thank you for guiding