LNX-326: Add the ability to include any package by mask in packages.json to the generator

- The ability is added
- Also the generator includes only the latest by version packages to packages.json
- The generator has key `--is-reference` for an each repo. This key marks a repo as reference.
  An reference repo is used as main source of packages. A not reference repo is used as source
  of packages which don't exist in the reference repos.
- All cases are covered by the unittest

@BS-NOBUILD
@BS-TARGET-CL8

Change-Id: I2f80ba4fbfce27fb9a30500ae46c0b8a2f2aabcd
This commit is contained in:
stepan_oksanichenko 2021-06-15 16:16:10 +03:00
parent 941d6b064a
commit 084321dd97
10 changed files with 744 additions and 12 deletions

View File

@ -33,7 +33,7 @@ class CreateExtraRepo(PackagesGenerator):
clear_target_repo: bool = True,
):
self.repos = [] # type: List[ExtraRepoInfo]
super().__init__(repos, [])
super().__init__(repos, [], [])
self.auth_headers = {
'Authorization': f'Bearer {bs_auth_token}',
}

View File

@ -40,6 +40,11 @@ class RepoInfo:
arch: AnyStr
# Is a repo remote or local
is_remote: bool
# Is an reference repository (usually it's a RHEL repo)
# Layout of packages from such repository will be taken as example
# Only layout of specific package (which don't exist
# in an reference repository) will be taken as example
is_reference: bool = False
class PackagesGenerator:
@ -47,9 +52,11 @@ class PackagesGenerator:
self,
repos: List[RepoInfo],
excluded_packages: List[AnyStr],
included_packages: List[AnyStr],
):
self.repos = repos
self.excluded_packages = excluded_packages
self.included_packages = included_packages
@staticmethod
def _warning_callback(warning_type, message):
@ -277,12 +284,19 @@ class PackagesGenerator:
)
for package in packages.values():
package_key = f'{package.name}.{package.arch}'
if 'module' in package.release:
if 'module' in package.release and not any(
re.search(included_package, package.name)
for included_package in self.included_packages
):
# Even a module package will be added to packages.json if
# it presents in the list of included packages
continue
if package_key not in all_packages:
all_packages[package_key]['variant'] = repo_info.name
all_packages[package_key]['arch'] = repo_info.arch
all_packages[package_key]['package'] = package
elif not repo_info.is_reference:
continue
elif self.compare_pkgs_version(
package,
all_packages[package_key]['package']
@ -297,8 +311,6 @@ class PackagesGenerator:
package = package_dict['package']
package_name = package.name
package_arch = package.arch
if 'module' in package.release:
continue
if any(re.search(excluded_package, package_name)
for excluded_package in self.excluded_packages):
continue
@ -358,6 +370,14 @@ def create_parser():
choices=['yes', 'no'],
required=True,
)
parser.add_argument(
'--is-reference',
action='append',
type=str,
help='A repository is used as reference for packages layout',
choices=['yes', 'no'],
required=True,
)
parser.add_argument(
'--excluded-packages',
nargs='+',
@ -367,6 +387,15 @@ def create_parser():
'All of list elements should be separated by space',
required=False,
)
parser.add_argument(
'--included-packages',
nargs='+',
type=str,
default=[],
help='A list of globally included packages from generated json.'
'All of list elements should be separated by space',
required=False,
)
parser.add_argument(
'--json-output-path',
type=str,
@ -380,23 +409,27 @@ def create_parser():
def cli_main():
args = create_parser().parse_args()
repos = []
for repo_path, repo_folder, repo_name, repo_arch, is_remote in zip(
args.repo_path,
args.repo_folder,
args.repo_name,
args.repo_arch,
args.is_remote,
):
for repo_path, repo_folder, repo_name, \
repo_arch, is_remote, is_reference in zip(
args.repo_path,
args.repo_folder,
args.repo_name,
args.repo_arch,
args.is_remote,
args.is_reference,
):
repos.append(RepoInfo(
path=repo_path,
folder=repo_folder,
name=repo_name,
arch=repo_arch,
is_remote=True if is_remote == 'yes' else False,
is_reference=True if is_reference == 'yes' else False
))
pg = PackagesGenerator(
repos=repos,
excluded_packages=args.excluded_packages,
included_packages=args.included_packages,
)
result = pg.generate_packages_json()
with open(args.json_output_path, 'w') as packages_file:

View File

@ -0,0 +1,332 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://linux.duke.edu/metadata/common" xmlns:rpm="http://linux.duke.edu/metadata/rpm" packages="15328">
<package type="rpm">
<name>389-ds-base</name>
<arch>x86_64</arch>
<version epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<checksum type="sha256" pkgid="YES">12505e39ee5a8ce6e954a3cabd4a92165711b4961bfc74a50c938250eeb56356</checksum>
<summary>389 Directory Server (base)</summary>
<description>389 Directory Server is an LDAPv3 compliant server. The base package includes
the LDAP server and command line utilities for server administration.</description>
<packager>Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;</packager>
<url>https://www.port389.org</url>
<time file="1556198014" build="1556120826"/>
<size package="1980164" installed="5866004" archive="5911516"/>
<location href="Packages/3/389-ds-base-1.4.0.20-10.module+el8.0.0+3096+101825d5.x86_64.rpm"/>
<format>
<rpm:license>GPLv3+</rpm:license>
<rpm:vendor>Red Hat, Inc.</rpm:vendor>
<rpm:group>System Environment/Daemons</rpm:group>
<rpm:buildhost>x86-vm-06.build.eng.bos.redhat.com</rpm:buildhost>
<rpm:sourcerpm>389-ds-base-1.4.0.20-10.module+el8.0.0+3096+101825d5.src.rpm</rpm:sourcerpm>
<rpm:header-range start="5608" end="273796"/>
<rpm:provides>
<rpm:entry name="389-ds-base" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="389-ds-base(x86-64)" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="config(389-ds-base)" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="ldif2ldbm" flags="GE" epoch="0" ver="0"/>
<rpm:entry name="libacctpolicy-plugin.so()(64bit)"/>
<rpm:entry name="libacctusability-plugin.so()(64bit)"/>
<rpm:entry name="libacl-plugin.so()(64bit)"/>
<rpm:entry name="libaddn-plugin.so()(64bit)"/>
<rpm:entry name="libattr-unique-plugin.so()(64bit)"/>
<rpm:entry name="libautomember-plugin.so()(64bit)"/>
<rpm:entry name="libback-ldbm.so()(64bit)"/>
<rpm:entry name="libbitwise-plugin.so()(64bit)"/>
<rpm:entry name="libchainingdb-plugin.so()(64bit)"/>
<rpm:entry name="libcollation-plugin.so()(64bit)"/>
<rpm:entry name="libcontentsync-plugin.so()(64bit)"/>
<rpm:entry name="libcos-plugin.so()(64bit)"/>
<rpm:entry name="libderef-plugin.so()(64bit)"/>
<rpm:entry name="libdistrib-plugin.so()(64bit)"/>
<rpm:entry name="libdna-plugin.so()(64bit)"/>
<rpm:entry name="libhttp-client-plugin.so()(64bit)"/>
<rpm:entry name="liblinkedattrs-plugin.so()(64bit)"/>
<rpm:entry name="libmanagedentries-plugin.so()(64bit)"/>
<rpm:entry name="libmemberof-plugin.so()(64bit)"/>
<rpm:entry name="libpam-passthru-plugin.so()(64bit)"/>
<rpm:entry name="libpassthru-plugin.so()(64bit)"/>
<rpm:entry name="libpbe-plugin.so()(64bit)"/>
<rpm:entry name="libposix-winsync-plugin.so()(64bit)"/>
<rpm:entry name="libpwdstorage-plugin.so()(64bit)"/>
<rpm:entry name="libreferint-plugin.so()(64bit)"/>
<rpm:entry name="libreplication-plugin.so()(64bit)"/>
<rpm:entry name="libretrocl-plugin.so()(64bit)"/>
<rpm:entry name="libroles-plugin.so()(64bit)"/>
<rpm:entry name="librootdn-access-plugin.so()(64bit)"/>
<rpm:entry name="libschemareload-plugin.so()(64bit)"/>
<rpm:entry name="libstatechange-plugin.so()(64bit)"/>
<rpm:entry name="libsyntax-plugin.so()(64bit)"/>
<rpm:entry name="libusn-plugin.so()(64bit)"/>
<rpm:entry name="libviews-plugin.so()(64bit)"/>
<rpm:entry name="libwhoami-plugin.so()(64bit)"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="/bin/sh" pre="1"/>
<rpm:entry name="/bin/sh"/>
<rpm:entry name="/usr/bin/perl"/>
<rpm:entry name="/usr/libexec/platform-python"/>
<rpm:entry name="/usr/sbin/semanage"/>
<rpm:entry name="389-ds-base-libs" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="cyrus-sasl-gssapi"/>
<rpm:entry name="cyrus-sasl-md5"/>
<rpm:entry name="cyrus-sasl-plain"/>
<rpm:entry name="ld-linux-x86-64.so.2()(64bit)"/>
<rpm:entry name="ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)"/>
<rpm:entry name="libcom_err.so.2()(64bit)"/>
<rpm:entry name="libcrack.so.2()(64bit)"/>
<rpm:entry name="libcrypt.so.1()(64bit)"/>
<rpm:entry name="libcrypt.so.1(XCRYPT_2.0)(64bit)"/>
<rpm:entry name="libdb-5.3.so()(64bit)"/>
<rpm:entry name="libdb-utils"/>
<rpm:entry name="libdl.so.2()(64bit)"/>
<rpm:entry name="libdl.so.2(GLIBC_2.2.5)(64bit)"/>
<rpm:entry name="libevent-2.1.so.6()(64bit)"/>
<rpm:entry name="libgcc_s.so.1()(64bit)"/>
<rpm:entry name="libgcc_s.so.1(GCC_3.0)(64bit)"/>
<rpm:entry name="libicudata.so.60()(64bit)"/>
<rpm:entry name="libicui18n.so.60()(64bit)"/>
<rpm:entry name="libicuuc.so.60()(64bit)"/>
<rpm:entry name="libk5crypto.so.3()(64bit)"/>
<rpm:entry name="libkrb5.so.3()(64bit)"/>
<rpm:entry name="liblber-2.4.so.2()(64bit)"/>
<rpm:entry name="libldap_r-2.4.so.2()(64bit)"/>
<rpm:entry name="libldaputil.so.0()(64bit)"/>
<rpm:entry name="libm.so.6()(64bit)"/>
<rpm:entry name="libns-dshttpd-1.4.0.2010.so()(64bit)"/>
<rpm:entry name="libnspr4.so()(64bit)"/>
<rpm:entry name="libnss3.so()(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.12)(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.2)(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.3)(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.4)(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.9.2)(64bit)"/>
<rpm:entry name="libnunc-stans.so.0()(64bit)"/>
<rpm:entry name="libpam.so.0()(64bit)"/>
<rpm:entry name="libpam.so.0(LIBPAM_1.0)(64bit)"/>
<rpm:entry name="libpcre.so.1()(64bit)"/>
<rpm:entry name="libplc4.so()(64bit)"/>
<rpm:entry name="libplds4.so()(64bit)"/>
<rpm:entry name="libpthread.so.0()(64bit)"/>
<rpm:entry name="libpthread.so.0(GLIBC_2.12)(64bit)"/>
<rpm:entry name="libpthread.so.0(GLIBC_2.2.5)(64bit)"/>
<rpm:entry name="libpthread.so.0(GLIBC_2.3.2)(64bit)"/>
<rpm:entry name="libpthread.so.0(GLIBC_2.3.4)(64bit)"/>
<rpm:entry name="libsasl2.so.3()(64bit)"/>
<rpm:entry name="libsds.so.0()(64bit)"/>
<rpm:entry name="libsemanage-python3"/>
<rpm:entry name="libslapd.so.0()(64bit)"/>
<rpm:entry name="libssl3.so()(64bit)"/>
<rpm:entry name="libssl3.so(NSS_3.14)(64bit)"/>
<rpm:entry name="libssl3.so(NSS_3.2)(64bit)"/>
<rpm:entry name="libssl3.so(NSS_3.7.4)(64bit)"/>
<rpm:entry name="libstdc++.so.6()(64bit)"/>
<rpm:entry name="libstdc++.so.6(CXXABI_1.3)(64bit)"/>
<rpm:entry name="libstdc++.so.6(GLIBCXX_3.4)(64bit)"/>
<rpm:entry name="libstdc++.so.6(GLIBCXX_3.4.11)(64bit)"/>
<rpm:entry name="libsvrcore.so.0()(64bit)"/>
<rpm:entry name="libsystemd.so.0()(64bit)"/>
<rpm:entry name="libsystemd.so.0(LIBSYSTEMD_209)(64bit)"/>
<rpm:entry name="nss" flags="GE" epoch="0" ver="3.34"/>
<rpm:entry name="nss-tools"/>
<rpm:entry name="openldap-clients"/>
<rpm:entry name="openssl-perl"/>
<rpm:entry name="perl(:MODULE_COMPAT_5.26.3)"/>
<rpm:entry name="perl(Archive::Tar)"/>
<rpm:entry name="perl(Cwd)"/>
<rpm:entry name="perl(DB)"/>
<rpm:entry name="perl(DB_File)"/>
<rpm:entry name="perl(Getopt::Long)"/>
<rpm:entry name="perl(IO::File)"/>
<rpm:entry name="perl(IO::Uncompress::AnyUncompress)"/>
<rpm:entry name="perl(Scalar::Util)"/>
<rpm:entry name="perl(Time::Local)"/>
<rpm:entry name="perl(sigtrap)"/>
<rpm:entry name="perl(strict)"/>
<rpm:entry name="perl(warnings)"/>
<rpm:entry name="perl-Archive-Tar"/>
<rpm:entry name="perl-DB_File"/>
<rpm:entry name="perl-Errno" flags="GE" epoch="0" ver="1.23" rel="360"/>
<rpm:entry name="policycoreutils-python-utils"/>
<rpm:entry name="python3-ldap"/>
<rpm:entry name="python3-lib389" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="rtld(GNU_HASH)"/>
<rpm:entry name="selinux-policy" flags="GE" epoch="0" ver="3.14.1" rel="29"/>
<rpm:entry name="systemd" pre="1"/>
<rpm:entry name="systemd"/>
<rpm:entry name="libc.so.6(GLIBC_2.17)(64bit)"/>
</rpm:requires>
<rpm:conflicts>
<rpm:entry name="freeipa-server" flags="LT" epoch="0" ver="4.0.3"/>
<rpm:entry name="selinux-policy-base" flags="LT" epoch="0" ver="3.9.8"/>
</rpm:conflicts>
<rpm:obsoletes>
<rpm:entry name="389-ds-base" flags="LE" epoch="0" ver="1.3.5.4"/>
<rpm:entry name="389-ds-base" flags="LE" epoch="0" ver="1.4.0.9"/>
</rpm:obsoletes>
<file type="dir">/etc/dirsrv</file>
<file type="dir">/etc/dirsrv/config</file>
<file>/etc/dirsrv/config/certmap.conf</file>
<file>/etc/dirsrv/config/slapd-collations.conf</file>
<file>/etc/dirsrv/config/template-initconfig</file>
<file type="dir">/etc/dirsrv/schema</file>
<file>/etc/dirsrv/schema/99user.ldif</file>
<file>/etc/sysconfig/dirsrv</file>
<file>/etc/sysconfig/dirsrv.systemd</file>
<file type="dir">/etc/systemd/system/dirsrv.target.wants</file>
<file>/usr/bin/dbscan</file>
<file>/usr/bin/ds-logpipe.py</file>
<file>/usr/bin/ds-replcheck</file>
<file>/usr/bin/ldclt</file>
<file>/usr/bin/logconv.pl</file>
<file>/usr/bin/pwdhash</file>
<file>/usr/bin/readnsstate</file>
<file>/usr/lib64/dirsrv/bin/jeprof</file>
<file>/usr/sbin/bak2db</file>
<file>/usr/sbin/db2bak</file>
<file>/usr/sbin/db2index</file>
<file>/usr/sbin/db2ldif</file>
<file>/usr/sbin/dbverify</file>
<file>/usr/sbin/ldif2db</file>
<file>/usr/sbin/ldif2ldap</file>
<file>/usr/sbin/ns-slapd</file>
<file>/usr/sbin/restart-dirsrv</file>
<file>/usr/sbin/start-dirsrv</file>
<file>/usr/sbin/status-dirsrv</file>
<file>/usr/sbin/stop-dirsrv</file>
<file>/usr/sbin/upgradedb</file>
<file>/usr/sbin/vlvindex</file>
<file>/usr/share/gdb/auto-load/usr/sbin/ns-slapd-gdb.py</file>
</format>
</package>
<package type="rpm">
<name>zziplib-utils</name>
<arch>x86_64</arch>
<version epoch="0" ver="0.13.68" rel="8.el8"/>
<checksum type="sha256" pkgid="YES">26d838b257f0890c3abf408bc200ebcf53ff1e40f16654cad9b1cb4c059f0d42</checksum>
<summary>Utilities for the zziplib library</summary>
<description>The zziplib library is intentionally lightweight, it offers the ability to
easily extract data from files archived in a single zip file. Applications
can bundle files into a single zip archive and access them. The implementation
is based only on the (free) subset of compression with the zlib algorithm
which is actually used by the zip/unzip tools.
This packages contains all the utilities that come with the zziplib library.</description>
<packager>Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;</packager>
<url>http://zziplib.sourceforge.net/</url>
<time file="1579047155" build="1574175461"/>
<size package="48588" installed="147600" archive="152544"/>
<location href="Packages/z/zziplib-utils-0.13.68-8.el8.x86_64.rpm"/>
<format>
<rpm:license>LGPLv2+ or MPLv1.1</rpm:license>
<rpm:vendor>Red Hat, Inc.</rpm:vendor>
<rpm:group>Applications/Archiving</rpm:group>
<rpm:buildhost>x86-vm-09.build.eng.bos.redhat.com</rpm:buildhost>
<rpm:sourcerpm>zziplib-0.13.68-8.el8.src.rpm</rpm:sourcerpm>
<rpm:header-range start="5608" end="19832"/>
<rpm:provides>
<rpm:entry name="zziplib-utils" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
<rpm:entry name="zziplib-utils(x86-64)" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="libz.so.1()(64bit)"/>
<rpm:entry name="libzzip-0.so.13()(64bit)"/>
<rpm:entry name="libzzipfseeko-0.so.13()(64bit)"/>
<rpm:entry name="libzzipmmapped-0.so.13()(64bit)"/>
<rpm:entry name="rtld(GNU_HASH)"/>
<rpm:entry name="zziplib(x86-64)" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
<rpm:entry name="libc.so.6(GLIBC_2.14)(64bit)"/>
</rpm:requires>
<file>/usr/bin/unzip-mem</file>
<file>/usr/bin/unzzip</file>
<file>/usr/bin/unzzip-big</file>
<file>/usr/bin/unzzip-mem</file>
<file>/usr/bin/unzzip-mix</file>
<file>/usr/bin/zzcat</file>
<file>/usr/bin/zzdir</file>
<file>/usr/bin/zzxorcat</file>
<file>/usr/bin/zzxorcopy</file>
<file>/usr/bin/zzxordir</file>
</format>
</package>
<package type="rpm">
<name>zziplib</name>
<arch>i686</arch>
<version epoch="0" ver="0.13.68" rel="8.el8"/>
<checksum type="sha256" pkgid="YES">207d3ba8e031d11bd13923e6027e17e5db12d76e915a28e9cd1589ef796a6e6b</checksum>
<summary>Lightweight library to easily extract data from zip files</summary>
<description>The zziplib library is intentionally lightweight, it offers the ability to
easily extract data from files archived in a single zip file. Applications
can bundle files into a single zip archive and access them. The implementation
is based only on the (free) subset of compression with the zlib algorithm
which is actually used by the zip/unzip tools.</description>
<packager>Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;</packager>
<url>http://zziplib.sourceforge.net/</url>
<time file="1579042443" build="1574175462"/>
<size package="95172" installed="217669" archive="223072"/>
<location href="Packages/z/zziplib-0.13.68-8.el8.i686.rpm"/>
<format>
<rpm:license>LGPLv2+ or MPLv1.1</rpm:license>
<rpm:vendor>Red Hat, Inc.</rpm:vendor>
<rpm:group>Applications/Archiving</rpm:group>
<rpm:buildhost>x86-vm-09.build.eng.bos.redhat.com</rpm:buildhost>
<rpm:sourcerpm>zziplib-0.13.68-8.el8.src.rpm</rpm:sourcerpm>
<rpm:header-range start="5608" end="18592"/>
<rpm:provides>
<rpm:entry name="libzzip-0.so.13"/>
<rpm:entry name="libzzipfseeko-0.so.13"/>
<rpm:entry name="libzzipmmapped-0.so.13"/>
<rpm:entry name="libzzipwrap-0.so.13"/>
<rpm:entry name="zziplib" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
<rpm:entry name="zziplib(x86-32)" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="/sbin/ldconfig" pre="1"/>
<rpm:entry name="/sbin/ldconfig"/>
<rpm:entry name="libz.so.1"/>
<rpm:entry name="rtld(GNU_HASH)"/>
<rpm:entry name="libc.so.6(GLIBC_2.7)"/>
</rpm:requires>
</format>
</package>
<package type="rpm">
<name>zziplib</name>
<arch>x86_64</arch>
<version epoch="0" ver="0.13.68" rel="8.el8"/>
<checksum type="sha256" pkgid="YES">30cee6c1adcaee7b24c1079072299ee55a9c3bbdcb91697544242c7567d18621</checksum>
<summary>Lightweight library to easily extract data from zip files</summary>
<description>The zziplib library is intentionally lightweight, it offers the ability to
easily extract data from files archived in a single zip file. Applications
can bundle files into a single zip archive and access them. The implementation
is based only on the (free) subset of compression with the zlib algorithm
which is actually used by the zip/unzip tools.</description>
<packager>Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;</packager>
<url>http://zziplib.sourceforge.net/</url>
<time file="1579041776" build="1574175461"/>
<size package="92904" installed="219993" archive="225452"/>
<location href="Packages/z/zziplib-0.13.68-8.el8.x86_64.rpm"/>
<format>
<rpm:license>LGPLv2+ or MPLv1.1</rpm:license>
<rpm:vendor>Red Hat, Inc.</rpm:vendor>
<rpm:group>Applications/Archiving</rpm:group>
<rpm:buildhost>x86-vm-09.build.eng.bos.redhat.com</rpm:buildhost>
<rpm:sourcerpm>zziplib-0.13.68-8.el8.src.rpm</rpm:sourcerpm>
<rpm:header-range start="5608" end="18620"/>
<rpm:provides>
<rpm:entry name="libzzip-0.so.13()(64bit)"/>
<rpm:entry name="libzzipfseeko-0.so.13()(64bit)"/>
<rpm:entry name="libzzipmmapped-0.so.13()(64bit)"/>
<rpm:entry name="libzzipwrap-0.so.13()(64bit)"/>
<rpm:entry name="zziplib" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
<rpm:entry name="zziplib(x86-64)" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="/sbin/ldconfig" pre="1"/>
<rpm:entry name="/sbin/ldconfig"/>
<rpm:entry name="libz.so.1()(64bit)"/>
<rpm:entry name="rtld(GNU_HASH)"/>
<rpm:entry name="libc.so.6(GLIBC_2.14)(64bit)"/>
</rpm:requires>
</format>
</package>
</metadata>

View File

@ -4,7 +4,7 @@
<data type="primary">
<checksum type="sha256">2826d3f5dd3b03cfb5d2c079123f7add3a7d068e8dfd210873eb27eb32586a8e</checksum>
<open-checksum type="sha256">78efcf6b74f4c56aaab183336eab44fcbcc9cb6c25045fe5980ab83a85e48db7</open-checksum>
<location href="repodata/primary.xml.gz"/>
<location href="repodata/primary.xml"/>
<timestamp>1610968715</timestamp>
<size>3094</size>
<open-size>16878</open-size>

View File

@ -0,0 +1,332 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://linux.duke.edu/metadata/common" xmlns:rpm="http://linux.duke.edu/metadata/rpm" packages="15328">
<package type="rpm">
<name>389-ds-base-new</name>
<arch>x86_64</arch>
<version epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<checksum type="sha256" pkgid="YES">12505e39ee5a8ce6e954a3cabd4a92165711b4961bfc74a50c938250eeb56356</checksum>
<summary>389 Directory Server (base)</summary>
<description>389 Directory Server is an LDAPv3 compliant server. The base package includes
the LDAP server and command line utilities for server administration.</description>
<packager>Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;</packager>
<url>https://www.port389.org</url>
<time file="1556198014" build="1556120826"/>
<size package="1980164" installed="5866004" archive="5911516"/>
<location href="Packages/3/389-ds-base-new-1.4.0.20-10.module+el8.0.0+3096+101825d5.x86_64.rpm"/>
<format>
<rpm:license>GPLv3+</rpm:license>
<rpm:vendor>Red Hat, Inc.</rpm:vendor>
<rpm:group>System Environment/Daemons</rpm:group>
<rpm:buildhost>x86-vm-06.build.eng.bos.redhat.com</rpm:buildhost>
<rpm:sourcerpm>389-ds-base-new-1.4.0.20-10.module+el8.0.0+3096+101825d5.src.rpm</rpm:sourcerpm>
<rpm:header-range start="5608" end="273796"/>
<rpm:provides>
<rpm:entry name="389-ds-base-new" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="389-ds-base-new(x86-64)" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="config(389-ds-base-new)" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="ldif2ldbm" flags="GE" epoch="0" ver="0"/>
<rpm:entry name="libacctpolicy-plugin.so()(64bit)"/>
<rpm:entry name="libacctusability-plugin.so()(64bit)"/>
<rpm:entry name="libacl-plugin.so()(64bit)"/>
<rpm:entry name="libaddn-plugin.so()(64bit)"/>
<rpm:entry name="libattr-unique-plugin.so()(64bit)"/>
<rpm:entry name="libautomember-plugin.so()(64bit)"/>
<rpm:entry name="libback-ldbm.so()(64bit)"/>
<rpm:entry name="libbitwise-plugin.so()(64bit)"/>
<rpm:entry name="libchainingdb-plugin.so()(64bit)"/>
<rpm:entry name="libcollation-plugin.so()(64bit)"/>
<rpm:entry name="libcontentsync-plugin.so()(64bit)"/>
<rpm:entry name="libcos-plugin.so()(64bit)"/>
<rpm:entry name="libderef-plugin.so()(64bit)"/>
<rpm:entry name="libdistrib-plugin.so()(64bit)"/>
<rpm:entry name="libdna-plugin.so()(64bit)"/>
<rpm:entry name="libhttp-client-plugin.so()(64bit)"/>
<rpm:entry name="liblinkedattrs-plugin.so()(64bit)"/>
<rpm:entry name="libmanagedentries-plugin.so()(64bit)"/>
<rpm:entry name="libmemberof-plugin.so()(64bit)"/>
<rpm:entry name="libpam-passthru-plugin.so()(64bit)"/>
<rpm:entry name="libpassthru-plugin.so()(64bit)"/>
<rpm:entry name="libpbe-plugin.so()(64bit)"/>
<rpm:entry name="libposix-winsync-plugin.so()(64bit)"/>
<rpm:entry name="libpwdstorage-plugin.so()(64bit)"/>
<rpm:entry name="libreferint-plugin.so()(64bit)"/>
<rpm:entry name="libreplication-plugin.so()(64bit)"/>
<rpm:entry name="libretrocl-plugin.so()(64bit)"/>
<rpm:entry name="libroles-plugin.so()(64bit)"/>
<rpm:entry name="librootdn-access-plugin.so()(64bit)"/>
<rpm:entry name="libschemareload-plugin.so()(64bit)"/>
<rpm:entry name="libstatechange-plugin.so()(64bit)"/>
<rpm:entry name="libsyntax-plugin.so()(64bit)"/>
<rpm:entry name="libusn-plugin.so()(64bit)"/>
<rpm:entry name="libviews-plugin.so()(64bit)"/>
<rpm:entry name="libwhoami-plugin.so()(64bit)"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="/bin/sh" pre="1"/>
<rpm:entry name="/bin/sh"/>
<rpm:entry name="/usr/bin/perl"/>
<rpm:entry name="/usr/libexec/platform-python"/>
<rpm:entry name="/usr/sbin/semanage"/>
<rpm:entry name="389-ds-base-new-libs" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="cyrus-sasl-gssapi"/>
<rpm:entry name="cyrus-sasl-md5"/>
<rpm:entry name="cyrus-sasl-plain"/>
<rpm:entry name="ld-linux-x86-64.so.2()(64bit)"/>
<rpm:entry name="ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)"/>
<rpm:entry name="libcom_err.so.2()(64bit)"/>
<rpm:entry name="libcrack.so.2()(64bit)"/>
<rpm:entry name="libcrypt.so.1()(64bit)"/>
<rpm:entry name="libcrypt.so.1(XCRYPT_2.0)(64bit)"/>
<rpm:entry name="libdb-5.3.so()(64bit)"/>
<rpm:entry name="libdb-utils"/>
<rpm:entry name="libdl.so.2()(64bit)"/>
<rpm:entry name="libdl.so.2(GLIBC_2.2.5)(64bit)"/>
<rpm:entry name="libevent-2.1.so.6()(64bit)"/>
<rpm:entry name="libgcc_s.so.1()(64bit)"/>
<rpm:entry name="libgcc_s.so.1(GCC_3.0)(64bit)"/>
<rpm:entry name="libicudata.so.60()(64bit)"/>
<rpm:entry name="libicui18n.so.60()(64bit)"/>
<rpm:entry name="libicuuc.so.60()(64bit)"/>
<rpm:entry name="libk5crypto.so.3()(64bit)"/>
<rpm:entry name="libkrb5.so.3()(64bit)"/>
<rpm:entry name="liblber-2.4.so.2()(64bit)"/>
<rpm:entry name="libldap_r-2.4.so.2()(64bit)"/>
<rpm:entry name="libldaputil.so.0()(64bit)"/>
<rpm:entry name="libm.so.6()(64bit)"/>
<rpm:entry name="libns-dshttpd-1.4.0.2010.so()(64bit)"/>
<rpm:entry name="libnspr4.so()(64bit)"/>
<rpm:entry name="libnss3.so()(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.12)(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.2)(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.3)(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.4)(64bit)"/>
<rpm:entry name="libnss3.so(NSS_3.9.2)(64bit)"/>
<rpm:entry name="libnunc-stans.so.0()(64bit)"/>
<rpm:entry name="libpam.so.0()(64bit)"/>
<rpm:entry name="libpam.so.0(LIBPAM_1.0)(64bit)"/>
<rpm:entry name="libpcre.so.1()(64bit)"/>
<rpm:entry name="libplc4.so()(64bit)"/>
<rpm:entry name="libplds4.so()(64bit)"/>
<rpm:entry name="libpthread.so.0()(64bit)"/>
<rpm:entry name="libpthread.so.0(GLIBC_2.12)(64bit)"/>
<rpm:entry name="libpthread.so.0(GLIBC_2.2.5)(64bit)"/>
<rpm:entry name="libpthread.so.0(GLIBC_2.3.2)(64bit)"/>
<rpm:entry name="libpthread.so.0(GLIBC_2.3.4)(64bit)"/>
<rpm:entry name="libsasl2.so.3()(64bit)"/>
<rpm:entry name="libsds.so.0()(64bit)"/>
<rpm:entry name="libsemanage-python3"/>
<rpm:entry name="libslapd.so.0()(64bit)"/>
<rpm:entry name="libssl3.so()(64bit)"/>
<rpm:entry name="libssl3.so(NSS_3.14)(64bit)"/>
<rpm:entry name="libssl3.so(NSS_3.2)(64bit)"/>
<rpm:entry name="libssl3.so(NSS_3.7.4)(64bit)"/>
<rpm:entry name="libstdc++.so.6()(64bit)"/>
<rpm:entry name="libstdc++.so.6(CXXABI_1.3)(64bit)"/>
<rpm:entry name="libstdc++.so.6(GLIBCXX_3.4)(64bit)"/>
<rpm:entry name="libstdc++.so.6(GLIBCXX_3.4.11)(64bit)"/>
<rpm:entry name="libsvrcore.so.0()(64bit)"/>
<rpm:entry name="libsystemd.so.0()(64bit)"/>
<rpm:entry name="libsystemd.so.0(LIBSYSTEMD_209)(64bit)"/>
<rpm:entry name="nss" flags="GE" epoch="0" ver="3.34"/>
<rpm:entry name="nss-tools"/>
<rpm:entry name="openldap-clients"/>
<rpm:entry name="openssl-perl"/>
<rpm:entry name="perl(:MODULE_COMPAT_5.26.3)"/>
<rpm:entry name="perl(Archive::Tar)"/>
<rpm:entry name="perl(Cwd)"/>
<rpm:entry name="perl(DB)"/>
<rpm:entry name="perl(DB_File)"/>
<rpm:entry name="perl(Getopt::Long)"/>
<rpm:entry name="perl(IO::File)"/>
<rpm:entry name="perl(IO::Uncompress::AnyUncompress)"/>
<rpm:entry name="perl(Scalar::Util)"/>
<rpm:entry name="perl(Time::Local)"/>
<rpm:entry name="perl(sigtrap)"/>
<rpm:entry name="perl(strict)"/>
<rpm:entry name="perl(warnings)"/>
<rpm:entry name="perl-Archive-Tar"/>
<rpm:entry name="perl-DB_File"/>
<rpm:entry name="perl-Errno" flags="GE" epoch="0" ver="1.23" rel="360"/>
<rpm:entry name="policycoreutils-python-utils"/>
<rpm:entry name="python3-ldap"/>
<rpm:entry name="python3-lib389" flags="EQ" epoch="0" ver="1.4.0.20" rel="10.module+el8.0.0+3096+101825d5"/>
<rpm:entry name="rtld(GNU_HASH)"/>
<rpm:entry name="selinux-policy" flags="GE" epoch="0" ver="3.14.1" rel="29"/>
<rpm:entry name="systemd" pre="1"/>
<rpm:entry name="systemd"/>
<rpm:entry name="libc.so.6(GLIBC_2.17)(64bit)"/>
</rpm:requires>
<rpm:conflicts>
<rpm:entry name="freeipa-server" flags="LT" epoch="0" ver="4.0.3"/>
<rpm:entry name="selinux-policy-base" flags="LT" epoch="0" ver="3.9.8"/>
</rpm:conflicts>
<rpm:obsoletes>
<rpm:entry name="389-ds-base-new" flags="LE" epoch="0" ver="1.3.5.4"/>
<rpm:entry name="389-ds-base-new" flags="LE" epoch="0" ver="1.4.0.9"/>
</rpm:obsoletes>
<file type="dir">/etc/dirsrv</file>
<file type="dir">/etc/dirsrv/config</file>
<file>/etc/dirsrv/config/certmap.conf</file>
<file>/etc/dirsrv/config/slapd-collations.conf</file>
<file>/etc/dirsrv/config/template-initconfig</file>
<file type="dir">/etc/dirsrv/schema</file>
<file>/etc/dirsrv/schema/99user.ldif</file>
<file>/etc/sysconfig/dirsrv</file>
<file>/etc/sysconfig/dirsrv.systemd</file>
<file type="dir">/etc/systemd/system/dirsrv.target.wants</file>
<file>/usr/bin/dbscan</file>
<file>/usr/bin/ds-logpipe.py</file>
<file>/usr/bin/ds-replcheck</file>
<file>/usr/bin/ldclt</file>
<file>/usr/bin/logconv.pl</file>
<file>/usr/bin/pwdhash</file>
<file>/usr/bin/readnsstate</file>
<file>/usr/lib64/dirsrv/bin/jeprof</file>
<file>/usr/sbin/bak2db</file>
<file>/usr/sbin/db2bak</file>
<file>/usr/sbin/db2index</file>
<file>/usr/sbin/db2ldif</file>
<file>/usr/sbin/dbverify</file>
<file>/usr/sbin/ldif2db</file>
<file>/usr/sbin/ldif2ldap</file>
<file>/usr/sbin/ns-slapd</file>
<file>/usr/sbin/restart-dirsrv</file>
<file>/usr/sbin/start-dirsrv</file>
<file>/usr/sbin/status-dirsrv</file>
<file>/usr/sbin/stop-dirsrv</file>
<file>/usr/sbin/upgradedb</file>
<file>/usr/sbin/vlvindex</file>
<file>/usr/share/gdb/auto-load/usr/sbin/ns-slapd-gdb.py</file>
</format>
</package>
<package type="rpm">
<name>zziplib-utils</name>
<arch>x86_64</arch>
<version epoch="0" ver="0.13.68" rel="8.el8"/>
<checksum type="sha256" pkgid="YES">26d838b257f0890c3abf408bc200ebcf53ff1e40f16654cad9b1cb4c059f0d42</checksum>
<summary>Utilities for the zziplib library</summary>
<description>The zziplib library is intentionally lightweight, it offers the ability to
easily extract data from files archived in a single zip file. Applications
can bundle files into a single zip archive and access them. The implementation
is based only on the (free) subset of compression with the zlib algorithm
which is actually used by the zip/unzip tools.
This packages contains all the utilities that come with the zziplib library.</description>
<packager>Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;</packager>
<url>http://zziplib.sourceforge.net/</url>
<time file="1579047155" build="1574175461"/>
<size package="48588" installed="147600" archive="152544"/>
<location href="Packages/z/zziplib-utils-0.13.68-8.el8.x86_64.rpm"/>
<format>
<rpm:license>LGPLv2+ or MPLv1.1</rpm:license>
<rpm:vendor>Red Hat, Inc.</rpm:vendor>
<rpm:group>Applications/Archiving</rpm:group>
<rpm:buildhost>x86-vm-09.build.eng.bos.redhat.com</rpm:buildhost>
<rpm:sourcerpm>zziplib-0.13.68-8.el8.src.rpm</rpm:sourcerpm>
<rpm:header-range start="5608" end="19832"/>
<rpm:provides>
<rpm:entry name="zziplib-utils" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
<rpm:entry name="zziplib-utils(x86-64)" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="libz.so.1()(64bit)"/>
<rpm:entry name="libzzip-0.so.13()(64bit)"/>
<rpm:entry name="libzzipfseeko-0.so.13()(64bit)"/>
<rpm:entry name="libzzipmmapped-0.so.13()(64bit)"/>
<rpm:entry name="rtld(GNU_HASH)"/>
<rpm:entry name="zziplib(x86-64)" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
<rpm:entry name="libc.so.6(GLIBC_2.14)(64bit)"/>
</rpm:requires>
<file>/usr/bin/unzip-mem</file>
<file>/usr/bin/unzzip</file>
<file>/usr/bin/unzzip-big</file>
<file>/usr/bin/unzzip-mem</file>
<file>/usr/bin/unzzip-mix</file>
<file>/usr/bin/zzcat</file>
<file>/usr/bin/zzdir</file>
<file>/usr/bin/zzxorcat</file>
<file>/usr/bin/zzxorcopy</file>
<file>/usr/bin/zzxordir</file>
</format>
</package>
<package type="rpm">
<name>zziplib</name>
<arch>i686</arch>
<version epoch="0" ver="0.14.68" rel="8.el8"/>
<checksum type="sha256" pkgid="YES">207d3ba8e031d11bd13923e6027e17e5db12d76e915a28e9cd1589ef796a6e6b</checksum>
<summary>Lightweight library to easily extract data from zip files</summary>
<description>The zziplib library is intentionally lightweight, it offers the ability to
easily extract data from files archived in a single zip file. Applications
can bundle files into a single zip archive and access them. The implementation
is based only on the (free) subset of compression with the zlib algorithm
which is actually used by the zip/unzip tools.</description>
<packager>Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;</packager>
<url>http://zziplib.sourceforge.net/</url>
<time file="1579042443" build="1574175462"/>
<size package="95172" installed="217669" archive="223072"/>
<location href="Packages/z/zziplib-0.13.68-8.el8.i686.rpm"/>
<format>
<rpm:license>LGPLv2+ or MPLv1.1</rpm:license>
<rpm:vendor>Red Hat, Inc.</rpm:vendor>
<rpm:group>Applications/Archiving</rpm:group>
<rpm:buildhost>x86-vm-09.build.eng.bos.redhat.com</rpm:buildhost>
<rpm:sourcerpm>zziplib-0.13.68-8.el8.src.rpm</rpm:sourcerpm>
<rpm:header-range start="5608" end="18592"/>
<rpm:provides>
<rpm:entry name="libzzip-0.so.13"/>
<rpm:entry name="libzzipfseeko-0.so.13"/>
<rpm:entry name="libzzipmmapped-0.so.13"/>
<rpm:entry name="libzzipwrap-0.so.13"/>
<rpm:entry name="zziplib" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
<rpm:entry name="zziplib(x86-32)" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="/sbin/ldconfig" pre="1"/>
<rpm:entry name="/sbin/ldconfig"/>
<rpm:entry name="libz.so.1"/>
<rpm:entry name="rtld(GNU_HASH)"/>
<rpm:entry name="libc.so.6(GLIBC_2.7)"/>
</rpm:requires>
</format>
</package>
<package type="rpm">
<name>zziplib</name>
<arch>x86_64</arch>
<version epoch="0" ver="0.13.68" rel="8.el8"/>
<checksum type="sha256" pkgid="YES">30cee6c1adcaee7b24c1079072299ee55a9c3bbdcb91697544242c7567d18621</checksum>
<summary>Lightweight library to easily extract data from zip files</summary>
<description>The zziplib library is intentionally lightweight, it offers the ability to
easily extract data from files archived in a single zip file. Applications
can bundle files into a single zip archive and access them. The implementation
is based only on the (free) subset of compression with the zlib algorithm
which is actually used by the zip/unzip tools.</description>
<packager>Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;</packager>
<url>http://zziplib.sourceforge.net/</url>
<time file="1579041776" build="1574175461"/>
<size package="92904" installed="219993" archive="225452"/>
<location href="Packages/z/zziplib-0.13.68-8.el8.x86_64.rpm"/>
<format>
<rpm:license>LGPLv2+ or MPLv1.1</rpm:license>
<rpm:vendor>Red Hat, Inc.</rpm:vendor>
<rpm:group>Applications/Archiving</rpm:group>
<rpm:buildhost>x86-vm-09.build.eng.bos.redhat.com</rpm:buildhost>
<rpm:sourcerpm>zziplib-0.13.68-8.el8.src.rpm</rpm:sourcerpm>
<rpm:header-range start="5608" end="18620"/>
<rpm:provides>
<rpm:entry name="libzzip-0.so.13()(64bit)"/>
<rpm:entry name="libzzipfseeko-0.so.13()(64bit)"/>
<rpm:entry name="libzzipmmapped-0.so.13()(64bit)"/>
<rpm:entry name="libzzipwrap-0.so.13()(64bit)"/>
<rpm:entry name="zziplib" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
<rpm:entry name="zziplib(x86-64)" flags="EQ" epoch="0" ver="0.13.68" rel="8.el8"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="/sbin/ldconfig" pre="1"/>
<rpm:entry name="/sbin/ldconfig"/>
<rpm:entry name="libz.so.1()(64bit)"/>
<rpm:entry name="rtld(GNU_HASH)"/>
<rpm:entry name="libc.so.6(GLIBC_2.14)(64bit)"/>
</rpm:requires>
</format>
</package>
</metadata>

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
<revision>1610968727</revision>
<data type="primary">
<checksum type="sha256">dcfe621a2c74f0f58fce6da4a4fbbc3670d889ec207350a90ec1d082b206f98a</checksum>
<open-checksum type="sha256">14cb7ce7edc80fa750d5139170112073325af0badbf8bd9c294e033bf4518b83</open-checksum>
<location href="repodata/primary.xml"/>
<timestamp>1610968715</timestamp>
<size>3193</size>
<open-size>20480</open-size>
</data>
<data type="filelists">
<checksum type="sha256">e41805c927fc4ad1b9bde52509afb37e47acc153283b23da17560d4e250b3a3e</checksum>
<open-checksum type="sha256">5f659e8c05b7d056748bf809bec8aa9fa5f791c2b0546d6c49b02a7ebfb26ce2</open-checksum>
<location href="repodata/filelists.xml.gz"/>
<timestamp>1610968715</timestamp>
<size>3970</size>
<open-size>19897</open-size>
</data>
<data type="other">
<checksum type="sha256">db6d0d88abcaf06dc8ef09207fdbb9ba5e3ffb505a7dd2bf94fdbc953a6de11e</checksum>
<open-checksum type="sha256">3ae1b186b4c3037805e2cf28a78b2204c37b4dc04acbd8bef98a7b24ab5b52a8</open-checksum>
<location href="repodata/other.xml.gz"/>
<timestamp>1610968715</timestamp>
<size>2191</size>
<open-size>8337</open-size>
</data>
</repomd>

View File

@ -19,6 +19,7 @@ test_repo_info = RepoInfo(
name='TestRepo',
arch='x86_64',
is_remote=False,
is_reference=True,
)
test_repo_info_2 = RepoInfo(
@ -27,6 +28,7 @@ test_repo_info_2 = RepoInfo(
name='TestRepo2',
arch='x86_64',
is_remote=False,
is_reference=True,
)
@ -64,6 +66,7 @@ class TestPackagesJson(TestCase):
test_repo_info_2,
],
excluded_packages=['zziplib-utils'],
included_packages=['389-ds-base-new*'],
)
test_packages = defaultdict(
lambda: defaultdict(
@ -80,6 +83,10 @@ class TestPackagesJson(TestCase):
[
'zziplib.i686',
]
test_packages['TestRepo2']['x86_64']['389-ds-base-new'] = \
[
'389-ds-base-new.x86_64',
]
result = pg.generate_packages_json()
self.assertEqual(
test_packages,