From: Luca Boccassi Date: Thu, 14 Nov 2024 12:17:18 +0000 (+0000) Subject: Import libdnf_0.73.4.orig.tar.gz X-Git-Tag: archive/raspbian/0.73.4-1+rpi1^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=87e44cfb68fdaca72d97628ccfdd8246e40885df;p=libdnf.git Import libdnf_0.73.4.orig.tar.gz [dgit import orig libdnf_0.73.4.orig.tar.gz] --- 87e44cfb68fdaca72d97628ccfdd8246e40885df diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..b773785 --- /dev/null +++ b/.clang-format @@ -0,0 +1,11 @@ +--- +BasedOnStyle: Mozilla +--- +Language: Cpp +AllowAllParametersOfDeclarationOnNextLine: true +PointerAlignment: Right +SpaceBeforeParens: Always +ColumnLimit: 100 +IndentWidth: 4 +AlignEscapedNewlines: DontAlign +... diff --git a/.git-commit-template b/.git-commit-template new file mode 100644 index 0000000..23b7406 --- /dev/null +++ b/.git-commit-template @@ -0,0 +1,16 @@ + + +# In addition to regular commit message, you can uncomment and fill in the +# following to include this change in the released RPM package changelog: + +# = changelog = +# msg: +# type: +# resolves: +# related: + +# msg = message to be included in the changelog +# type = one of: bugfix/enhancement/security +# resolves = URLs to bugs or issues resolved by this commit +# related = URLs to any related bugs or issues + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5bfc07f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,81 @@ +--- +name: DNF CI +on: pull_request_target + +jobs: + copr-build: + name: Copr Build + runs-on: ubuntu-latest + container: + image: ghcr.io/rpm-software-management/dnf-ci-host + outputs: + package-urls: ${{steps.copr-build.outputs.package-urls}} + steps: + - name: Check out ci-dnf-stack + uses: actions/checkout@v2 + with: + repository: rpm-software-management/ci-dnf-stack + ref: dnf-4-stack + + + - name: Setup CI + id: setup-ci + uses: ./.github/actions/setup-ci + with: + copr-user: ${{secrets.COPR_USER}} + copr-api-token: ${{secrets.COPR_API_TOKEN}} + + - name: Check out sources + uses: actions/checkout@v2 + with: + path: gits/${{github.event.repository.name}} + ref: ${{github.event.pull_request.head.sha}} # check out the PR HEAD + fetch-depth: 0 + + - name: Run Copr Build + id: copr-build + uses: ./.github/actions/copr-build + with: + copr-user: ${{steps.setup-ci.outputs.copr-user}} + + integration-tests: + name: DNF Integration Tests + needs: copr-build + runs-on: ubuntu-latest + container: + image: ghcr.io/rpm-software-management/dnf-ci-host + options: --privileged + volumes: + # A workaround for an undeterministic "OCI not found" error, see + # https://github.com/containers/podman/issues/10321 + - /var/lib/mycontainer:/var/lib/containers + steps: + - name: Check out ci-dnf-stack + uses: actions/checkout@v2 + with: + repository: rpm-software-management/ci-dnf-stack + ref: dnf-4-stack + + - name: Run Integration Tests + uses: ./.github/actions/integration-tests + with: + package-urls: ${{needs.copr-build.outputs.package-urls}} + + ansible-tests: + name: Ansible Tests + needs: copr-build + runs-on: ubuntu-latest + container: + image: ghcr.io/rpm-software-management/dnf-ci-host + options: --privileged + steps: + - name: Check out ci-dnf-stack + uses: actions/checkout@v2 + with: + repository: rpm-software-management/ci-dnf-stack + ref: dnf-4-stack + + - name: Run Ansible Tests + uses: ./.github/actions/ansible-tests + with: + package-urls: ${{needs.copr-build.outputs.package-urls}} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a63bda --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# These are currently the only two things that +# show up in a srcdir != builddir build. +/docs/libdnf/version.xml +/libdnf/dnf-version.h +build +*.pyc +data/tests/modules/yum.repos.d/test.repo +libdnf/config-64.h diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..a585c49 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,19 @@ +# See the documentation for more information: +# https://packit.dev/docs/configuration/ + +specfile_path: libdnf.spec + +jobs: + - job: copr_build + trigger: pull_request + targets: + - fedora-all + - job: tests + trigger: pull_request + identifier: "dnf-tests" + targets: + - fedora-all + fmf_url: https://github.com/rpm-software-management/ci-dnf-stack.git + fmf_ref: enable-tmt-dnf-4-stack + tmt_plan: "^/plans/integration/behave-dnf$" + diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e6e4992 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/rpm-software-management/rpmlint.git + rev: 2.5.0 + hooks: + - id: rpmlint + files: ^libdnf\.spec$ + # Passes if packit not installed. Needed for validation locally +- repo: https://github.com/packit/pre-commit-hooks + rev: v1.2.0 + hooks: + - id: validate-config diff --git a/.tito/packages/.readme b/.tito/packages/.readme new file mode 100644 index 0000000..b9411e2 --- /dev/null +++ b/.tito/packages/.readme @@ -0,0 +1,3 @@ +the .tito/packages directory contains metadata files +named after their packages. Each file has the latest tagged +version and the project's relative directory. diff --git a/.tito/tito.props b/.tito/tito.props new file mode 100644 index 0000000..eab3f19 --- /dev/null +++ b/.tito/tito.props @@ -0,0 +1,5 @@ +[buildconfig] +builder = tito.builder.Builder +tagger = tito.tagger.VersionTagger +changelog_do_not_remove_cherrypick = 0 +changelog_format = %s (%ae) diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..809374c --- /dev/null +++ b/AUTHORS @@ -0,0 +1,37 @@ +Richard Hughes +Igor Gnatenko +Jaroslav Mracek +Jaroslav Rohel +Daniel Mach +Marek Blaha +Pavla Kratochvilova +Michal Domonkos +Ales Matej + +------------------- +Libdnf CONTRIBUTORS +------------------- +Zhang Xianwei +Bernhard Rosenkraenzer +Dmitry Antipov + +-------------- +Hawkey AUTHORS +-------------- + Ales Kozumplik + Jan Silhan + Michal Luscon + Michael Mraka + Radek Holy + Zdenek Pavlas + +------------------- +Hawkey CONTRIBUTORS +------------------- + Colin Walters + Matthew Barnes + Michal Ruprich + Peter Hjalmarsson + Richard Hughes + Scott Tsai + Tomas Mlcoch diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..c6bd46a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,187 @@ +# print initial information about the project +message("Running CMake on libdnf...") +project(libdnf C CXX) + + +# cmake requirements and policies +cmake_minimum_required(VERSION 2.8.5) +cmake_policy(SET CMP0005 OLD) +# Avoid a warning because "hth" links to +# the in-tree libhawkey, but uses pkg-config to find +# GLib. There may be a better way to do this... +cmake_policy(SET CMP0003 NEW) +include(GNUInstallDirs) + + +# use project specific cmake modules +set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) +if(${CMAKE_VERSION} VERSION_LESS 3) + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/cmake/modules-cmake-2) +endif() + + +# print exact name and version of the compiled project +include(VERSION.cmake) +message("Building ${PROJECT_NAME} version: ${LIBDNF_VERSION}") + + +# build options +option(WITH_BINDINGS "Enables python/SWIG bindings" ON) +option(ENABLE_STATIC "Build a static library instead of shared" OFF) +option(WITH_GTKDOC "Enables libdnf GTK-Doc HTML documentation" ON) +option(WITH_HTML "Enables hawkey HTML generation" ON) +option(WITH_MAN "Enables hawkey man page generation" ON) +option(WITH_ZCHUNK "Build with zchunk support" ON) +option(ENABLE_RHSM_SUPPORT "Build with Red Hat Subscription Manager support?" OFF) +option(ENABLE_SOLV_URPMREORDER "Build with support for URPM-like solution reordering?" OFF) +option(WITH_TESTS "Enables unit tests" ON) + + +# build options - debugging +option(WITH_SANITIZERS "Build with address, leak and undefined sanitizers (DEBUG ONLY)" OFF) + + +# load pkg-config first; it's required by other modules +find_package(PkgConfig REQUIRED) +if(APPLE) + set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/lib64/pkgconfig") + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH};/usr/local/share/cmake/Modules/) + include_directories(/usr/local/include) +endif() + + +# build dependencies +find_package(LibSolv 0.7.21 REQUIRED COMPONENTS ext) + + +# build dependencies via pkg-config +pkg_check_modules(CHECK REQUIRED check) +pkg_check_modules(GLIB REQUIRED gio-unix-2.0>=2.46.0) +include_directories(${GLIB_INCLUDE_DIRS}) +pkg_check_modules(JSONC REQUIRED json-c) +include_directories(${JSONC_INCLUDE_DIRS}) +pkg_check_modules(LIBMODULEMD REQUIRED modulemd-2.0>=2.11.2) +pkg_check_modules(REPO REQUIRED librepo>=1.18.0) +include_directories(${REPO_INCLUDE_DIRS}) +link_directories(${REPO_LIBRARY_DIRS}) +pkg_check_modules(RPM REQUIRED rpm>=4.15.0) +pkg_check_modules(SMARTCOLS REQUIRED smartcols) +pkg_check_modules(SQLite3 REQUIRED sqlite3) + +# always enable linking with libdnf utils +include_directories(${CMAKE_SOURCE_DIR} libdnf/utils/) + +if (WITH_ZCHUNK) + pkg_check_modules(ZCHUNKLIB zck>=0.9.11 REQUIRED) + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWITH_ZCHUNK") + set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DWITH_ZCHUNK") +endif () + +if(ENABLE_RHSM_SUPPORT) + pkg_check_modules(RHSM REQUIRED librhsm>=0.0.3) + include_directories(${RHSM_INCLUDE_DIRS}) +endif() + + +# glibc: check if fnmatch.h has FNM_CASEFOLD symbol +include(CheckSymbolExists) +list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE) +check_symbol_exists(FNM_CASEFOLD "fnmatch.h" HAS_FNM_CASEFOLD) +if(NOT HAS_FNM_CASEFOLD) + message(SEND_ERROR "FNM_CASEFOLD is not available in fnmatch.h") +endif() + +# python +if(WITH_BINDINGS) + if(NOT PYTHON_DESIRED) + find_package(PythonInterp REQUIRED) + elseif(${PYTHON_DESIRED} STREQUAL "2") + find_package(PythonInterp 2 EXACT REQUIRED) + elseif(${PYTHON_DESIRED} STREQUAL "3") + find_package(PythonInterp 3 EXACT REQUIRED) + elseif(EXISTS ${PYTHON_DESIRED}) + set(PYTHON_EXECUTABLE ${PYTHON_DESIRED}) + find_package(PythonInterp REQUIRED) + else() + message(FATAL_ERROR "Invalid PYTHON_DESIRED value: " ${PYTHON_DESIRED}) + endif() + find_package(PythonLibs REQUIRED) + message(STATUS "Building for python${PYTHON_VERSION_MAJOR}") +else() + message(STATUS "Not building language bindings") +endif() + + +# compiler options +add_compile_options(-Wcast-align -Wno-uninitialized -Wredundant-decls -Wwrite-strings -Wformat-nonliteral -Wmissing-format-attribute -Wsign-compare -Wtype-limits -Wuninitialized -Wall -Wl,--as-needed) +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -Wmissing-prototypes -Waggregate-return -Wshadow -Werror=implicit-function-declaration") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wmissing-declarations") + +# apple: turn rpath off +set(CMAKE_MACOSX_RPATH 0) + +# package/project version +add_definitions(-DPACKAGE_VERSION=\\"${LIBDNF_VERSION}\\") + +# The libdnf API is under development now. This enables it for internal usage. +add_definitions(-DLIBDNF_UNSTABLE_API) + +# gettext +add_definitions(-DGETTEXT_DOMAIN=\\"libdnf\\") +add_definitions(-DG_LOG_DOMAIN=\\"libdnf\\") + +# tests +add_definitions(-DTESTDATADIR=\\"${CMAKE_SOURCE_DIR}/data/tests\\") + +# librhsm +if(ENABLE_RHSM_SUPPORT) + add_definitions(-DRHSM_SUPPORT) +endif() + +# libsolv +if(ENABLE_SOLV_URPMREORDER) + add_definitions(-DLIBSOLV_FLAG_URPMREORDER=1) +endif() + +# If defined, libsolv adds the prefix "dep_" to solvable dependencies. +# As a result, `requires` is renamed to `dep_requires`. +# Needed for C++20. `requires` is a keyword in C++20. +add_definitions(-DLIBSOLV_SOLVABLE_PREPEND_DEP) + +if(WITH_SANITIZERS) + message(WARNING "Building with sanitizers enabled!") + add_compile_options(-fsanitize=address -fsanitize=undefined -fsanitize=leak) + link_libraries(asan ubsan) +endif() + + +# build binaries +add_subdirectory(libdnf) +if(WITH_BINDINGS) + # add_subdirectory(bindings/perl) + add_subdirectory(bindings/python) +endif() + + +# build translations +add_subdirectory(po) + + +# build docs +add_subdirectory(docs/libdnf) +if(WITH_BINDINGS) + add_subdirectory(docs/hawkey) +endif() + + +# build tests +IF (WITH_TESTS) +enable_testing() +add_subdirectory(tests) +ENDIF() +if(WITH_BINDINGS) + add_subdirectory(python/hawkey) +endif() + + +add_subdirectory(etc) diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..4362b49 --- /dev/null +++ b/COPYING @@ -0,0 +1,502 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/README.md b/README.md new file mode 100644 index 0000000..42db3f8 --- /dev/null +++ b/README.md @@ -0,0 +1,105 @@ +libdnf +====== + +This library provides a high level package-manager. It's core library of [dnf](https://github.com/rpm-software-management/dnf), [PackageKit](https://github.com/hughsie/PackageKit) and [rpm-ostree](https://github.com/projectatomic/rpm-ostree). It's replacement for deprecated [hawkey library](https://github.com/rpm-software-management/hawkey) which it contains inside and uses [librepo](https://github.com/rpm-software-management/librepo) under the hood. + +:warning: :warning: :warning: +**Note that libdnf is currently being reworked and is +considered unstable. Once major users like PackageKit and +DNF are fully ported, a new stable release will be +considered.** +:warning: :warning: :warning: + +License +---- + +LGPLv2+ + +Building for Fedora +=================== + +To install build requirements, run following command: + + dnf install check-devel cmake cppunit-devel gcc gcc-c++ glib2-devel gtk-doc json-c-devel libmodulemd-devel librepo-devel libsolv-devel libsolv-tools make python2-devel python3-devel python2-sphinx python3-sphinx python2-breathe python3-breathe rpm-devel sqlite-devel swig libsmartcols-devel + +From the checkout dir: + + mkdir build + cd build/ + cmake .. -DPYTHON_DESIRED=3 + make + +Building the documentation, from the build/ directory:: + + make doc + +Building RPMs: + + tito build --rpm --test + +Tests +===== + +All unit tests should pass after the build finishes: + + cd build + make test + +There are two parts of unit tests: unit tests in C and unit tests in Python. To run the C part of the tests manually, from hawkey checkout:: + + build/tests/test_main tests/repos/ + +To manually execute the Python tests, from libdnf git checkout directory:: + + PYTHONPATH=`readlink -f ./build/src/python/` python3 -m unittest discover -bt python/hawkey/tests/ -s python/hawkey/tests/tests/ + +The PYTHONPATH is unfortunately needed as the Python test suite needs to know where to import the built hawkey modules. + +Contribution +============ + +Here's the most direct way to get your work merged into the project. + +1. Fork the project +1. Clone down your fork +1. Implement your feature or bug fix and commit changes +1. If the change fixes a bug at [Red Hat bugzilla](https://bugzilla.redhat.com/), or if it is important to the end user, add the following block to the commit message: + + = changelog = + msg: message to be included in the changelog + type: one of: bugfix/enhancement/security (this field is required when message is present) + resolves: URLs to bugs or issues resolved by this commit (can be specified multiple times) + related: URLs to any related bugs or issues (can be specified multiple times) + + * For example:: + + = changelog = + msg: Do not close the database if it wasn't opened + type: bugfix + resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1761976 + + * For your convenience, you can also use git commit template by running the following command in the top-level directory of this project: + + git config commit.template ./.git-commit-template + +1. In a separate commit, add your name and email under ``Libdnf CONTRIBUTORS`` section in the [authors file](https://github.com/rpm-software-management/libdnf/blob/dnf-4-master/README.md) as a reward for your generosity +1. Push the branch to your fork +1. Send a pull request for your branch + +Please do not create pull requests with translation (.po) file improvements. Fix the translation on `Fedora Weblate `_ instead. + +Documentation +============= + +See the [hawkey documentation page](http://hawkey.readthedocs.org). + +Information internal to the hawkey development is maintained on a [github wiki](https://github.com/rpm-software-management/dnf/wiki#wiki-Contact). + +Useful links +============ + +Bug database: + + * [libdnf github issues](https://github.com/rpm-software-management/libdnf/issues) + * [bugzilla](https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=POST&bug_status=MODIFIED&bug_status=ON_DEV&bug_status=ON_QA&bug_status=VERIFIED&bug_status=RELEASE_PENDING&bug_status=CLOSED&component=libdnf&list_id=8513553&product=Fedora&query_format=advanced) + diff --git a/VERSION.cmake b/VERSION.cmake new file mode 100644 index 0000000..b3687f5 --- /dev/null +++ b/VERSION.cmake @@ -0,0 +1,28 @@ +set (DEFAULT_LIBDNF_MAJOR_VERSION 0) +set (DEFAULT_LIBDNF_MINOR_VERSION 73) +set (DEFAULT_LIBDNF_MICRO_VERSION 4) + +if(DEFINED LIBDNF_MAJOR_VERSION) + if(NOT ${DEFAULT_LIBDNF_MAJOR_VERSION} STREQUAL ${LIBDNF_MAJOR_VERSION}) + message(FATAL_ERROR "Variable DEFAULT_LIBDNF_MAJOR_VERSION=" ${DEFAULT_LIBDNF_MAJOR_VERSION} " in VERSION.cmake differs from LIBDNF_MAJOR_VERSION=" ${LIBDNF_MAJOR_VERSION} " in spec") + endif() +else() + set (LIBDNF_MAJOR_VERSION ${DEFAULT_LIBDNF_MAJOR_VERSION}) +endif() + +if(DEFINED LIBDNF_MINOR_VERSION) + if(NOT ${DEFAULT_LIBDNF_MINOR_VERSION} STREQUAL ${LIBDNF_MINOR_VERSION}) + message(FATAL_ERROR "Variable DEFAULT_LIBDNF_MINOR_VERSION=" ${DEFAULT_LIBDNF_MINOR_VERSION} " in VERSION.cmake differs from LIBDNF_MINOR_VERSION=" ${LIBDNF_MINOR_VERSION} " in spec") + endif() +else() + set (LIBDNF_MINOR_VERSION ${DEFAULT_LIBDNF_MINOR_VERSION}) +endif() + +if(DEFINED LIBDNF_MICRO_VERSION) + if(NOT ${DEFAULT_LIBDNF_MICRO_VERSION} STREQUAL ${LIBDNF_MICRO_VERSION}) + message(FATAL_ERROR "Variable DEFAULT_LIBDNF_MICRO_VERSION=" ${DEFAULT_LIBDNF_MICRO_VERSION} " in VERSION.cmake differs from LIBDNF_MICRO_VERSION=" ${LIBDNF_MICRO_VERSION} " in spec") + endif() +else() + set (LIBDNF_MICRO_VERSION ${DEFAULT_LIBDNF_MICRO_VERSION}) +endif() +set (LIBDNF_VERSION ${LIBDNF_MAJOR_VERSION}.${LIBDNF_MINOR_VERSION}.${LIBDNF_MICRO_VERSION}) diff --git a/bindings/perl/CMakeLists.txt b/bindings/perl/CMakeLists.txt new file mode 100644 index 0000000..6bebd1e --- /dev/null +++ b/bindings/perl/CMakeLists.txt @@ -0,0 +1,24 @@ +find_package(SWIG REQUIRED) +include(UseSWIG) + + +message("Building for perl") +find_package(Perl REQUIRED) +find_package(PerlLibs REQUIRED) + + +include_directories(${CMAKE_SOURCE_DIR}) +include_directories(${PERL_INCLUDE_PATH}) +include(UseSWIG) + + +set_source_files_properties(../swig/utils.i PROPERTIES CPLUSPLUS ON) +swig_add_module(utils perl ../swig/utils.i) +swig_link_libraries(utils libdnf) +swig_link_libraries(utils ${PERL_LIBRARY}) +swig_link_libraries(utils ${SQLite3_LIBRARIES}) + +set_source_files_properties(../swig/transaction.i PROPERTIES CPLUSPLUS ON) +swig_add_module(transaction perl ../swig/transaction.i) +swig_link_libraries(transaction libdnf) +swig_link_libraries(transaction ${PERL_LIBRARY}) diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt new file mode 100644 index 0000000..097eea4 --- /dev/null +++ b/bindings/python/CMakeLists.txt @@ -0,0 +1,51 @@ +find_package(PythonInstDir) +find_package(SWIG REQUIRED) +include(UseSWIG) + +message(STATUS "Building for python${PYTHON_VERSION_MAJOR}") + +find_package(PythonInstDir) + +include_directories(${CMAKE_SOURCE_DIR}) +include_directories(${PYTHON_INCLUDE_PATH}) + +if(CMAKE_SIZEOF_VOID_P EQUAL 8) + # using 64bit architecture + set(CMAKE_SWIG_FLAGS "-DSWIGWORDSIZE64") +endif() + +# The libdnf API is under development now. This enables it for internal usage. +set(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_FLAGS} "-DLIBDNF_UNSTABLE_API") + +function(libdnf_swig_module name) + set(source ../swig/${name}.i) + set_source_files_properties(${source} PROPERTIES CPLUSPLUS ON) + swig_add_module(${name} python ${source}) + + foreach(lib ${ARGN}) + swig_link_libraries(${name} ${lib}) + endforeach() + + install(TARGETS _${name} LIBRARY DESTINATION ${PYTHON_INSTALL_DIR}/libdnf) + install(FILES ${CMAKE_BINARY_DIR}/bindings/python/${name}.py DESTINATION ${PYTHON_INSTALL_DIR}/libdnf) +endfunction() + +libdnf_swig_module(error libdnf ${PYTHON_LIBRARY}) +libdnf_swig_module(common_types libdnf ${PYTHON_LIBRARY}) +libdnf_swig_module(conf libdnf ${PYTHON_LIBRARY}) +libdnf_swig_module(module libdnf ${PYTHON_LIBRARY}) +libdnf_swig_module(repo libdnf ${PYTHON_LIBRARY}) +libdnf_swig_module(smartcols libdnf ${PYTHON_LIBRARY}) +libdnf_swig_module(transaction libdnf ${PYTHON_LIBRARY}) +libdnf_swig_module(utils libdnf ${PYTHON_LIBRARY} ${SQLite3_LIBRARIES}) + +configure_file(__init__.py ${CMAKE_CURRENT_BINARY_DIR}/__init__.py COPYONLY) +install(FILES __init__.py DESTINATION ${PYTHON_INSTALL_DIR}/libdnf) + +set(DISTINFO_PATH "${CMAKE_CURRENT_BINARY_DIR}/libdnf-${LIBDNF_VERSION}.dist-info") +set(METADATA_FILE "${DISTINFO_PATH}/METADATA") +file(MAKE_DIRECTORY ${DISTINFO_PATH}) +file(WRITE ${METADATA_FILE} "Metadata-Version: 2.1\n") +file(APPEND ${METADATA_FILE} "Name: libdnf\n") +file(APPEND ${METADATA_FILE} "Version: ${LIBDNF_VERSION}\n") +install(DIRECTORY ${DISTINFO_PATH} DESTINATION ${PYTHON_INSTALL_DIR}) diff --git a/bindings/python/__init__.py b/bindings/python/__init__.py new file mode 100644 index 0000000..07cf195 --- /dev/null +++ b/bindings/python/__init__.py @@ -0,0 +1,19 @@ +from __future__ import absolute_import + +# error needs to be imported first and with global visibility for its symbols, +# as it defines a python exception, which is a global variable and the other +# modules use the symbol. +import sys, os +sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL) +from . import error + +# Other modules also need to be loaded with RTLD_GLOBAL to preserve uniqueness +# of RTTI. There are code paths where an exception thrown in one module is +# supposed to be caught in another. +from . import common_types +from . import conf +from . import module +from . import repo +from . import transaction +from . import utils +sys.setdlopenflags(os.RTLD_NOW) diff --git a/bindings/swig/catch_error.i b/bindings/swig/catch_error.i new file mode 100644 index 0000000..b03ac73 --- /dev/null +++ b/bindings/swig/catch_error.i @@ -0,0 +1,24 @@ +// Beware of nested %includes / %imports. SWIG has a guard to %include each +// file only once, but if you include this in a file that you later import into +// another file, the exception handler will not work and a subsequent %include of +// this file will not work either. + +%include + +%{ + #include "libdnf/error.hpp" + extern PyObject* libdnf_error; +%} + +%exception { + try { + $action + } catch (const libdnf::Error & e) { + PyErr_SetString(libdnf_error, const_cast(e.what())); + SWIG_fail; + } catch (const std::out_of_range & e) { + SWIG_exception(SWIG_IndexError, e.what()); + } catch (const std::exception & e) { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} diff --git a/bindings/swig/common_types.i b/bindings/swig/common_types.i new file mode 100644 index 0000000..c9ae798 --- /dev/null +++ b/bindings/swig/common_types.i @@ -0,0 +1,167 @@ +%module common_types + +%begin %{ + #define SWIG_PYTHON_2_UNICODE +%} + +%include +%include +%include +%include +%include +%include +%include + +// Cant use %include here, SWIG includes each file only once, +// but the exception handler actually doesnt get registered when this file is +// %imported (as opposed to %included). +%exception { + try { + $action + } catch (const std::out_of_range & e) { + SWIG_exception(SWIG_IndexError, e.what()); + } catch (const std::exception & e) { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +%template(SetString) std::set; +%template(PairStringString) std::pair; +%template(VectorPairStringString) std::vector>; +%template(MapStringString) std::map; +%template(MapStringMapStringString) std::map>; +%template(MapStringPairStringString) std::map>; + +%{ + #include "libdnf/utils/PreserveOrderMap.hpp" +%} + +%ignore libdnf::PreserveOrderMap::MyBidirIterator; +%ignore libdnf::PreserveOrderMap::MyBidirIterator::operator++; +%ignore libdnf::PreserveOrderMap::MyBidirIterator::operator--; +%ignore libdnf::PreserveOrderMap::begin; +%ignore libdnf::PreserveOrderMap::end; +%ignore libdnf::PreserveOrderMap::cbegin; +%ignore libdnf::PreserveOrderMap::cend; +%ignore libdnf::PreserveOrderMap::rbegin; +%ignore libdnf::PreserveOrderMap::rend; +%ignore libdnf::PreserveOrderMap::crbegin; +%ignore libdnf::PreserveOrderMap::crend; +%ignore libdnf::PreserveOrderMap::insert; +%ignore libdnf::PreserveOrderMap::erase(const_iterator pos); +%ignore libdnf::PreserveOrderMap::erase(const_iterator first, const_iterator last); +%ignore libdnf::PreserveOrderMap::count; +%ignore libdnf::PreserveOrderMap::find; +%ignore libdnf::PreserveOrderMap::operator[]; +%ignore libdnf::PreserveOrderMap::at; +%include "libdnf/utils/PreserveOrderMap.hpp" + +%inline %{ +class StopIterator {}; + +template +class Iterator { +public: + Iterator(typename T::iterator _cur, typename T::iterator _end) : cur(_cur), end(_end) {} + Iterator* __iter__() + { + return this; + } + + typename T::iterator cur; + typename T::iterator end; + }; +%} + +%define EXTEND_TEMPLATE_PreserveOrderMap(ReturnT, Key, T...) + %extend libdnf::PreserveOrderMap { + ReturnT __getitem__(const Key & key) + { + return $self->at(key); + } + + void __setitem__(const Key & key, const T & value) + { + $self->operator[](key) = value; + } + + void __delitem__(const Key & key) + { + if ($self->erase(key) == 0) + throw std::out_of_range("PreserveOrderMap::__delitem__"); + } + + bool __contains__(const Key & key) const + { + return $self->count(key) > 0; + } + + size_t __len__() const + { + return $self->size(); + } + } +%enddef +EXTEND_TEMPLATE_PreserveOrderMap(T, std::string, std::string) +EXTEND_TEMPLATE_PreserveOrderMap(T &, std::string, libdnf::PreserveOrderMap) + +%template(PreserveOrderMapStringString) libdnf::PreserveOrderMap; +%template(PreserveOrderMapStringStringIterator) Iterator>; +%template(PreserveOrderMapStringPreserveOrderMapStringString) libdnf::PreserveOrderMap>; +%template(PreserveOrderMapStringPreserveOrderMapStringStringIterator) Iterator>>; + + +%exception __next__() { + try + { + $action // calls %extend function next() below + } + catch (StopIterator) + { + PyErr_SetString(PyExc_StopIteration, "End of iterator"); + return NULL; + } +} + +// For old Python +%exception next() { + try + { + $action // calls %extend function next() below + } + catch (StopIterator) + { + PyErr_SetString(PyExc_StopIteration, "End of iterator"); + return NULL; + } +} + +%define EXTEND_TEMPLATE_PreserveOrderMapIterator(Key, T...) +%extend Iterator> { + Key __next__() + { + if ($self->cur != $self->end) { + return ($self->cur++)->first; + } + throw StopIterator(); + } + Key next() + { + if ($self->cur != $self->end) { + return ($self->cur++)->first; + } + throw StopIterator(); + } +} + +%extend libdnf::PreserveOrderMap { + Iterator> __iter__() + { + return Iterator>($self->begin(), $self->end()); + } +} +%enddef +EXTEND_TEMPLATE_PreserveOrderMapIterator(std::string, std::string) +EXTEND_TEMPLATE_PreserveOrderMapIterator(std::string, libdnf::PreserveOrderMap) + +%exception; // beware this resets all exception handlers if you import this file after defining any diff --git a/bindings/swig/conf.i b/bindings/swig/conf.i new file mode 100644 index 0000000..b6a0ce8 --- /dev/null +++ b/bindings/swig/conf.i @@ -0,0 +1,415 @@ +%module conf + +%include +%include +%include +%include + +%import(module="libdnf.common_types") "common_types.i" + +%begin %{ + #define SWIG_PYTHON_2_UNICODE +%} + +%{ + // make SWIG wrap following headers + #include "libdnf/conf/ConfigRepo.hpp" + #include "libdnf/conf/ConfigParser.hpp" + #include + #include + #include +%} + +// Using catch_error.i doesnt work here, because it translates +// std::out_of_range to SWIG_IndexError and the DNF code seems to be relying on +// it actually being a SWIG_RuntimeError here, which is obviously very wrong. +%exception { + try { + $action + } catch (const std::exception & e) { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +#define final + +// make SWIG look into following headers +%ignore libdnf::Option::Exception; +%ignore libdnf::Option::InvalidValue; +%ignore libdnf::Option::ValueNotSet; +%include "libdnf/conf/Option.hpp" +%include "libdnf/conf/OptionChild.hpp" +%include "libdnf/conf/OptionBool.hpp" +%include "libdnf/conf/OptionEnum.hpp" +%template(OptionEnumString) libdnf::OptionEnum; +%include "libdnf/conf/OptionNumber.hpp" +%template(OptionNumberInt32) libdnf::OptionNumber; +%template(OptionNumberUInt32) libdnf::OptionNumber; +%template(OptionNumberInt64) libdnf::OptionNumber; +%template(OptionNumberUInt64) libdnf::OptionNumber; +%template(OptionNumberFloat) libdnf::OptionNumber; +%include "libdnf/conf/OptionSeconds.hpp" +%include "libdnf/conf/OptionString.hpp" +%include "libdnf/conf/OptionStringList.hpp" +%include "libdnf/conf/OptionPath.hpp" + +%template(OptionChildBool) libdnf::OptionChild; +%template(OptionChildString) libdnf::OptionChild; +%template(OptionChildStringList) libdnf::OptionChild; +%template(OptionChildNumberInt32) libdnf::OptionChild>; +%template(OptionChildNumberUInt32) libdnf::OptionChild>; +%template(OptionChildNumberFloat) libdnf::OptionChild>; +%template(OptionChildEnumString) libdnf::OptionChild>; +%template(OptionChildSeconds) libdnf::OptionChild; + +%include + +%inline %{ +class StopIterator {}; + +template +class Iterator { +public: + Iterator(typename T::iterator _cur, typename T::iterator _end) : cur(_cur), end(_end) {} + Iterator* __iter__() + { + return this; + } + + typename T::iterator cur; + typename T::iterator end; + }; +%} + +%feature ("flatnested", "1"); +%rename (OptionBinds_Item) libdnf::OptionBinds::Item; +%ignore libdnf::OptionBinds::Exception; +%ignore libdnf::OptionBinds::OutOfRange; +%ignore libdnf::OptionBinds::AlreadyExists; +%ignore libdnf::OptionBinds::add(const std::string & id, Option & option, + const Item::NewStringFunc & newString, const Item::GetValueStringFunc & getValueString, bool addValue); +%ignore libdnf::OptionBinds::add(const std::string & id, Option & option, + Item::NewStringFunc && newString, Item::GetValueStringFunc && getValueString, bool addValue); +%ignore libdnf::OptionBinds::begin; +%ignore libdnf::OptionBinds::cbegin; +%ignore libdnf::OptionBinds::end; +%ignore libdnf::OptionBinds::cend; +%ignore libdnf::OptionBinds::find; +%include "libdnf/conf/OptionBinds.hpp" +%feature ("flatnested", "0"); + +%include "libdnf/conf/Config.hpp" +%include "libdnf/conf/ConfigMain.hpp" +%include "libdnf/conf/ConfigRepo.hpp" + +%template(OptionBindsIterator) Iterator; + +%exception libdnf::ConfigParser::read { + try + { + $action + } + catch (const libdnf::ConfigParser::CantOpenFile & e) + { + SWIG_exception(SWIG_IOError, e.what()); + } + catch (const libdnf::ConfigParser::Exception & e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } + catch (const std::exception & e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +%exception libdnf::ConfigParser::getValue { + try + { + $action + } + catch (const libdnf::ConfigParser::MissingSection & e) + { + SWIG_exception(SWIG_IndexError, e.what()); + } + catch (const libdnf::ConfigParser::MissingOption & e) + { + SWIG_exception(SWIG_IndexError, e.what()); + } + catch (const libdnf::ConfigParser::Exception & e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } + catch (const std::exception & e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +%exception libdnf::ConfigParser::getSubstitutedValue { + try + { + $action + } + catch (const libdnf::ConfigParser::MissingSection & e) + { + SWIG_exception(SWIG_IndexError, e.what()); + } + catch (const libdnf::ConfigParser::MissingOption & e) + { + SWIG_exception(SWIG_IndexError, e.what()); + } + catch (const libdnf::ConfigParser::Exception & e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } + catch (const std::exception & e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +%apply std::string & INOUT { std::string & text } +namespace libdnf { +struct ConfigParser { +public: + typedef PreserveOrderMap> Container; + + static void substitute(std::string & text, + const std::map & substitutions); + void setSubstitutions(const std::map & substitutions); + const std::map & getSubstitutions() const; + void read(const std::string & filePath); + void write(const std::string & filePath, bool append) const; + void write(const std::string & filePath, bool append, const std::string & section) const; + void write(std::ostream & outputStream, const std::string & section) const; + void write(std::ostream & outputStream) const; + bool addSection(const std::string & section, const std::string & rawLine); + bool addSection(const std::string & section); + bool hasSection(const std::string & section) const noexcept; + bool hasOption(const std::string & section, const std::string & key) const noexcept; + void setValue(const std::string & section, const std::string & key, const std::string & value, const std::string & rawItem); + void setValue(const std::string & section, const std::string & key, const std::string & value); + bool removeSection(const std::string & section); + bool removeOption(const std::string & section, const std::string & key); + void addCommentLine(const std::string & section, const std::string & comment); + const std::string & getValue(const std::string & section, const std::string & key) const; + std::string getSubstitutedValue(const std::string & section, const std::string & key) const; + const std::string & getHeader() const noexcept; + std::string & getHeader() noexcept; + const Container & getData() const noexcept; + Container & getData() noexcept; +}; +} +%clear std::string & text; + +%extend libdnf::ConfigParser { + void readString(const std::string & content) { + std::unique_ptr istream(new std::istringstream(content)); + self->read(std::move(istream)); + } +} + +%exception __next__() { + try + { + $action // calls %extend function next() below + } + catch (const StopIterator &) + { + PyErr_SetString(PyExc_StopIteration, "End of iterator"); + return NULL; + } + catch (const std::exception & e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +// For old Python +%exception next() { + try + { + $action // calls %extend function next() below + } + catch (const StopIterator &) + { + PyErr_SetString(PyExc_StopIteration, "End of iterator"); + return NULL; + } + catch (const std::exception & e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +%template(PairStringOptionBindsItem) std::pair; +%extend Iterator { + std::pair __next__() + { + if ($self->cur != $self->end) { + auto & id = $self->cur->first; + auto pValue = &($self->cur++)->second; + return {id, pValue}; + } + throw StopIterator(); + } + std::pair next() + { + if ($self->cur != $self->end) { + auto & id = $self->cur->first; + auto pValue = &($self->cur++)->second; + return {id, pValue}; + } + throw StopIterator(); + } +} + +%exception libdnf::OptionBinds::__getitem__ { + try + { + $action + } + catch (const libdnf::OptionBinds::OutOfRange & e) + { + SWIG_exception(SWIG_IndexError, e.what()); + } + catch (const std::exception & e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +%extend libdnf::OptionBinds { + Item & __getitem__(const std::string & id) + { + return $self->at(id); + } + + size_t __len__() + { + return $self->size(); + } + + Iterator __iter__() + { + return Iterator($self->begin(), $self->end()); + } +} + +%pythoncode %{ +# Partial compatibility with Python ConfigParser +ConfigParser.readFileName = ConfigParser.read +def ConfigParser__newRead(self, filenames): + parsedFNames = [] + try: + if isinstance(filenames, str) or isinstance(filenames, unicode): + filenames = [filenames] + except NameError: + pass + for fname in filenames: + try: + self.readFileName(fname) + parsedFNames.append(fname) + except IOError: + pass + except Exception as e: + raise RuntimeError("Parsing file '%s' failed: %s" % (fname, str(e))) + return parsedFNames +ConfigParser.read = ConfigParser__newRead +del ConfigParser__newRead + +def ConfigParser__read_string(self, string, source=''): + try: + self.readString(string) + except Exception as e: + raise RuntimeError("Parsing source '%s' failed: %s" % (source, str(e))) +ConfigParser.read_string = ConfigParser__read_string +del ConfigParser__read_string + +def ConfigParser__add_section(self, section): + if not self.addSection(section): + raise KeyError("Section '%s' already exists" % section) +ConfigParser.add_section = ConfigParser__add_section +del ConfigParser__add_section + +ConfigParser.has_section = ConfigParser.hasSection +ConfigParser.has_option = ConfigParser.hasOption + +def ConfigParser__get(self, section, option, raw=False): + try: + if raw: + return self.getValue(section, option) + else: + return self.getSubstitutedValue(section, option) + except IndexError as e: + raise KeyError(str(e)) + +ConfigParser.get = ConfigParser__get +del ConfigParser__get + +def ConfigParser__getint(self, section, option, raw=False): + return int(self.get(section, option, raw=raw)) +ConfigParser.getint = ConfigParser__getint +del ConfigParser__getint + +def ConfigParser__getfloat(self, section, option, raw=False): + return float(self.get(section, option, raw=raw)) +ConfigParser.getfloat = ConfigParser__getfloat +del ConfigParser__getfloat + +def ConfigParser__getboolean(self, section, option, raw=False): + v = self.get(section, option, raw=raw) + try: + return OptionBool(False).fromString(v) + except RuntimeError: + raise ValueError('Not a boolean: %s' % v) +ConfigParser.getboolean = ConfigParser__getboolean +del ConfigParser__getboolean + +def ConfigParser__items(self, section, raw=False): + if not self.hasSection(section): + raise KeyError("No section: '%s'" % section) + sectObj = self.getData()[section] + items = [] + for key in sectObj: + if not key.startswith('#'): + value = self.get(section, key, raw=raw) + items.append((key, value)) + return items +ConfigParser.items = ConfigParser__items +del ConfigParser__items + +def ConfigParser__set(self, section, option, value): + if not self.hasSection(section): + raise KeyError("No section: '%s'" % section) + self.setValue(section, option, value) +ConfigParser.set = ConfigParser__set +del ConfigParser__set + +ConfigParser.remove_section = ConfigParser.removeSection + +def ConfigParser__remove_option(self, section, option): + if not self.hasSection(section): + raise KeyError("No section: '%s'" % section) + return self.removeOption(section, option) +ConfigParser.remove_option = ConfigParser__remove_option +del ConfigParser__remove_option + +def ConfigParser__options(self, section): + if not self.hasSection(section): + raise KeyError("No section: '%s'" % section) + sectObj = self.getData()[section] + return [item for item in sectObj if not item.startswith('#')] +ConfigParser.options = ConfigParser__options +del ConfigParser__options + +def ConfigParser__sections(self): + return list(self.getData()) +ConfigParser.sections = ConfigParser__sections +del ConfigParser__sections + +# Compatible name aliases +ConfigMain.exclude = ConfigMain.excludepkgs +ConfigRepo.exclude = ConfigRepo.excludepkgs +%} diff --git a/bindings/swig/error.i b/bindings/swig/error.i new file mode 100644 index 0000000..5cf788a --- /dev/null +++ b/bindings/swig/error.i @@ -0,0 +1,17 @@ +%module error + +%{ + #include "libdnf/error.hpp" + #define SWIG_FILE_WITH_INIT + PyObject* libdnf_error; +%} + +%init %{ + libdnf_error = PyErr_NewException("libdnf._error.Error", NULL, NULL); + Py_INCREF(libdnf_error); + PyModule_AddObject(m, "Error", libdnf_error); +%} + +%pythoncode %{ + Error = _error.Error +%} diff --git a/bindings/swig/module.i b/bindings/swig/module.i new file mode 100644 index 0000000..8e5290a --- /dev/null +++ b/bindings/swig/module.i @@ -0,0 +1,63 @@ +%module module + +%begin %{ +#define SWIG_PYTHON_2_UNICODE +%} + +#define DEPRECATED(x) + +%include +%include +%include +%include + +%import(module="libdnf.common_types") "common_types.i" + +%include "catch_error.i" + +typedef int Id; + +%{ + // make SWIG wrap following headers + #include "libdnf/module/ModulePackageContainer.hpp" +%} + +%inline %{ + typedef libdnf::ModuleDependencies ModuleDependencies; + typedef libdnf::ModuleProfile ModuleProfile; +%} + +%extend libdnf::ModulePackage { + long __hash__() + { + return $self->getId(); + } +} + +%template(VectorModulePackagePtr) std::vector; +%template(VectorVectorVectorModulePackagePtr) std::vector>>; +%template(VectorModuleProfile) std::vector; +%template(VectorModuleDependencies) std::vector; + +%include + +// this must follow std_vector_ext.i include, otherwise it returns garbage instead of list of strings +%template(MapStringVectorString) std::map>; +%template(VectorMapStringVectorString) std::vector>>; +%template(VectorVectorString) std::vector>; + +// make SWIG wrap following headers +%nodefaultctor libdnf::ModulePackage; +%nodefaultctor libdnf::ModuleProfile; +%nodefaultctor libdnf::ModuleDependencies; + +%include "libdnf/module/ModulePackage.hpp" +%ignore libdnf::ModulePackageContainer::Exception; +%ignore libdnf::ModulePackageContainer::NoModuleException; +%ignore libdnf::ModulePackageContainer::NoStreamException; +%ignore libdnf::ModulePackageContainer::EnabledStreamException; +%ignore libdnf::ModulePackageContainer::EnableMultipleStreamsException; +%include "libdnf/module/ModulePackageContainer.hpp" +%include "libdnf/module/modulemd/ModuleProfile.hpp" +%include "libdnf/module/modulemd/ModuleDependencies.hpp" +%template(PairVectorVectorStringModuleErrorType) std::pair>, libdnf::ModulePackageContainer::ModuleErrorType>; diff --git a/bindings/swig/repo.i b/bindings/swig/repo.i new file mode 100644 index 0000000..eef2c44 --- /dev/null +++ b/bindings/swig/repo.i @@ -0,0 +1,93 @@ +%module(directors="1") repo + +%include +%include +%include + +%import(module="libdnf.common_types") "common_types.i" +%import(module="libdnf.conf") "conf.i" + +%include "catch_error.i" + +%begin %{ + #define SWIG_PYTHON_2_UNICODE +%} + +%{ + // make SWIG wrap following headers + #include "libdnf/repo/Crypto.hpp" + #include "libdnf/repo/Repo.hpp" +%} + +// make SWIG look into following headers +%template(VectorPPackageTarget) std::vector; + +%extend libdnf::Repo { + Repo(const std::string & id, ConfigRepo * config) + { + return new libdnf::Repo(id, std::unique_ptr(config)); + } + void setCallbacks(RepoCB * callbacks) + { + self->setCallbacks(std::unique_ptr(callbacks)); + } + void setHttpHeaders(const std::vector & headers) + { + const char * cHeaders[headers.size() + 1]; + for (size_t i = 0; i < headers.size(); ++i) + cHeaders[i] = headers[i].c_str(); + cHeaders[headers.size()] = nullptr; + self->setHttpHeaders(cHeaders); + } + std::vector getHttpHeaders() const + { + auto cHeaders = self->getHttpHeaders(); + if (!cHeaders) + return {}; + size_t headersCount = 0; + while (cHeaders[headersCount]) + ++headersCount; + std::vector headers(headersCount); + for (size_t i = 0; i < headersCount; ++i) { + headers[i] = cHeaders[i]; + } + return headers; + } +} +%ignore libdnf::Repo::Repo; +%ignore libdnf::Repo::setCallbacks; +%ignore libdnf::Repo::setHttpHeaders; +%ignore libdnf::Repo::getHttpHeaders; + +%extend libdnf::PackageTarget { + PackageTarget(ConfigMain * cfg, const char * relativeUrl, const char * dest, int chksType, + const char * chksum, int64_t expectedSize, const char * baseUrl, bool resume, + int64_t byteRangeStart, int64_t byteRangeEnd, PackageTargetCB * callbacks, + const std::vector & httpHeaders = {}) + { + const char * cHeaders[httpHeaders.size() + 1]; + for (size_t i = 0; i < httpHeaders.size(); ++i) + cHeaders[i] = httpHeaders[i].c_str(); + cHeaders[httpHeaders.size()] = nullptr; + + return new libdnf::PackageTarget(cfg, relativeUrl, dest, chksType, + chksum, expectedSize, baseUrl, resume, + byteRangeStart, byteRangeEnd, callbacks, + httpHeaders.size() > 0 ? cHeaders : nullptr); + } +} +%ignore libdnf::PackageTarget::PackageTarget(ConfigMain * cfg, const char * relativeUrl, + const char * dest, int chksType, + const char * chksum, int64_t expectedSize, const char * baseUrl, bool resume, + int64_t byteRangeStart, int64_t byteRangeEnd, PackageTargetCB * callbacks, + const char * httpHeaders[] = nullptr); + +%ignore std::vector::vector(size_type); +%ignore std::vector::resize; +%template(VectorKey) std::vector; +%include "libdnf/repo/Crypto.hpp" + +%feature("director") libdnf::RepoCB; +%ignore libdnf::PackageTarget::PackageTarget(const PackageTarget & src); +%feature("director") libdnf::PackageTargetCB; +%include "libdnf/repo/Repo.hpp" diff --git a/bindings/swig/smartcols.i b/bindings/swig/smartcols.i new file mode 100644 index 0000000..14e8706 --- /dev/null +++ b/bindings/swig/smartcols.i @@ -0,0 +1,26 @@ +%module smartcols + +%include +%include + +%include "catch_error.i" + +%{ +// make SWIG wrap following headers +#include "libdnf/utils/smartcols/Table.hpp" +#include "libdnf/utils/smartcols/Column.hpp" +#include "libdnf/utils/smartcols/Line.hpp" +#include "libdnf/utils/smartcols/Cell.hpp" +%} + +%rename(_print) print; + +%shared_ptr(Column) +%shared_ptr(Line) +%shared_ptr(Cell) +%shared_ptr(Table) + +%include "libdnf/utils/smartcols/Table.hpp" +%include "libdnf/utils/smartcols/Column.hpp" +%include "libdnf/utils/smartcols/Line.hpp" +%include "libdnf/utils/smartcols/Cell.hpp" diff --git a/bindings/swig/std_vector_ext.i b/bindings/swig/std_vector_ext.i new file mode 100644 index 0000000..627ae2b --- /dev/null +++ b/bindings/swig/std_vector_ext.i @@ -0,0 +1,115 @@ +%include +%include + + +%template(VectorString) std::vector; + +%pythoncode %{ + +def VectorString__str__(self): + return str(list(self)) +VectorString.__str__ = VectorString__str__ + +def VectorString__eq__(self, other): + return list(self) == list(other) +VectorString.__eq__ = VectorString__eq__ + +def VectorString__ne__(self, other): + return list(self) != list(other) +VectorString.__ne__ = VectorString__ne__ + +def VectorString__lt__(self, other): + return list(self) < list(other) +VectorString.__lt__ = VectorString__lt__ + +def VectorString__le__(self, other): + return list(self) <= list(other) +VectorString.__le__ = VectorString__le__ + +def VectorString__gt__(self, other): + return list(self) > list(other) +VectorString.__gt__ = VectorString__gt__ + +def VectorString__ge__(self, other): + return list(self) >= list(other) +VectorString.__ge__ = VectorString__ge__ + +def VectorString__iadd__(self, value): + self.extend(value) + return self +VectorString.__iadd__ = VectorString__iadd__ + +def VectorString__imul__(self, value): + data = list(self) + data *= value + self.clear() + self.extend(data) + return self +VectorString.__imul__ = VectorString__imul__ + +def VectorString__mul__(self, value): + result = self.copy() + result *= value + return result +VectorString.__mul__ = VectorString__mul__ + +def VectorString__rmul__(self, value): + return self * value +VectorString.__rmul__ = VectorString__rmul__ + +def VectorString__add__(self, value): + result = self.copy() + result.extend(value) + return result +VectorString.__add__ = VectorString__add__ + +def VectorString__append(self, item): + self.push_back(item) +VectorString.append = VectorString__append + +def VectorString__copy(self): + return VectorString(list(self)) +VectorString.copy = VectorString__copy + +def VectorString__count(self, item): + return list(self).count(item) +VectorString.count = VectorString__count + +def VectorString__extend(self, iterable): + for i in iterable: + self.push_back(i) +VectorString.extend = VectorString__extend + +def VectorString__index(self, *args, **kwargs): + data = list(self) + return data.index(*args, **kwargs) +VectorString.index = VectorString__index + +def VectorString__insert(self, *args, **kwargs): + data = list(self) + data.insert(*args, **kwargs) + self.clear() + self.extend(data) +VectorString.insert = VectorString__insert + +def VectorString__remove(self, *args, **kwargs): + data = list(self) + data.remove(*args, **kwargs) + self.clear() + self.extend(data) +VectorString.remove = VectorString__remove + +def VectorString__sort(self, *args, **kwargs): + data = list(self) + data.sort() + self.clear() + self.extend(data) +VectorString.sort = VectorString__sort + +def VectorString__reverse(self, *args, **kwargs): + data = list(self) + data.reverse() + self.clear() + self.extend(data) +VectorString.reverse = VectorString__reverse +%} diff --git a/bindings/swig/transaction.i b/bindings/swig/transaction.i new file mode 100644 index 0000000..c5fe04d --- /dev/null +++ b/bindings/swig/transaction.i @@ -0,0 +1,104 @@ +%module transaction + +%begin %{ +#define SWIG_PYTHON_2_UNICODE +%} + +%include +%include +%include +%include +%include +%include +%include + +%include "catch_error.i" + +%rename ("__hash__", fullname=1) "libdnf::TransactionItem::getHash"; + +%shared_ptr(SQLite3) +typedef std::shared_ptr< SQLite3 > SQLite3Ptr; + +%shared_ptr(libdnf::Item) +typedef std::shared_ptr< libdnf::Item > ItemPtr; + +%shared_ptr(libdnf::RPMItem) +typedef std::shared_ptr< libdnf::RPMItem > RPMItemPtr; + +%shared_ptr(libdnf::CompsGroupItem) +typedef std::shared_ptr< libdnf::CompsGroupItem > CompsGroupItemPtr; + +%shared_ptr(libdnf::CompsGroupPackage) +typedef std::shared_ptr< libdnf::CompsGroupPackage > CompsGroupPackagePtr; + +%shared_ptr(libdnf::CompsEnvironmentItem) +typedef std::shared_ptr< libdnf::CompsEnvironmentItem > CompsEnvironmentItemPtr; + +%shared_ptr(libdnf::CompsEnvironmentGroup) +typedef std::shared_ptr< libdnf::CompsEnvironmentGroup > CompsEnvironmentGroupPtr; + +%shared_ptr(libdnf::Transaction) +typedef std::shared_ptr< libdnf::Transaction > TransactionPtr; + +%shared_ptr(libdnf::TransactionItem) +typedef std::shared_ptr< libdnf::TransactionItem > TransactionItemPtr; + +%shared_ptr(libdnf::MergedTransaction) +typedef std::shared_ptr< libdnf::MergedTransaction > MergedTransactionPtr; + +%shared_ptr(libdnf::TransactionItemBase) +typedef std::shared_ptr< libdnf::TransactionItemBase > TransactionItemBasePtr; + +// XXX workaround - because SWIG... +typedef libdnf::CompsPackageType CompsPackageType; + +%{ + // make SWIG wrap following headers + #include "libdnf/transaction/Item.hpp" + #include "libdnf/transaction/CompsEnvironmentItem.hpp" + #include "libdnf/transaction/CompsGroupItem.hpp" + #include "libdnf/transaction/RPMItem.hpp" + #include "libdnf/transaction/Swdb.hpp" + #include "libdnf/transaction/Transaction.hpp" + #include "libdnf/transaction/TransactionItem.hpp" + #include "libdnf/transaction/TransactionItemReason.hpp" + #include "libdnf/transaction/MergedTransaction.hpp" + #include "libdnf/transaction/Transformer.hpp" + #include "libdnf/transaction/Types.hpp" + using namespace libdnf; +%} + + +// This include has to be before %template definitions. SWIG is fragile :( +%include "libdnf/transaction/TransactionItemReason.hpp" +%include "libdnf/transaction/Types.hpp" + + +%template() std::vector >; +%template() std::vector >; +%template() std::vector >; +%template() std::vector >; +%template() std::vector >; +%template(TransactionStateVector) std::vector; + +%template() std::vector; +%template() std::vector; +%template() std::vector; + +%template() std::vector< std::string >; +%template() std::pair; +%template() std::map; +%template() std::map; +%template() std::vector >; + + +// make SWIG look into following headers +%include "libdnf/transaction/Item.hpp" +%include "libdnf/transaction/CompsEnvironmentItem.hpp" +%include "libdnf/transaction/CompsGroupItem.hpp" +%include "libdnf/transaction/RPMItem.hpp" +%include "libdnf/transaction/Swdb.hpp" +%include "libdnf/transaction/Transaction.hpp" +%include "libdnf/transaction/TransactionItem.hpp" +%include "libdnf/transaction/MergedTransaction.hpp" +%include "libdnf/transaction/Transformer.hpp" diff --git a/bindings/swig/utils.i b/bindings/swig/utils.i new file mode 100644 index 0000000..df323e3 --- /dev/null +++ b/bindings/swig/utils.i @@ -0,0 +1,50 @@ +%module(directors="1") utils + +%begin %{ +#define SWIG_PYTHON_2_UNICODE +%} + +%include +%include + +%include "catch_error.i" + +%{ + // make SWIG wrap following headers + #include "libdnf/utils/sqlite3/Sqlite3.hpp" + #include "libdnf/utils/logger.hpp" + #include "libdnf/log.hpp" + #include "libdnf/utils/utils.hpp" +%} + +%shared_ptr(SQLite3) +%nocopyctor SQLite3; + + +// make SWIG look into following headers +class SQLite3 { +public: + SQLite3(const SQLite3 &) = delete; + SQLite3 & operator=(const SQLite3 &) = delete; + SQLite3(const char *dbPath); + void close(); +}; + +typedef long time_t; +typedef long pid_t; + +%feature("director") Logger; +%include "libdnf/utils/logger.hpp" + +%include "libdnf/log.hpp" + +typedef int mode_t; + +namespace libdnf { namespace filesystem { + +void decompress(const char * inPath, const char * outPath, mode_t outMode, const char * compressType = nullptr); + +bool checksum_check(const char * type, const char * inPath, const char * checksum_valid); +std::string checksum_value(const char * type, const char * inPath); + +}} diff --git a/cmake/modules-cmake-2/UseSWIG.cmake b/cmake/modules-cmake-2/UseSWIG.cmake new file mode 100644 index 0000000..81829d7 --- /dev/null +++ b/cmake/modules-cmake-2/UseSWIG.cmake @@ -0,0 +1,244 @@ +# - SWIG module for CMake +# Defines the following macros: +# SWIG_ADD_MODULE(name language [ files ]) +# - Define swig module with given name and specified language +# SWIG_LINK_LIBRARIES(name [ libraries ]) +# - Link libraries to swig module +# All other macros are for internal use only. +# To get the actual name of the swig module, +# use: ${SWIG_MODULE_${name}_REAL_NAME}. +# Set Source files properties such as CPLUSPLUS and SWIG_FLAGS to specify +# special behavior of SWIG. Also global CMAKE_SWIG_FLAGS can be used to add +# special flags to all swig calls. +# Another special variable is CMAKE_SWIG_OUTDIR, it allows one to specify +# where to write all the swig generated module (swig -outdir option) +# The name-specific variable SWIG_MODULE__EXTRA_DEPS may be used +# to specify extra dependencies for the generated modules. +# If the source file generated by swig need some special flag you can use +# set_source_files_properties( ${swig_generated_file_fullname} +# PROPERTIES COMPILE_FLAGS "-bla") + +#============================================================================= +# Copyright 2004-2009 Kitware, Inc. +# Copyright 2009 Mathieu Malaterre +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. +#============================================================================= +# (To distribute this file outside of CMake, substitute the full +# License text for the above reference.) + +set(SWIG_CXX_EXTENSION "cxx") +set(SWIG_EXTRA_LIBRARIES "") + +set(SWIG_PYTHON_EXTRA_FILE_EXTENSION "py") + +# +# For given swig module initialize variables associated with it +# +macro(SWIG_MODULE_INITIALIZE name language) + string(TOUPPER "${language}" swig_uppercase_language) + string(TOLOWER "${language}" swig_lowercase_language) + set(SWIG_MODULE_${name}_LANGUAGE "${swig_uppercase_language}") + set(SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG "${swig_lowercase_language}") + + set(SWIG_MODULE_${name}_REAL_NAME "${name}") + if("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "UNKNOWN") + message(FATAL_ERROR "SWIG Error: Language \"${language}\" not found") + elseif("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "PYTHON") + # when swig is used without the -interface it will produce in the module.py + # a 'import _modulename' statement, which implies having a corresponding + # _modulename.so (*NIX), _modulename.pyd (Win32). + set(SWIG_MODULE_${name}_REAL_NAME "_${name}") + elseif("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "PERL") + set(SWIG_MODULE_${name}_EXTRA_FLAGS "-shadow") + endif() +endmacro() + +# +# For a given language, input file, and output file, determine extra files that +# will be generated. This is internal swig macro. +# + +macro(SWIG_GET_EXTRA_OUTPUT_FILES language outfiles generatedpath infile) + set(${outfiles} "") + get_source_file_property(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename + ${infile} SWIG_MODULE_NAME) + if(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename STREQUAL "NOTFOUND") + get_filename_component(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename "${infile}" NAME_WE) + endif() + foreach(it ${SWIG_${language}_EXTRA_FILE_EXTENSION}) + set(${outfiles} ${${outfiles}} + "${generatedpath}/${SWIG_GET_EXTRA_OUTPUT_FILES_module_basename}.${it}") + endforeach() +endmacro() + +# +# Take swig (*.i) file and add proper custom commands for it +# +macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) + set(swig_full_infile ${infile}) + get_filename_component(swig_source_file_path "${infile}" PATH) + get_filename_component(swig_source_file_name_we "${infile}" NAME_WE) + get_source_file_property(swig_source_file_generated ${infile} GENERATED) + get_source_file_property(swig_source_file_cplusplus ${infile} CPLUSPLUS) + get_source_file_property(swig_source_file_flags ${infile} SWIG_FLAGS) + if("${swig_source_file_flags}" STREQUAL "NOTFOUND") + set(swig_source_file_flags "") + endif() + set(swig_source_file_fullname "${infile}") + if(IS_ABSOLUTE "${swig_source_file_path}") + if("${swig_source_file_path}" MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}") + string(REGEX REPLACE + "^${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" + swig_generated_file_path + "${swig_source_file_path}") + elseif("${swig_source_file_path}" MATCHES "^${CMAKE_CURRENT_BINARY_DIR}") + set(swig_generated_file_path "${swig_source_file_path}") + else() + # Avoid having a really deep path. + set(swig_generated_file_path "${CMAKE_CURRENT_BINARY_DIR}/swig-sources") + endif() + else() + # Source file is relative to the cmake current source dir. + string(REPLACE ".." "__" parent_free_path "${swig_source_file_path}") + set(swig_generated_file_path "${CMAKE_CURRENT_BINARY_DIR}/${parent_free_path}") + set(swig_source_file_fullname "${CMAKE_CURRENT_SOURCE_DIR}/${infile}") + endif() + + # If CMAKE_SWIG_OUTDIR was specified then pass it to -outdir + if(CMAKE_SWIG_OUTDIR) + set(swig_outdir ${CMAKE_SWIG_OUTDIR}) + else() + set(swig_outdir ${CMAKE_CURRENT_BINARY_DIR}) + endif() + SWIG_GET_EXTRA_OUTPUT_FILES(${SWIG_MODULE_${name}_LANGUAGE} + swig_extra_generated_files + "${swig_outdir}" + "${swig_source_file_fullname}") + set(swig_generated_file_fullname + "${swig_generated_file_path}/${swig_source_file_name_we}") + # add the language into the name of the file (i.e. TCL_wrap) + # this allows for the same .i file to be wrapped into different languages + set(swig_generated_file_fullname + "${swig_generated_file_fullname}${SWIG_MODULE_${name}_LANGUAGE}_wrap") + + if(swig_source_file_cplusplus) + set(swig_generated_file_fullname + "${swig_generated_file_fullname}.${SWIG_CXX_EXTENSION}") + else() + set(swig_generated_file_fullname + "${swig_generated_file_fullname}.c") + endif() + + #message("Full path to source file: ${swig_source_file_fullname}") + #message("Full path to the output file: ${swig_generated_file_fullname}") + get_directory_property(cmake_include_directories INCLUDE_DIRECTORIES) + set(swig_include_dirs) + foreach(it ${cmake_include_directories}) + set(swig_include_dirs ${swig_include_dirs} "-I${it}") + endforeach() + + set(swig_special_flags) + # default is c, so add c++ flag if it is c++ + if(swig_source_file_cplusplus) + set(swig_special_flags ${swig_special_flags} "-c++") + endif() + set(swig_extra_flags) + if(SWIG_MODULE_${name}_EXTRA_FLAGS) + set(swig_extra_flags ${swig_extra_flags} ${SWIG_MODULE_${name}_EXTRA_FLAGS}) + endif() + add_custom_command( + OUTPUT "${swig_generated_file_fullname}" ${swig_extra_generated_files} + # Let's create the ${swig_outdir} at execution time, in case dir contains $(OutDir) + COMMAND ${CMAKE_COMMAND} -E make_directory ${swig_outdir} + COMMAND ${CMAKE_COMMAND} -E make_directory "${swig_generated_file_path}" + COMMAND "${SWIG_EXECUTABLE}" + ARGS "-${SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG}" + ${swig_source_file_flags} + ${CMAKE_SWIG_FLAGS} + -outdir ${swig_outdir} + ${swig_special_flags} + ${swig_extra_flags} + ${swig_include_dirs} + -o "${swig_generated_file_fullname}" + "${swig_source_file_fullname}" + MAIN_DEPENDENCY "${swig_source_file_fullname}" + DEPENDS ${SWIG_MODULE_${name}_EXTRA_DEPS} + COMMENT "Swig source") + set_source_files_properties("${swig_generated_file_fullname}" ${swig_extra_generated_files} + PROPERTIES GENERATED 1) + set(${outfiles} "${swig_generated_file_fullname}" ${swig_extra_generated_files}) +endmacro() + +# +# Create Swig module +# +macro(SWIG_ADD_MODULE name language) + SWIG_MODULE_INITIALIZE(${name} ${language}) + set(swig_dot_i_sources) + set(swig_other_sources) + foreach(it ${ARGN}) + if(${it} MATCHES ".*\\.i$") + set(swig_dot_i_sources ${swig_dot_i_sources} "${it}") + else() + set(swig_other_sources ${swig_other_sources} "${it}") + endif() + endforeach() + + set(swig_generated_sources) + foreach(it ${swig_dot_i_sources}) + SWIG_ADD_SOURCE_TO_MODULE(${name} swig_generated_source ${it}) + set(swig_generated_sources ${swig_generated_sources} "${swig_generated_source}") + endforeach() + get_directory_property(swig_extra_clean_files ADDITIONAL_MAKE_CLEAN_FILES) + set_directory_properties(PROPERTIES + ADDITIONAL_MAKE_CLEAN_FILES "${swig_extra_clean_files};${swig_generated_sources}") + add_library(${SWIG_MODULE_${name}_REAL_NAME} + MODULE + ${swig_generated_sources} + ${swig_other_sources}) + string(TOLOWER "${language}" swig_lowercase_language) + if ("${swig_lowercase_language}" STREQUAL "java") + if (APPLE) + # In java you want: + # System.loadLibrary("LIBRARY"); + # then JNI will look for a library whose name is platform dependent, namely + # MacOS : libLIBRARY.jnilib + # Windows: LIBRARY.dll + # Linux : libLIBRARY.so + set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".jnilib") + endif () + endif () + if ("${swig_lowercase_language}" STREQUAL "python") + # this is only needed for the python case where a _modulename.so is generated + set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "") + # Python extension modules on Windows must have the extension ".pyd" + # instead of ".dll" as of Python 2.5. Older python versions do support + # this suffix. + # http://docs.python.org/whatsnew/ports.html#SECTION0001510000000000000000 + # + # Windows: .dll is no longer supported as a filename extension for extension modules. + # .pyd is now the only filename extension that will be searched for. + # + if(WIN32 AND NOT CYGWIN) + set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".pyd") + endif() + endif () +endmacro() + +# +# Like TARGET_LINK_LIBRARIES but for swig modules +# +macro(SWIG_LINK_LIBRARIES name) + if(SWIG_MODULE_${name}_REAL_NAME) + target_link_libraries(${SWIG_MODULE_${name}_REAL_NAME} ${ARGN}) + else() + message(SEND_ERROR "Cannot find Swig library \"${name}\".") + endif() +endmacro() + diff --git a/cmake/modules/FindGLIB.cmake b/cmake/modules/FindGLIB.cmake new file mode 100644 index 0000000..abe3a88 --- /dev/null +++ b/cmake/modules/FindGLIB.cmake @@ -0,0 +1,123 @@ +# - Try to find Glib and its components (gio, gobject etc) +# Once done, this will define +# +# GLIB_FOUND - system has Glib +# GLIB_INCLUDE_DIRS - the Glib include directories +# GLIB_LIBRARIES - link these to use Glib +# +# Optionally, the COMPONENTS keyword can be passed to find_package() +# and Glib components can be looked for. Currently, the following +# components can be used, and they define the following variables if +# found: +# +# gio: GLIB_GIO_LIBRARIES +# gobject: GLIB_GOBJECT_LIBRARIES +# gmodule: GLIB_GMODULE_LIBRARIES +# gthread: GLIB_GTHREAD_LIBRARIES +# +# Note that the respective _INCLUDE_DIR variables are not set, since +# all headers are in the same directory as GLIB_INCLUDE_DIRS. +# +# Copyright (C) 2012 Raphael Kubo da Costa +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS +# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +find_package(PkgConfig) +pkg_check_modules(PC_GLIB QUIET glib-2.0) + +find_library(GLIB_LIBRARIES + NAMES glib-2.0 + HINTS ${PC_GLIB_LIBDIR} + ${PC_GLIB_LIBRARY_DIRS} +) + +# Files in glib's main include path may include glibconfig.h, which, +# for some odd reason, is normally in $LIBDIR/glib-2.0/include. +get_filename_component(_GLIB_LIBRARY_DIR ${GLIB_LIBRARIES} PATH) +find_path(GLIBCONFIG_INCLUDE_DIR + NAMES glibconfig.h + HINTS ${PC_LIBDIR} ${PC_LIBRARY_DIRS} ${_GLIB_LIBRARY_DIR} + ${PC_GLIB_INCLUDEDIR} ${PC_GLIB_INCLUDE_DIRS} + PATH_SUFFIXES glib-2.0/include +) + +find_path(GLIB_INCLUDE_DIR + NAMES glib.h + HINTS ${PC_GLIB_INCLUDEDIR} + ${PC_GLIB_INCLUDE_DIRS} + PATH_SUFFIXES glib-2.0 +) + +set(GLIB_INCLUDE_DIRS ${GLIB_INCLUDE_DIR} ${GLIBCONFIG_INCLUDE_DIR}) + +# Version detection +file(READ "${GLIBCONFIG_INCLUDE_DIR}/glibconfig.h" GLIBCONFIG_H_CONTENTS) +string(REGEX MATCH "#define GLIB_MAJOR_VERSION ([0-9]+)" _dummy "${GLIBCONFIG_H_CONTENTS}") +set(GLIB_VERSION_MAJOR "${CMAKE_MATCH_1}") +string(REGEX MATCH "#define GLIB_MINOR_VERSION ([0-9]+)" _dummy "${GLIBCONFIG_H_CONTENTS}") +set(GLIB_VERSION_MINOR "${CMAKE_MATCH_1}") +string(REGEX MATCH "#define GLIB_MICRO_VERSION ([0-9]+)" _dummy "${GLIBCONFIG_H_CONTENTS}") +set(GLIB_VERSION_MICRO "${CMAKE_MATCH_1}") +set(GLIB_VERSION "${GLIB_VERSION_MAJOR}.${GLIB_VERSION_MINOR}.${GLIB_VERSION_MICRO}") + +# Additional Glib components. We only look for libraries, as not all of them +# have corresponding headers and all headers are installed alongside the main +# glib ones. +SET(GLIB_FIND_COMPONENTS gobject; gio; gio-unix;) +foreach (_component ${GLIB_FIND_COMPONENTS}) + if (${_component} STREQUAL "gio") + find_library(GLIB_GIO_LIBRARIES NAMES gio-2.0 HINTS ${_GLIB_LIBRARY_DIR}) + set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GIO_LIBRARIES) + elseif (${_component} STREQUAL "gobject") + find_library(GLIB_GOBJECT_LIBRARIES NAMES gobject-2.0 HINTS ${_GLIB_LIBRARY_DIR}) + set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GOBJECT_LIBRARIES) + elseif (${_component} STREQUAL "gmodule") + find_library(GLIB_GMODULE_LIBRARIES NAMES gmodule-2.0 HINTS ${_GLIB_LIBRARY_DIR}) + set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GMODULE_LIBRARIES) + elseif (${_component} STREQUAL "gthread") + find_library(GLIB_GTHREAD_LIBRARIES NAMES gthread-2.0 HINTS ${_GLIB_LIBRARY_DIR}) + set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GTHREAD_LIBRARIES) + elseif (${_component} STREQUAL "gio-unix") + # gio-unix is compiled as part of the gio library, but the include paths + # are separate from the shared glib ones. Since this is currently only used + # by WebKitGTK+ we don't go to extraordinary measures beyond pkg-config. + pkg_check_modules(GIO_UNIX QUIET gio-unix-2.0) + include_directories(${GIO_UNIX_INCLUDE_DIRS}) + endif () +endforeach () + +include(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLIB REQUIRED_VARS GLIB_INCLUDE_DIRS GLIB_LIBRARIES ${ADDITIONAL_REQUIRED_VARS} + VERSION_VAR GLIB_VERSION) + +mark_as_advanced( + GLIBCONFIG_INCLUDE_DIR + GLIB_GIO_LIBRARIES + GLIB_GIO_UNIX_LIBRARIES + GLIB_GMODULE_LIBRARIES + GLIB_GOBJECT_LIBRARIES + GLIB_GTHREAD_LIBRARIES + GLIB_INCLUDE_DIR + GLIB_INCLUDE_DIRS + GLIB_LIBRARIES +) + diff --git a/cmake/modules/FindGtkDoc.cmake b/cmake/modules/FindGtkDoc.cmake new file mode 100644 index 0000000..92b2cc7 --- /dev/null +++ b/cmake/modules/FindGtkDoc.cmake @@ -0,0 +1,262 @@ +#.rst: +# FindGtkDoc +# ---------- +# +# CMake macros to find and use the GtkDoc documentation system + +# Output variables: +# +# GTKDOC_FOUND ... set to 1 if GtkDoc was foung +# +# If GTKDOC_FOUND == 1: +# +# GTKDOC_SCAN_EXE ... the location of the gtkdoc-scan executable +# GTKDOC_SCANGOBJ_EXE ... the location of the gtkdoc-scangobj executable +# GTKDOC_MKDB_EXE ... the location of the gtkdoc-mkdb executable +# GTKDOC_MKHTML_EXE ... the location of the gtkdoc-mkhtml executable +# GTKDOC_FIXXREF_EXE ... the location of the gtkdoc-fixxref executable + +#============================================================================= +# Copyright 2009 Rich Wareham +# Copyright 2015 Lautsprecher Teufel GmbH +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. +#============================================================================= +# (To distribute this file outside of CMake, substitute the full +# License text for the above reference.) + +include(CMakeParseArguments) +include(FindPackageHandleStandardArgs) + +find_package(PkgConfig REQUIRED) + +# The UseGtkDoc.cmake module requires at least 1.9, because it doesn't use +# the deprecated `gtkdoc-mktmpl` tool. We will check if the version satisfies +# the user's specified dependencies later (with the +# find_package_handle_standard_args() command). +pkg_check_modules(GtkDoc REQUIRED gtk-doc>=1.9) + +find_program(GTKDOC_SCAN_EXE gtkdoc-scan PATH "${GLIB_PREFIX}/bin") +find_program(GTKDOC_SCANGOBJ_EXE gtkdoc-scangobj PATH "${GLIB_PREFIX}/bin") + +get_filename_component(_this_dir ${CMAKE_CURRENT_LIST_FILE} PATH) +find_file(GTKDOC_SCANGOBJ_WRAPPER GtkDocScanGObjWrapper.cmake PATH ${_this_dir}) + +find_program(GTKDOC_MKDB_EXE gtkdoc-mkdb PATH "${GLIB_PREFIX}/bin") +find_program(GTKDOC_MKHTML_EXE gtkdoc-mkhtml PATH "${GLIB_PREFIX}/bin") +find_program(GTKDOC_FIXXREF_EXE gtkdoc-fixxref PATH "${GLIB_PREFIX}/bin") + +find_package_handle_standard_args(GtkDoc + REQUIRED_VARS GTKDOC_SCAN_EXE GTKDOC_SCANGOBJ_EXE GTKDOC_SCANGOBJ_WRAPPER GTKDOC_MKDB_EXE GTKDOC_MKHTML_EXE GTKDOC_FIXXREF_EXE + VERSION_VAR GtkDoc_VERSION) + +# :: +# +# gtk_doc_add_module(doc_prefix sourcedir +# [XML xmlfile] +# [FIXXREFOPTS fixxrefoption1...] +# [IGNOREHEADERS header1...] +# [DEPENDS depend1...] ) +# +# sourcedir must be the *full* path to the source directory. +# +# If omitted, sgmlfile defaults to the auto generated ${doc_prefix}/${doc_prefix}-docs.xml. +macro(gtk_doc_add_module _doc_prefix _doc_sourcedir) + set(_one_value_args "XML") + set(_multi_value_args "DEPENDS" "XML" "FIXXREFOPTS" "IGNOREHEADERS" + "CFLAGS" "LDFLAGS" "LDPATH" "SUFFIXES") + cmake_parse_arguments("GTK_DOC" "" "${_one_value_args}" "${_multi_value_args}" ${ARGN}) + + set(_depends ${GTK_DOC_DEPENDS}) + set(_xml ${GTK_DOC_XML}) + set(_fixxrefopts ${GTK_DOC_FIXXREFOPTS}) + set(_ignoreheaders ${GTK_DOC_IGNOREHEADERS}) + set(_extra_cflags ${GTK_DOC_CFLAGS}) + set(_extra_ldflags ${GTK_DOC_LDFLAGS}) + set(_extra_ldpath ${GTK_DOC_LDPATH}) + set(_suffixes ${GTK_DOC_SUFFIXES}) + + list(LENGTH _xml_file _xml_file_length) + + if(_suffixes) + set(_doc_source_suffixes "") + foreach(_suffix ${_suffixes}) + if(_doc_source_suffixes) + set(_doc_source_suffixes "${_doc_source_suffixes},${_suffix}") + else(_doc_source_suffixes) + set(_doc_source_suffixes "${_suffix}") + endif(_doc_source_suffixes) + endforeach(_suffix) + else(_suffixes) + set(_doc_source_suffixes "h") + endif(_suffixes) + + # set(_do_all ALL) + + set(_opts_valid 1) + if(NOT _xml_file_length LESS 2) + message(SEND_ERROR "Must have at most one sgml file specified.") + set(_opts_valid 0) + endif(NOT _xml_file_length LESS 2) + + if(_opts_valid) + # a directory to store output. + set(_output_dir "${CMAKE_CURRENT_BINARY_DIR}/${_doc_prefix}") + set(_output_dir_stamp "${_output_dir}/dir.stamp") + + # set default sgml file if not specified + set(_default_xml_file "${_output_dir}/${_doc_prefix}-docs.xml") + get_filename_component(_default_xml_file ${_default_xml_file} ABSOLUTE) + + # a directory to store html output. + set(_output_html_dir "${_output_dir}/html") + set(_output_html_dir_stamp "${_output_dir}/html_dir.stamp") + + # The output files + set(_output_decl_list "${_output_dir}/${_doc_prefix}-decl-list.txt") + set(_output_decl "${_output_dir}/${_doc_prefix}-decl.txt") + set(_output_overrides "${_output_dir}/${_doc_prefix}-overrides.txt") + set(_output_sections "${_output_dir}/${_doc_prefix}-sections.txt") + set(_output_types "${_output_dir}/${_doc_prefix}.types") + + set(_output_signals "${_output_dir}/${_doc_prefix}.signals") + + set(_output_unused "${_output_dir}/${_doc_prefix}-unused.txt") + set(_output_undeclared "${_output_dir}/${_doc_prefix}-undeclared.txt") + set(_output_undocumented "${_output_dir}/${_doc_prefix}-undocumented.txt") + + set(_output_xml_dir "${_output_dir}/xml") + set(_output_sgml_stamp "${_output_dir}/sgml.stamp") + + set(_output_html_stamp "${_output_dir}/html.stamp") + + # add a command to create output directory + add_custom_command( + OUTPUT "${_output_dir_stamp}" "${_output_dir}" + COMMAND ${CMAKE_COMMAND} -E make_directory "${_output_dir}" + COMMAND ${CMAKE_COMMAND} -E touch ${_output_dir_stamp} + VERBATIM) + + set(_ignore_headers_opt "") + if(_ignore_headers) + set(_ignore_headers_opt "--ignore-headers=") + foreach(_header ${_ignore_headers}) + set(_ignore_headers_opt "${_ignore_headers_opt}${_header} ") + endforeach(_header ${_ignore_headers}) + endif(_ignore_headers) + + # add a command to scan the input + add_custom_command( + OUTPUT + "${_output_decl_list}" + "${_output_decl}" + "${_output_decl}.bak" + "${_output_overrides}" + "${_output_sections}" + "${_output_types}" + "${_output_types}.bak" + DEPENDS + "${_output_dir}" + ${_depends} + COMMAND ${GTKDOC_SCAN_EXE} + "--module=${_doc_prefix}" + "${_ignore_headers_opt}" + "--rebuild-sections" + "--rebuild-types" + "--source-dir=${_doc_sourcedir}" + WORKING_DIRECTORY "${_output_dir}" + VERBATIM) + + # add a command to scan the input via gtkdoc-scangobj + # This is such a disgusting hack! + add_custom_command( + OUTPUT + "${_output_signals}" + DEPENDS + "${_output_types}" + COMMAND ${CMAKE_COMMAND} + -D "GTKDOC_SCANGOBJ_EXE:STRING=${GTKDOC_SCANGOBJ_EXE}" + -D "doc_prefix:STRING=${_doc_prefix}" + -D "output_types:STRING=${_output_types}" + -D "output_dir:STRING=${_output_dir}" + -D "EXTRA_CFLAGS:STRING=${_extra_cflags}" + -D "EXTRA_LDFLAGS:STRING=${_extra_ldflags}" + -D "EXTRA_LDPATH:STRING=${_extra_ldpath}" + -P ${GTKDOC_SCANGOBJ_WRAPPER} + WORKING_DIRECTORY "${_output_dir}" + VERBATIM) + + set(_copy_xml_if_needed "") + if(_xml_file) + get_filename_component(_xml_file ${_xml_file} ABSOLUTE) + set(_copy_xml_if_needed + COMMAND ${CMAKE_COMMAND} -E copy "${_xml_file}" "${_default_xml_file}") + endif(_xml_file) + + set(_remove_xml_if_needed "") + if(_xml_file) + set(_remove_xml_if_needed + COMMAND ${CMAKE_COMMAND} -E remove ${_default_xml_file}) + endif(_xml_file) + + # add a command to make the database + add_custom_command( + OUTPUT + "${_output_sgml_stamp}" + "${_default_xml_file}" + DEPENDS + "${_output_types}" + "${_output_signals}" + "${_output_sections}" + "${_output_overrides}" + ${_depends} + ${_remove_xml_if_needed} + COMMAND ${CMAKE_COMMAND} -E remove_directory ${_output_xml_dir} + COMMAND ${GTKDOC_MKDB_EXE} + "--module=${_doc_prefix}" + "--source-dir=${_doc_sourcedir}" + "--source-suffixes=${_doc_source_suffixes}" + "--output-format=xml" + "--main-sgml-file=${_default_xml_file}" + ${_copy_xml_if_needed} + WORKING_DIRECTORY "${_output_dir}" + VERBATIM) + + # add a command to create html directory + add_custom_command( + OUTPUT "${_output_html_dir_stamp}" "${_output_html_dir}" + COMMAND ${CMAKE_COMMAND} -E make_directory ${_output_html_dir} + COMMAND ${CMAKE_COMMAND} -E touch ${_output_html_dir_stamp} + VERBATIM) + + # add a command to output HTML + add_custom_command( + OUTPUT + "${_output_html_stamp}" + DEPENDS + "${_output_html_dir_stamp}" + "${_output_sgml_stamp}" + "${_xml_file}" + ${_depends} + ${_copy_xml_if_needed} + COMMAND + cd "${_output_html_dir}" && ${GTKDOC_MKHTML_EXE} + "${_doc_prefix}" + "${_default_xml_file}" + COMMAND + cd "${_output_dir}" && ${GTKDOC_FIXXREF_EXE} + "--module=${_doc_prefix}" + "--module-dir=${_output_html_dir}" + ${_fixxref_opts} + ${_remove_xml_if_needed} + VERBATIM) + + add_custom_target(doc-${_doc_prefix} ${_do_all} + DEPENDS "${_output_html_stamp}") + endif(_opts_valid) +endmacro(gtk_doc_add_module) diff --git a/cmake/modules/FindPythonInstDir.cmake b/cmake/modules/FindPythonInstDir.cmake new file mode 100644 index 0000000..ed098de --- /dev/null +++ b/cmake/modules/FindPythonInstDir.cmake @@ -0,0 +1,6 @@ +EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c " +from sys import stdout +from sysconfig import get_path +path=get_path(name='platlib', vars={'platbase':'${CMAKE_INSTALL_PREFIX}'}) +stdout.write(path)" +OUTPUT_VARIABLE PYTHON_INSTALL_DIR) diff --git a/cmake/modules/GtkDocScanGObjWrapper.cmake b/cmake/modules/GtkDocScanGObjWrapper.cmake new file mode 100644 index 0000000..2792326 --- /dev/null +++ b/cmake/modules/GtkDocScanGObjWrapper.cmake @@ -0,0 +1,41 @@ +if(NOT APPLE) + # We use pkg-config to fing glib et al + find_package(PkgConfig) + # Find glib et al + pkg_check_modules(GLIB REQUIRED glib-2.0 gobject-2.0) + +foreach(_flag ${EXTRA_CFLAGS} ${GLIB_CFLAGS}) + set(ENV{CFLAGS} "$ENV{CFLAGS} \"${_flag}\"") +endforeach(_flag) + +foreach(_flag ${EXTRA_LDFLAGS} ${GLIB_LDFLAGS}) + set(ENV{LDFLAGS} "$ENV{LDFLAGS} \"${_flag}\"") +endforeach(_flag) + +foreach(_flag ${EXTRA_LDPATH}) + if(ENV{LD_LIBRARY_PATH}) + set(ENV{LD_LIBRARY_PATH} "$ENV{LD_LIBRARY_PATH}:\"${_flag}\"") + else(ENV{LD_LIBRARY_PATH}) + set(ENV{LD_LIBRARY_PATH} "${_flag}") + endif(ENV{LD_LIBRARY_PATH}) +endforeach(_flag) + +message(STATUS "Executing gtkdoc-scangobj with:") +message(STATUS " CFLAGS: $ENV{CFLAGS}") +message(STATUS " LDFLAGS: $ENV{LDFLAGS}") +message(STATUS " LDPATH: $ENV{LD_LIBRARY_PATH}") + +execute_process(COMMAND ${GTKDOC_SCANGOBJ_EXE} + "--module=${doc_prefix}" + "--types=${output_types}" + "--output-dir=${output_dir}" + WORKING_DIRECTORY "${output_dir}" + RESULT_VARIABLE _scan_result) + +if(_scan_result EQUAL 0) + message(STATUS "Scan succeeded.") +else(_scan_result EQUAL 0) + message(SEND_ERROR "Scan failed.") +endif(_scan_result EQUAL 0) + +endif(NOT APPLE) diff --git a/data/tests/advisories/modules.yaml b/data/tests/advisories/modules.yaml new file mode 100644 index 0000000..c7e5202 --- /dev/null +++ b/data/tests/advisories/modules.yaml @@ -0,0 +1,66 @@ +--- +document: modulemd +version: 2 +data: + name: perl + stream: 5.23 + version: 1 + context: aa + arch: x86_64 + summary: Perl + description: Perl + license: + module: + - MIT + profiles: + default: + rpms: ["test-perl"] + artifacts: + rpms: ["test-perl-0:5.24-1.module_el8+5182+8241aed2.x86_64"] +... +--- +document: modulemd +version: 2 +data: + name: perl-DBI + stream: master + version: 2 + context: 2b + arch: x86_64 + summary: Perl-DBI + description: Perl-DBI + license: + module: + - MIT + dependencies: + - requires: + perl: ["5.23"] + profiles: + default: + rpms: ["test-perl-DBI"] + artifacts: + rpms: ["test-perl-DBI-0:1-2.module_el8+6587+9879afr5.x86_64"] +... +--- +document: modulemd +version: 2 +data: + name: perl-DBI + stream: master + version: 2 + context: 2c + arch: x86_64 + summary: Perl-DBI + description: Perl-DBI + license: + module: + - MIT + dependencies: + - requires: + perl: ["5.23"] + profiles: + default: + rpms: ["test-perl-DBI"] + artifacts: + rpms: ["test-perl-DBI-0:1-2.module_el8+6745+9879ate3.x86_64"] +... diff --git a/data/tests/advisories/recreate b/data/tests/advisories/recreate new file mode 100755 index 0000000..e589966 --- /dev/null +++ b/data/tests/advisories/recreate @@ -0,0 +1,6 @@ +#! /bin/bash + +THISDIR=$(readlink -f $(dirname $0)) +cd $THISDIR +createrepo_c --no-database --simple-md-filenames . +modifyrepo_c ./updateinfo.xml repodata --simple-md-filenames diff --git a/data/tests/advisories/repodata/filelists.xml.gz b/data/tests/advisories/repodata/filelists.xml.gz new file mode 100644 index 0000000..2135560 Binary files /dev/null and b/data/tests/advisories/repodata/filelists.xml.gz differ diff --git a/data/tests/advisories/repodata/modules.yaml.gz b/data/tests/advisories/repodata/modules.yaml.gz new file mode 100644 index 0000000..9221f49 Binary files /dev/null and b/data/tests/advisories/repodata/modules.yaml.gz differ diff --git a/data/tests/advisories/repodata/other.xml.gz b/data/tests/advisories/repodata/other.xml.gz new file mode 100644 index 0000000..685e68b Binary files /dev/null and b/data/tests/advisories/repodata/other.xml.gz differ diff --git a/data/tests/advisories/repodata/primary.xml.gz b/data/tests/advisories/repodata/primary.xml.gz new file mode 100644 index 0000000..76da3c5 Binary files /dev/null and b/data/tests/advisories/repodata/primary.xml.gz differ diff --git a/data/tests/advisories/repodata/repomd.xml b/data/tests/advisories/repodata/repomd.xml new file mode 100644 index 0000000..4dc0ffa --- /dev/null +++ b/data/tests/advisories/repodata/repomd.xml @@ -0,0 +1,44 @@ + + + 1621268151 + + 85618a80c1345a3010253df7257766980209f86697d979bfe18ea11707a6047d + 167f862cc208d46dd58b2702c86abad087383c03c3030ed714c7baeff2d00cca + + 1621268151 + 744 + 2665 + + + efbf7f021163a3c7698a257351e327102c60bb39a7bdceee77c421f064205e99 + ca5620e2734574d04d3c01ae5a72f865313369954698d71776076b9cbd831bbd + + 1621268151 + 311 + 511 + + + 6673953e1f28f55b9d4c3f38a9e3c0e0ff88ad06fb693b7f15eb241a81b80d71 + 0997c242bf1b96372d7a625a73de23dced68cae9375baff0c73215a07693b3f4 + + 1621268151 + 310 + 507 + + + 20062f5451a8da7a8951336f119f6a8f7411286849b53dc8a179c75270b73216 + 6a10d0c26f84f5f74d9ecc379016dd9ed9b9d173a4db17f6dc90665d8563fdea + + 1621268151 + 331 + 1117 + + + 9d791d16c2adc2d7d4c85b45f2a704edac62a926b09fc20df73207f4190acd49 + 3cf7df860860ac7a4a8e64a1a2d71c1ec43225dacbfe09a0cff80f28be3825da + + 1621268151 + 708 + 2414 + + diff --git a/data/tests/advisories/repodata/updateinfo.xml.gz b/data/tests/advisories/repodata/updateinfo.xml.gz new file mode 100644 index 0000000..e40dc01 Binary files /dev/null and b/data/tests/advisories/repodata/updateinfo.xml.gz differ diff --git a/data/tests/advisories/test-perl-DBI-1-2.module_el8+6587+9879afr5.x86_64.rpm b/data/tests/advisories/test-perl-DBI-1-2.module_el8+6587+9879afr5.x86_64.rpm new file mode 100644 index 0000000..c6bf6f5 Binary files /dev/null and b/data/tests/advisories/test-perl-DBI-1-2.module_el8+6587+9879afr5.x86_64.rpm differ diff --git a/data/tests/advisories/test-perl-DBI-1-2.module_el8+6745+9879ate3.x86_64.rpm b/data/tests/advisories/test-perl-DBI-1-2.module_el8+6745+9879ate3.x86_64.rpm new file mode 100644 index 0000000..23be871 Binary files /dev/null and b/data/tests/advisories/test-perl-DBI-1-2.module_el8+6745+9879ate3.x86_64.rpm differ diff --git a/data/tests/advisories/updateinfo.xml b/data/tests/advisories/updateinfo.xml new file mode 100644 index 0000000..6d593e8 --- /dev/null +++ b/data/tests/advisories/updateinfo.xml @@ -0,0 +1,47 @@ + + + + FEDORA-2019-0329090518 + glibc bug fix + + + none + Everyone has them + summary_1 + Enhance some stuff + + + + + + + Foo component + + + + perl-DBI-1-2.module_el8+6745+9879ate3.spec + + + + perl-DBI-1-2.module_el8+6745+9879ate3.spec + + + + + Foo component + + + perl-DBI-1-2.module_el8+6587+9879afr5.spec + + + + + perl component + + + not-present-0:5.24-1.module_el8+5182+8241aed2.x86_64 + + + + + diff --git a/data/tests/cache-test/yum.repos.d/fedora.repo b/data/tests/cache-test/yum.repos.d/fedora.repo new file mode 100644 index 0000000..6537d98 --- /dev/null +++ b/data/tests/cache-test/yum.repos.d/fedora.repo @@ -0,0 +1,4 @@ +[fedora] +name=Fedora $releasever - $basearch +enabled=1 +skip_if_unavailable=False diff --git a/data/tests/gpg-asc/repodata/primary.sqlite.bz2 b/data/tests/gpg-asc/repodata/primary.sqlite.bz2 new file mode 100644 index 0000000..af5d224 Binary files /dev/null and b/data/tests/gpg-asc/repodata/primary.sqlite.bz2 differ diff --git a/data/tests/gpg-asc/repodata/repomd.xml b/data/tests/gpg-asc/repodata/repomd.xml new file mode 100644 index 0000000..33ef154 --- /dev/null +++ b/data/tests/gpg-asc/repodata/repomd.xml @@ -0,0 +1,13 @@ + + + 1257930816 + + + 3b7612fe14a6fbc06e3484e738edd08ca30ac14c2d86ea72feef8a39cfee757a + 1257935775.0 + 10126790 + 43433984 + 4981bf8b555f84f392455b5e91f09954b9f9e187f43c33921bce9cd911917210 + 10 + + diff --git a/data/tests/gpg-asc/repodata/repomd.xml.asc b/data/tests/gpg-asc/repodata/repomd.xml.asc new file mode 100644 index 0000000..8a6b008 --- /dev/null +++ b/data/tests/gpg-asc/repodata/repomd.xml.asc @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQEcBAABAgAGBQJUkVGrAAoJEBlInYFFo37eu14IAKKp2gflZ6osXXCPOmAKm/CM +6wWMzYyoijCre4D/hbreZu9CyKYYZdoDAhhPW9Laul6fTh8Ijt8zYD9//RkhJ7+3 +fG9dvuxuZF0FjrnFlYZE5oLMl8GuKBTKPY9j3tRvBwHpfLA5vFkQ52cm/n8Sw7qy +DGSLQJao1Rhwl0B91S8X5WaQtS0CQki8lSjkU7A5glAkH6h6+jNti0Rsoh0Vpkqs +reFrTs5FtDqP22sx4JMX1VbPjVi4/fL4+WsGMKzWH+t6R8PPCAHZJ2iECA9RqaNr +R9MIsVXsYP39nJaXrtObDvZARpkaMntPFZuSLJfEH9a1J/eJMhntsm+sjbjwBMA= +=i6rv +-----END PGP SIGNATURE----- diff --git a/data/tests/gpg-asc/repodata/sign.sh b/data/tests/gpg-asc/repodata/sign.sh new file mode 100755 index 0000000..785e386 --- /dev/null +++ b/data/tests/gpg-asc/repodata/sign.sh @@ -0,0 +1 @@ +gpg --homedir ../../gpgkey/ --armor --detach-sig repomd.xml diff --git a/data/tests/gpg-asc/yum.repos.d/gpg-repo-asc.repo b/data/tests/gpg-asc/yum.repos.d/gpg-repo-asc.repo new file mode 100644 index 0000000..f73b608 --- /dev/null +++ b/data/tests/gpg-asc/yum.repos.d/gpg-repo-asc.repo @@ -0,0 +1,6 @@ +[gpg-repo-asc] +name=Repo GPG checking enabled and .asc file correct in repo +baseurl=file://$testdatadir/gpg-asc/ +enabled=1 +repo_gpgcheck=1 +gpgkey=file://$testdatadir/gpgkey/signing_key.pub diff --git a/data/tests/gpg-no-asc/repodata/primary.sqlite.bz2 b/data/tests/gpg-no-asc/repodata/primary.sqlite.bz2 new file mode 100644 index 0000000..af5d224 Binary files /dev/null and b/data/tests/gpg-no-asc/repodata/primary.sqlite.bz2 differ diff --git a/data/tests/gpg-no-asc/repodata/repomd.xml b/data/tests/gpg-no-asc/repodata/repomd.xml new file mode 120000 index 0000000..4918f32 --- /dev/null +++ b/data/tests/gpg-no-asc/repodata/repomd.xml @@ -0,0 +1 @@ +../../gpg-asc/repodata/repomd.xml \ No newline at end of file diff --git a/data/tests/gpg-no-asc/yum.repos.d/gpg-repo-no-asc.repo b/data/tests/gpg-no-asc/yum.repos.d/gpg-repo-no-asc.repo new file mode 100644 index 0000000..d71c140 --- /dev/null +++ b/data/tests/gpg-no-asc/yum.repos.d/gpg-repo-no-asc.repo @@ -0,0 +1,6 @@ +[gpg-repo-no-asc] +name=Repo GPG checking enabled but no .asc file present in repo +baseurl=file://$testdatadir/gpg-no-asc/ +enabled=1 +repo_gpgcheck=1 +gpgkey=file://$testdatadir/gpgkey/signing_key.pub diff --git a/data/tests/gpg-no-pubkey/gpg-repo-no-pubkey.repo b/data/tests/gpg-no-pubkey/gpg-repo-no-pubkey.repo new file mode 100644 index 0000000..8acdcd4 --- /dev/null +++ b/data/tests/gpg-no-pubkey/gpg-repo-no-pubkey.repo @@ -0,0 +1,5 @@ +[gpg-repo-no-pubkey] +name=Repo GPG checking but no GPG Key set +baseurl=http://www.dave.org +enabled=1 +repo_gpgcheck=1 diff --git a/data/tests/gpg-wrong-asc/repodata/primary.sqlite.bz2 b/data/tests/gpg-wrong-asc/repodata/primary.sqlite.bz2 new file mode 100644 index 0000000..af5d224 Binary files /dev/null and b/data/tests/gpg-wrong-asc/repodata/primary.sqlite.bz2 differ diff --git a/data/tests/gpg-wrong-asc/repodata/repomd.xml b/data/tests/gpg-wrong-asc/repodata/repomd.xml new file mode 120000 index 0000000..4918f32 --- /dev/null +++ b/data/tests/gpg-wrong-asc/repodata/repomd.xml @@ -0,0 +1 @@ +../../gpg-asc/repodata/repomd.xml \ No newline at end of file diff --git a/data/tests/gpg-wrong-asc/repodata/repomd.xml.asc b/data/tests/gpg-wrong-asc/repodata/repomd.xml.asc new file mode 100644 index 0000000..aabf8e2 --- /dev/null +++ b/data/tests/gpg-wrong-asc/repodata/repomd.xml.asc @@ -0,0 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + + + + 1257930816 + + + 3b7612fe14a6fbc06e3484e738edd08ca30ac14c2d86ea72feef8a39cfee757a + 1257935775.0 + 10126790 + 43433984 + 4981bf8b555f84f392455b5e91f09954b9f9e187f43c33921bce9cd911917210 + 10 + + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQEcBAEBAgAGBQJUkFINAAoJEBesuo36lw4X5TgIAKNxupNcO97DCe39vqrVJWNs +VT4WICPpye3R7hla2vtyB6L5WkK6K0ErcGyoeI3IqC91dAZ7dh1MJ3eLdAIlcPXa +TGWgPyXAs/V6NlA7bccZawO1spsjIf1HsFDAvB/gPnU5leETpDajlmRlbn6zE4oh +2iW1BdZzHgizbIuVShR8fylk/xSbMn98WQ9IPPSmLIfec0Fk46UpryOpqamHtsTh +qr7+4jlVsSWvIsJFGKMrLCeH2Gl6rcGlTs5tAbhymyUXRT0ilWJmJR5t9cphKzO9 +qm+4B1sz55gQ5WlX6/suIfyFCeoFdFrP0lN+uNyJT17u3eZVzkcdx90NHbf7ypU= +=0OA5 +-----END PGP SIGNATURE----- diff --git a/data/tests/gpg-wrong-asc/yum.repos.d/gpg-repo-wrong-asc.repo b/data/tests/gpg-wrong-asc/yum.repos.d/gpg-repo-wrong-asc.repo new file mode 100644 index 0000000..e03412e --- /dev/null +++ b/data/tests/gpg-wrong-asc/yum.repos.d/gpg-repo-wrong-asc.repo @@ -0,0 +1,6 @@ +[gpg-repo-wrong-asc] +name=Repo GPG checking enabled but no .asc signed using the wrong key +baseurl=file://$testdatadir/gpg-wrong-asc/ +enabled=1 +repo_gpgcheck=1 +gpgkey=file://$testdatadir/gpgkey/signing_key.pub diff --git a/data/tests/gpgkey/.gitignore b/data/tests/gpgkey/.gitignore new file mode 100644 index 0000000..011f040 --- /dev/null +++ b/data/tests/gpgkey/.gitignore @@ -0,0 +1,2 @@ +*~ +trustdb.gpg diff --git a/data/tests/gpgkey/pubring.gpg b/data/tests/gpgkey/pubring.gpg new file mode 100644 index 0000000..6d7371d Binary files /dev/null and b/data/tests/gpgkey/pubring.gpg differ diff --git a/data/tests/gpgkey/secring.gpg b/data/tests/gpgkey/secring.gpg new file mode 100644 index 0000000..57b1d38 Binary files /dev/null and b/data/tests/gpgkey/secring.gpg differ diff --git a/data/tests/gpgkey/signing_key.pub b/data/tests/gpgkey/signing_key.pub new file mode 100644 index 0000000..1ad05c1 --- /dev/null +++ b/data/tests/gpgkey/signing_key.pub @@ -0,0 +1,30 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQENBFSQQ9YBCADUzwTzWC+T8m5cync71ZoxXoNnvdhxqpYHbE5+n0WFBQK8c1mz +HzonBHKKYNdERtb9GM1fY+LxI4jtTK34MvFmtbJDv/zutTgxczHvXr2KT/Ix6Wm+ +FQ+XDJ+9eY7yvAL77YUcHXyV0dDyxOhZBPSn8/7riiKy1nYp7KNHcQa0su4yUP2B +lRhne/+HLWwPwglSit6FO9BcOKTki0DVzw05KLlBi1CUUrE+Dg6VDu6+9VDUCaPc +qEuh/AbVOiPT2WGgDulMS997UgyNL60KLzJIzh67+KA5DmbfnJv7ol1WA3yykZq2 +DTNSETY/+1GA6Js6rVWFl7RiQoxImv1NAIAZABEBAAG0IGxpYmhpZiB0ZXN0IGtl +eSA8dGVzdEBlbWFpbC5jb20+iQE4BBMBAgAiBQJUkEPWAhsDBgsJCAcDAgYVCAIJ +CgsEFgIDAQIeAQIXgAAKCRAZSJ2BRaN+3jxYB/97pdHNVnWD5vcfcTjE4BydvdH6 +SHY4a42E60grmFp/B3hbUxqWIb/qPFKtO5jPac/AxwU7MLm/NHTOzHp4ubSlmxxH +DDB643rPRdHT12Icfdqqbd5Ic4/YLsYTP+g8qHtIzKtzfB18R8Kvk+jTMa+06HAX +5x4CFcTLscZ6oaSOB92aMPk8OuU3aHuIzxgAldt6giVD9LafStld85WaLnOxv37A +ASu8X+Jsd5FdD+2jWFmsmsG0X2uLAOdR6YKDlNK1lMrGzbUIhnA0SQCI6o8QCkio +U1Ut6V0gIboVgUYh1+0X/zcJKl4PRXGPOUAAC+AdssDfJvlEC6361GNhHon6uQEN +BFSQQ9YBCACwPoMoMAEsIFDpmPvikaPfJjvtrOM2Of9Rgh41Rc8Q2oft52Bjjpcf +ftbrg0Ic+0EcCmeeQhJzAcZ+rv+tf4YuBpu65CQRhzLT9mJofWwEHqK6Ng/9cY/u +1hAoRkGoojr/a2tR8ZoE3L1bomjXYCEDEYQnThctaYNmuR/9WAXAgdwOZg3YgE8Y +kioJ8OGv5NJ9q/nWFDdGqmElXQHIJFOROT/SgUfATSwXMhfiTMaoSQDPaiyAz3fz +P6aeSAahv1EWhk5g74QuUD3TI/AcGwZElWkJv2oTrac6KlHBPPMAYuRoyHkPkRSr +SX3YWcS62ZPmPpg+Nwrb7rcFQGJ1WdNBABEBAAGJAR8EGAECAAkFAlSQQ9YCGwwA +CgkQGUidgUWjft66uggAy9eQFjlx3gi0cy3QvKBSBVmmB4dZwI6ZMXLpAr0EG96N +fWKONkAxCvaMJTDI5YPqckTWsct+m/936tcr455k1kD25d3pSGR4EYzJnKae/+vf +8WPRcmLchnPniH1OiwimRRY3Hz72qGm4WhPqKx/jw4i7fI8Z6rTCyPPLvBdIn6+P +Kg0H9QET1gwPMCQm5P8vZz+xap8JG2tQ9C5Q/SDo4nt/NEs3/NjMRHDiIKKFfY+E +NOBa1dEEc6oBtzWd/YpAWkGyMSdm8ZeCaFjg4tPfI73ny4rPGHQmV2IAW0jz34D5 +wAtzTXosX0dapFxctR30/cj8mvNnQjjzX26kF0wW4g== +=+Qm5 +-----END PGP PUBLIC KEY BLOCK----- diff --git a/data/tests/hawkey/@System-broken.repo b/data/tests/hawkey/@System-broken.repo new file mode 100644 index 0000000..af863c4 --- /dev/null +++ b/data/tests/hawkey/@System-broken.repo @@ -0,0 +1,9 @@ +=Ver: 2.0 +# +=Pkg: ok 1 0 x86_64 +=Pkg: missing 1 0 x86_64 +=Req: missing-dep +=Pkg: conflict 1 0 x86_64 +=Con: ok +=Pkg: dup 1 1 x86_64 +=Pkg: dup 2 1 x86_64 diff --git a/data/tests/hawkey/@System-k.repo b/data/tests/hawkey/@System-k.repo new file mode 100644 index 0000000..9578bd0 --- /dev/null +++ b/data/tests/hawkey/@System-k.repo @@ -0,0 +1,16 @@ +=Ver: 2.0 +# +=Pkg: k 1 0 x86_64 +=Pkg: k-m 1 0 x86_64 +=Req: k = 1-0 +=Pkg: k-freak-1-0 1 0 x86_64 +=Req: k = 1-0 +=Pkg: k 1 1 x86_64 +=Pkg: k-m 1 1 x86_64 +=Req: k = 1-1 +=Pkg: k 2 0 x86_64 +=Pkg: k-m 2 0 x86_64 +=Req: k = 2-0 +=Pkg: k 3 0 x86_64 +=Pkg: k-m 3 0 x86_64 +=Req: k = 3-0 diff --git a/data/tests/hawkey/@System.repo b/data/tests/hawkey/@System.repo new file mode 100644 index 0000000..381de75 --- /dev/null +++ b/data/tests/hawkey/@System.repo @@ -0,0 +1,26 @@ +=Ver: 2.0 +# +=Pkg: baby 6:5.0 11 x86_64 +=Pkg: dog 1 1 x86_64 +=Con: custard = 1.1 +=Pkg: flying 2 9 noarch +=Req: P-lib >= 3 +=Pkg: fool 1 3 noarch +=Prv: fool <= 1-3 +=Prv: /no/answers +=Pkg: gun 4 1 i686 +=Pkg: jay 5.0 0 x86_64 +=Pkg: jay 6.0 0 x86_64 +=Pkg: pilchard 1.2.3 1 i686 +=Pkg: pilchard 1.2.3 1 x86_64 +=Pkg: penny 4 1 noarch +=Prv: P = 3-3 +=Sum: in my eyes +=Pkg: penny-lib 4 1 x86_64 +=Prv: P-lib = 3-3 +=Sum: in my ears +=Pkg: pigs 4 0 noarch +=Req: /usr/bin/away +=Pkg: tour 4 0 noarch +=Prv: /usr/bin/away +=Pkg: bloop 1.0 1 noarch diff --git a/data/tests/hawkey/change.repo b/data/tests/hawkey/change.repo new file mode 100644 index 0000000..9de153b --- /dev/null +++ b/data/tests/hawkey/change.repo @@ -0,0 +1,8 @@ +=Ver: 2.0 +# +=Pkg: flying 3 0 noarch +=Req: P-lib = 3-4 +=Pkg: penny-lib 4 1 x86_64 +=Vnd: PerfectlyLoud +=Sum: in my ears +=Prv: P-lib = 3-4 diff --git a/data/tests/hawkey/forcebest.repo b/data/tests/hawkey/forcebest.repo new file mode 100644 index 0000000..62670e1 --- /dev/null +++ b/data/tests/hawkey/forcebest.repo @@ -0,0 +1,4 @@ +=Ver: 2.0 +# +=Pkg: gun 4 1 i686 +=Pkg: gun 2 0 x86_64 diff --git a/data/tests/hawkey/greedy.repo b/data/tests/hawkey/greedy.repo new file mode 100644 index 0000000..64bb85a --- /dev/null +++ b/data/tests/hawkey/greedy.repo @@ -0,0 +1,9 @@ +=Ver: 2.0 +# +=Pkg: A 1 0 noarch +=Req: somereq +=Pkg: B 1 0 noarch +=Rec: C +=Prv: somereq +=Pkg: C 1 0 noarch +=Prv: somereq diff --git a/data/tests/hawkey/installonly.repo b/data/tests/hawkey/installonly.repo new file mode 100644 index 0000000..922c0c9 --- /dev/null +++ b/data/tests/hawkey/installonly.repo @@ -0,0 +1,8 @@ +=Ver: 2.0 +# +=Pkg: k 3 1 x86_64 +=Pkg: k-m 3 1 x86_64 +=Req: k = 3-1 +=Pkg: k 3 6 x86_64 +=Pkg: k-m 3 6 x86_64 +=Req: k = 3-6 diff --git a/data/tests/hawkey/main.repo b/data/tests/hawkey/main.repo new file mode 100644 index 0000000..67f2cd0 --- /dev/null +++ b/data/tests/hawkey/main.repo @@ -0,0 +1,31 @@ +=Ver: 2.0 +# +=Pkg: baby 6:4.9 3 x86_64 +=Sup: flying +=Pkg: flying 3 0 noarch +=Req: P-lib +=Rec: baby +=Sug: walrus +=Pkg: fool 1 3 noarch +=Prv: fool <= 1-3 +=Pkg: hello 1 1 noarch +=Req: goodbye +=Pkg: jay 4.9 0 x86_64 +=Pkg: jay 5.0 0 x86_64 +=Pkg: jay 6.0 0 x86_64 +=Pkg: penny 4 1 noarch +=Prv: P = 3-3 +=Sum: in my eyes +=Pkg: penny-lib 4 1 x86_64 +=Prv: P-lib = 3-3 +=Pkg: penny-lib 4 1 i686 +=Prv: P-lib = 3-3 +=Sum: in my ears +=Pkg: penny-lib-devel 4 1 x86_64 +=Pkg: semolina 2 0 x86_64 +=Pkg: semolina 2 0 i686 +=Pkg: walrus 2 5 noarch +=Prv: walrus <= 2-5 +=Req: semolina = 2 +=Req: fool +=Enh: flying diff --git a/data/tests/hawkey/ppc.repo b/data/tests/hawkey/ppc.repo new file mode 100644 index 0000000..f53dae4 --- /dev/null +++ b/data/tests/hawkey/ppc.repo @@ -0,0 +1,4 @@ +=Ver: 2.0 +# +=Pkg: custard 1 2 ppc64 +=Pkg: custard 1 3 ppc64 diff --git a/data/tests/hawkey/updates.repo b/data/tests/hawkey/updates.repo new file mode 100644 index 0000000..8e0a066 --- /dev/null +++ b/data/tests/hawkey/updates.repo @@ -0,0 +1,36 @@ +=Ver: 2.0 +# +=Pkg: dog 1 2 i686 +=Con: custard = 1.2 +=Pkg: dog 1 2 x86_64 +=Con: custard = 1.2 +=Pkg: fool 1 5 noarch +=Prv: fool <= 1-5 +=Prv: fool-lib = 3.3 +=Obs: penny <= 4-1 +=Obs: baby = 6:4.8-3 +=Pkg: flying 3 0 noarch +=Req: P-lib +=Pkg: flying 3.1 0 x86_64 +=Req: P-lib +=Pkg: flying 3.2 0 noarch +=Req: P-lib >= 3-4 +=Pkg: pilchard 1.2.4 1 i686 +=Pkg: pilchard 1.2.4 1 x86_64 +=Pkg: pilchard 1.2.4 2 x86_64 +=Pkg: walrus 2 6 noarch +=Prv: walrus <= 2-5 +=Req: semolina = 2 +=Req: fool +=Pkg: dodo 1.0 1 noarch +=Req: dodo-dep +=Pkg: dodo-dep-a 1.0 1 noarch +=Prv: dodo-dep +=Pkg: dodo-dep-b 1.0 1 noarch +=Prv: dodo-dep +=Pkg: bloop 1.0 1 noarch +=Pkg: bloop-ext 1.0 1 noarch +=Req: bloop = 1.0-1 +=Pkg: bloop 2.0 1 noarch +=Pkg: bloop-ext 2.0 1 noarch +=Req: bloop = 2.0-1 diff --git a/data/tests/hawkey/vendor.repo b/data/tests/hawkey/vendor.repo new file mode 100644 index 0000000..26d0b77 --- /dev/null +++ b/data/tests/hawkey/vendor.repo @@ -0,0 +1,7 @@ +=Ver: 2.0 +# +=Pkg: foolish-grin 1 4 noarch +=Vnd: PerfectlyLoud +=Obs: fool = 1-3 +=Prv: fool = 1-3 +=Pkg: gun 5 1 x86_64 diff --git a/data/tests/hawkey/yum/drpms/tour-4-5_4-6.noarch.drpm b/data/tests/hawkey/yum/drpms/tour-4-5_4-6.noarch.drpm new file mode 100644 index 0000000..cecc202 Binary files /dev/null and b/data/tests/hawkey/yum/drpms/tour-4-5_4-6.noarch.drpm differ diff --git a/data/tests/hawkey/yum/mystery-devel-19.67-1.noarch.rpm b/data/tests/hawkey/yum/mystery-devel-19.67-1.noarch.rpm new file mode 100644 index 0000000..82ece0a Binary files /dev/null and b/data/tests/hawkey/yum/mystery-devel-19.67-1.noarch.rpm differ diff --git a/data/tests/hawkey/yum/mystery.spec b/data/tests/hawkey/yum/mystery.spec new file mode 100644 index 0000000..3244192 --- /dev/null +++ b/data/tests/hawkey/yum/mystery.spec @@ -0,0 +1,34 @@ +Summary: mystery package +Name: mystery +Version: 19.67 +Release: 1 +Group: Utilities +License: GPLv2+ +Distribution: Hawkey test suite. +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-hawkey + +%description +Hawkey mystery package to test filelists handling. + +%package devel +Summary: Devel subpackage. +Group: Development/Libraries + +%description devel +Magical development files for mystery. + +%prep + +%build + +%install +mkdir -p %{buildroot}/%_bindir +echo "thats an invitation" > %{buildroot}/%_bindir/my +echo "make a reservation" > %{buildroot}/%_bindir/ste +echo "step right this way" > %{buildroot}/%_bindir/ry + +%files devel +%_bindir/my +%_bindir/ste +%_bindir/ry diff --git a/data/tests/hawkey/yum/recreate b/data/tests/hawkey/yum/recreate new file mode 100755 index 0000000..309fdb7 --- /dev/null +++ b/data/tests/hawkey/yum/recreate @@ -0,0 +1,20 @@ +#! /bin/bash + +THISDIR=$(readlink -f $(dirname $0)) +cd $THISDIR +git rm -rf repodata/ drpms/ +createrepo --deltas --oldpackagedirs=../yum_oldrpms/ --no-database --baseurl disagree . +cp updateinfo.xml.gz repodata/ +pushd repodata/ +sed -i -e '$d' repomd.xml # delete the last line: +cat >>repomd.xml < + $(sha256sum updateinfo.xml.gz |cut -f 1 -d ' ') + + 1284438472 + + +EOF +popd + +git add repodata/ drpms/ diff --git a/data/tests/hawkey/yum/repodata/4d4b903662ace0b08bda1d53f89c333614b7f658172bc9f0c87b0eef276ff5a1-filelists.xml.gz b/data/tests/hawkey/yum/repodata/4d4b903662ace0b08bda1d53f89c333614b7f658172bc9f0c87b0eef276ff5a1-filelists.xml.gz new file mode 100644 index 0000000..c540adf Binary files /dev/null and b/data/tests/hawkey/yum/repodata/4d4b903662ace0b08bda1d53f89c333614b7f658172bc9f0c87b0eef276ff5a1-filelists.xml.gz differ diff --git a/data/tests/hawkey/yum/repodata/51fb8278682bdb0ea0956720b098dadf637efc01566acb48203c54c90ba86dda-other.xml.gz b/data/tests/hawkey/yum/repodata/51fb8278682bdb0ea0956720b098dadf637efc01566acb48203c54c90ba86dda-other.xml.gz new file mode 100644 index 0000000..f8e0d1a Binary files /dev/null and b/data/tests/hawkey/yum/repodata/51fb8278682bdb0ea0956720b098dadf637efc01566acb48203c54c90ba86dda-other.xml.gz differ diff --git a/data/tests/hawkey/yum/repodata/52d800b3426c540bb88a80d01fb6c8d227ae14edca7446fa0f348a286223fb8b-prestodelta.xml.gz b/data/tests/hawkey/yum/repodata/52d800b3426c540bb88a80d01fb6c8d227ae14edca7446fa0f348a286223fb8b-prestodelta.xml.gz new file mode 100644 index 0000000..90dca98 Binary files /dev/null and b/data/tests/hawkey/yum/repodata/52d800b3426c540bb88a80d01fb6c8d227ae14edca7446fa0f348a286223fb8b-prestodelta.xml.gz differ diff --git a/data/tests/hawkey/yum/repodata/f1ab2aa6c0e5881b9365f83a951e6696812ebfaaf56fee310c3f080c8849a1b4-primary.xml.gz b/data/tests/hawkey/yum/repodata/f1ab2aa6c0e5881b9365f83a951e6696812ebfaaf56fee310c3f080c8849a1b4-primary.xml.gz new file mode 100644 index 0000000..6f4b08e Binary files /dev/null and b/data/tests/hawkey/yum/repodata/f1ab2aa6c0e5881b9365f83a951e6696812ebfaaf56fee310c3f080c8849a1b4-primary.xml.gz differ diff --git a/data/tests/hawkey/yum/repodata/repomd.xml b/data/tests/hawkey/yum/repodata/repomd.xml new file mode 100644 index 0000000..b5d2239 --- /dev/null +++ b/data/tests/hawkey/yum/repodata/repomd.xml @@ -0,0 +1,41 @@ + + + 1404109454 + + 4d4b903662ace0b08bda1d53f89c333614b7f658172bc9f0c87b0eef276ff5a1 + 1a131db9fa5d60090afe7481a184966187df593a37e0199fd67d9d8c935d980f + + 1404109454 + 377 + 814 + + + 52d800b3426c540bb88a80d01fb6c8d227ae14edca7446fa0f348a286223fb8b + 668513ac58d09eb8febf3672dc6e3bc9a4df5f25738e6ce62440cc6c6095e032 + + 1404109454 + 311 + 491 + + + 51fb8278682bdb0ea0956720b098dadf637efc01566acb48203c54c90ba86dda + 5dc6290ad5d8a2bdef6fcd546b03650f3c1b85d6062a4df01c9f7da8b2947e24 + + 1404109454 + 294 + 452 + + + f1ab2aa6c0e5881b9365f83a951e6696812ebfaaf56fee310c3f080c8849a1b4 + 533743dcdacef3afa4581b49a1ce09c196b24872ab3a8ec70f8cd4b2c5cb9b98 + + 1404109454 + 869 + 2253 + + + 3888e1b46e2cb71d6a85f74d1f6d88652a9e3ed2bb85b30ae592aa0c0de91627 + + 1284438472 + + diff --git a/data/tests/hawkey/yum/repodata/updateinfo.xml.gz b/data/tests/hawkey/yum/repodata/updateinfo.xml.gz new file mode 100644 index 0000000..104c9dc Binary files /dev/null and b/data/tests/hawkey/yum/repodata/updateinfo.xml.gz differ diff --git a/data/tests/hawkey/yum/tour-4-6.noarch.rpm b/data/tests/hawkey/yum/tour-4-6.noarch.rpm new file mode 100644 index 0000000..ae34871 Binary files /dev/null and b/data/tests/hawkey/yum/tour-4-6.noarch.rpm differ diff --git a/data/tests/hawkey/yum/tour.spec b/data/tests/hawkey/yum/tour.spec new file mode 100644 index 0000000..252eb6a --- /dev/null +++ b/data/tests/hawkey/yum/tour.spec @@ -0,0 +1,33 @@ +Summary: tour package +Name: tour +Version: 4 +Release: 6 +Group: Utilities +License: GPLv2+ +Distribution: Hawkey test suite. +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-hawkey +Packager: roll up +%global __requires_exclude_from ^%{python_sitelib}/.*$ + +%description +Hawkey tour package to test filelists handling. + +%prep + +%build + +%install +mkdir -p %{buildroot}/%_sysconfdir +mkdir -p %{buildroot}/%_bindir +mkdir -p %{buildroot}/%python_sitelib/tour +echo "roll up" > %{buildroot}/%_sysconfdir/rollup +echo "dying to" > %{buildroot}/%_sysconfdir/takeyouaway +echo "take you away" > %{buildroot}/%_bindir/away +echo "take = 3" > %{buildroot}/%python_sitelib/tour/today.py + +%files +%_sysconfdir/rollup +%_sysconfdir/takeyouaway +%_bindir/away +%python_sitelib/tour/today.py* diff --git a/data/tests/hawkey/yum/updateinfo.xml.gz b/data/tests/hawkey/yum/updateinfo.xml.gz new file mode 100644 index 0000000..7c19586 Binary files /dev/null and b/data/tests/hawkey/yum/updateinfo.xml.gz differ diff --git a/data/tests/hawkey/yum_oldrpms/tour-4-5.noarch.rpm b/data/tests/hawkey/yum_oldrpms/tour-4-5.noarch.rpm new file mode 100644 index 0000000..7eb716b Binary files /dev/null and b/data/tests/hawkey/yum_oldrpms/tour-4-5.noarch.rpm differ diff --git a/data/tests/modules/defaults/httpd.yaml b/data/tests/modules/defaults/httpd.yaml new file mode 100644 index 0000000..58b1bda --- /dev/null +++ b/data/tests/modules/defaults/httpd.yaml @@ -0,0 +1,7 @@ +document: modulemd-defaults +version: 1 +data: + module: httpd + stream: 2.4 + profiles: + 2.4: [default] diff --git a/data/tests/modules/etc/dnf/dnf.conf b/data/tests/modules/etc/dnf/dnf.conf new file mode 100644 index 0000000..dd05334 --- /dev/null +++ b/data/tests/modules/etc/dnf/dnf.conf @@ -0,0 +1,8 @@ +[main] +gpgcheck=0 +installonly_limit=3 +clean_requirements_on_remove=True +install_weak_deps=0 +modulesdir=etc/dnf/modules.d +reposdir=/home/mhatina/share/dnf/tests/modules/etc/dnf/repos.d +moduledefaultsdir=/home/mhatina/share/dnf/tests/modules/etc/dnf/modules.defaults.d diff --git a/data/tests/modules/etc/dnf/dnf.conf.in b/data/tests/modules/etc/dnf/dnf.conf.in new file mode 100644 index 0000000..bf45648 --- /dev/null +++ b/data/tests/modules/etc/dnf/dnf.conf.in @@ -0,0 +1,8 @@ +[main] +gpgcheck=0 +installonly_limit=3 +clean_requirements_on_remove=True +install_weak_deps=0 +modulesdir=etc/dnf/modules.d +reposdir=@CMAKE_CURRENT_SOURCE_DIR@/tests/modules/etc/dnf/repos.d +moduledefaultsdir=@CMAKE_CURRENT_SOURCE_DIR@/tests/modules/etc/dnf/modules.defaults.d diff --git a/data/tests/modules/etc/dnf/modules.d/base-runtime.module b/data/tests/modules/etc/dnf/modules.d/base-runtime.module new file mode 100644 index 0000000..5d08575 --- /dev/null +++ b/data/tests/modules/etc/dnf/modules.d/base-runtime.module @@ -0,0 +1,6 @@ +[base-runtime] +stream = f26 +version = 1 +profiles = +enabled = 1 +locked = 0 \ No newline at end of file diff --git a/data/tests/modules/etc/dnf/modules.d/httpd.module b/data/tests/modules/etc/dnf/modules.d/httpd.module new file mode 100644 index 0000000..995d7cd --- /dev/null +++ b/data/tests/modules/etc/dnf/modules.d/httpd.module @@ -0,0 +1,6 @@ +[httpd] +stream = 2.4 +version = 1 +profiles = +enabled = 1 +locked = 0 \ No newline at end of file diff --git a/data/tests/modules/etc/dnf/modules.defaults.d/base-runtime.yaml b/data/tests/modules/etc/dnf/modules.defaults.d/base-runtime.yaml new file mode 100644 index 0000000..62c9a5f --- /dev/null +++ b/data/tests/modules/etc/dnf/modules.defaults.d/base-runtime.yaml @@ -0,0 +1,7 @@ +document: modulemd-defaults +version: 1 +data: + module: base-runtime + stream: f26 + profiles: + f26: [minimal] diff --git a/data/tests/modules/etc/dnf/modules.defaults.d/httpd.yaml b/data/tests/modules/etc/dnf/modules.defaults.d/httpd.yaml new file mode 100644 index 0000000..58b1bda --- /dev/null +++ b/data/tests/modules/etc/dnf/modules.defaults.d/httpd.yaml @@ -0,0 +1,7 @@ +document: modulemd-defaults +version: 1 +data: + module: httpd + stream: 2.4 + profiles: + 2.4: [default] diff --git a/data/tests/modules/etc/dnf/repos.d/boltron.repo b/data/tests/modules/etc/dnf/repos.d/boltron.repo new file mode 100644 index 0000000..9ab80ff --- /dev/null +++ b/data/tests/modules/etc/dnf/repos.d/boltron.repo @@ -0,0 +1,6 @@ +[boltron] +name=Boltron +baseurl=https://download.fedoraproject.org/pub/alt/unofficial/releases/26/Server/$basearch/os/ +enabled=1 +gpgcheck=0 +metadata_expire=0 diff --git a/data/tests/modules/etc/dnf/repos.d/copr.repo b/data/tests/modules/etc/dnf/repos.d/copr.repo new file mode 100644 index 0000000..183dfcf --- /dev/null +++ b/data/tests/modules/etc/dnf/repos.d/copr.repo @@ -0,0 +1,6 @@ +[copr] +name=Copr +baseurl=http://copr-be-dev.cloud.fedoraproject.org/results/frostyx/testmodule/modules/fedora-rawhide-x86_64+httpd-master-20180118000705/latest/x86_64/ +enabled=1 +gpgcheck=0 +metadata_expire=0 diff --git a/data/tests/modules/etc/dnf/repos.d/fedora-modular-updates.repo b/data/tests/modules/etc/dnf/repos.d/fedora-modular-updates.repo new file mode 100644 index 0000000..a24bad8 --- /dev/null +++ b/data/tests/modules/etc/dnf/repos.d/fedora-modular-updates.repo @@ -0,0 +1,38 @@ +[updates-modular] +name=Fedora Modular $releasever - $basearch - Updates +failovermethod=priority +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/Modular/$basearch/os/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-modular-f$releasever&arch=$basearch +enabled=1 +repo_gpgcheck=0 +type=rpm +gpgcheck=1 +metadata_expire=6h +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +skip_if_unavailable=False + +[updates-modular-debuginfo] +name=Fedora Modular $releasever - $basearch - Updates - Debug +failovermethod=priority +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/Modular/$basearch/debug/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-modular-debug-f$releasever&arch=$basearch +enabled=0 +repo_gpgcheck=0 +type=rpm +gpgcheck=1 +metadata_expire=6h +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +skip_if_unavailable=False + +[updates-modular-source] +name=Fedora Modular $releasever - Updates Source +failovermethod=priority +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/Modular/source/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-modular-source-f$releasever&arch=$basearch +enabled=0 +repo_gpgcheck=0 +type=rpm +gpgcheck=1 +metadata_expire=6h +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +skip_if_unavailable=False diff --git a/data/tests/modules/etc/dnf/repos.d/fedora-modular.repo b/data/tests/modules/etc/dnf/repos.d/fedora-modular.repo new file mode 100644 index 0000000..41ead8d --- /dev/null +++ b/data/tests/modules/etc/dnf/repos.d/fedora-modular.repo @@ -0,0 +1,37 @@ +[fedora-modular] +name=Fedora Modular $releasever - $basearch +failovermethod=priority +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Modular/$basearch/os/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-$releasever&arch=$basearch +enabled=1 +#metadata_expire=7d +repo_gpgcheck=0 +type=rpm +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +skip_if_unavailable=False + +[fedora-modular-debuginfo] +name=Fedora Modular $releasever - $basearch - Debug +failovermethod=priority +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Modular/$basearch/debug/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-debug-$releasever&arch=$basearch +enabled=0 +metadata_expire=7d +repo_gpgcheck=0 +type=rpm +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +skip_if_unavailable=False + +[fedora-modular-source] +name=Fedora Modular $releasever - Source +failovermethod=priority#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Modular/source/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-source-$releasever&arch=$basearch +enabled=0 +metadata_expire=7d +repo_gpgcheck=0 +type=rpm +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +skip_if_unavailable=False diff --git a/data/tests/modules/etc/dnf/repos.d/fedora.repo b/data/tests/modules/etc/dnf/repos.d/fedora.repo new file mode 100644 index 0000000..f670593 --- /dev/null +++ b/data/tests/modules/etc/dnf/repos.d/fedora.repo @@ -0,0 +1,38 @@ +[fedora] +name=Fedora $releasever - $basearch +failovermethod=priority +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch +enabled=1 +metadata_expire=7d +repo_gpgcheck=0 +type=rpm +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +skip_if_unavailable=False + +[fedora-debuginfo] +name=Fedora $releasever - $basearch - Debug +failovermethod=priority +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch +enabled=0 +metadata_expire=7d +repo_gpgcheck=0 +type=rpm +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +skip_if_unavailable=False + +[fedora-source] +name=Fedora $releasever - Source +failovermethod=priority +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch +enabled=0 +metadata_expire=7d +repo_gpgcheck=0 +type=rpm +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch +skip_if_unavailable=False diff --git a/data/tests/modules/etc/dnf/repos.d/test.repo b/data/tests/modules/etc/dnf/repos.d/test.repo new file mode 100644 index 0000000..ecd440a --- /dev/null +++ b/data/tests/modules/etc/dnf/repos.d/test.repo @@ -0,0 +1,6 @@ +[test] +name=Test +baseurl=file:///Users/mhatina/Projects/dnf/libdnf/tests/libdnf/data/tests/modules/modules/_all/x86_64/ +enabled=1 +gpgcheck=0 +metadata_expire=0 diff --git a/data/tests/modules/etc/dnf/repos.d/test.repo.in b/data/tests/modules/etc/dnf/repos.d/test.repo.in new file mode 100644 index 0000000..2c24831 --- /dev/null +++ b/data/tests/modules/etc/dnf/repos.d/test.repo.in @@ -0,0 +1,6 @@ +[test] +name=Test +baseurl=file://@CMAKE_CURRENT_SOURCE_DIR@/tests/modules/modules/_all/x86_64/ +enabled=1 +gpgcheck=0 +metadata_expire=0 diff --git a/data/tests/modules/modules/_all/i686/base-runtime-f26-1.i686.yaml b/data/tests/modules/modules/_all/i686/base-runtime-f26-1.i686.yaml new file mode 100644 index 0000000..8a73098 --- /dev/null +++ b/data/tests/modules/modules/_all/i686/base-runtime-f26-1.i686.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 1 + context: e3b0c442 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.i686 + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25-4.i686 + - filesystem-0:3.2-40.i686 + - glibc-0:2.25-4.i686 + - glibc-common-0:2.25-4.i686 + - glibc-debuginfo-common-0:2.25-4.i686 + - kernel-0:4.11.0-1.i686 + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.i686 + - systemd-0:233-3.i686 +... diff --git a/data/tests/modules/modules/_all/i686/base-runtime-f26-2.i686.yaml b/data/tests/modules/modules/_all/i686/base-runtime-f26-2.i686.yaml new file mode 100644 index 0000000..3c256eb --- /dev/null +++ b/data/tests/modules/modules/_all/i686/base-runtime-f26-2.i686.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 2 + context: e3b0c442 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.i686 + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25.90-2.i686 + - filesystem-0:3.2-40.i686 + - glibc-0:2.25.90-2.i686 + - glibc-common-0:2.25.90-2.i686 + - glibc-debuginfo-common-0:2.25.90-2.i686 + - kernel-0:4.11.0-1.i686 + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.i686 + - systemd-0:233-3.i686 +... diff --git a/data/tests/modules/modules/_all/i686/base-runtime-rhel73-1.i686.yaml b/data/tests/modules/modules/_all/i686/base-runtime-rhel73-1.i686.yaml new file mode 100644 index 0000000..11ccb71 --- /dev/null +++ b/data/tests/modules/modules/_all/i686/base-runtime-rhel73-1.i686.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: rhel73 + version: 1 + context: e3b0c442 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:10.0-7.noarch + - bash-0:4.2.46-21.i686 + - bash-doc-0:4.2.46-21.noarch + - dummy-nscd-0:2.17-157.i686 + - filesystem-0:3.2-21.i686 + - glibc-0:2.17-157.i686 + - glibc-common-0:2.17-157.i686 + - glibc-debuginfo-common-0:2.17-157.i686 + - kernel-0:3.10.0-514.i686 + - kernel-doc-0:3.10.0-514.noarch + - kernel-headers-0:3.10.0-514.i686 + - systemd-0:219-30.i686 +... diff --git a/data/tests/modules/modules/_all/i686/basesystem-10.0-7.noarch.rpm b/data/tests/modules/modules/_all/i686/basesystem-10.0-7.noarch.rpm new file mode 100644 index 0000000..9f1be1a Binary files /dev/null and b/data/tests/modules/modules/_all/i686/basesystem-10.0-7.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/i686/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/_all/i686/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..1cbef5f Binary files /dev/null and b/data/tests/modules/modules/_all/i686/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/i686/bash-4.2.46-21.i686.rpm b/data/tests/modules/modules/_all/i686/bash-4.2.46-21.i686.rpm new file mode 100644 index 0000000..7968573 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/bash-4.2.46-21.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/bash-4.4.12-2.i686.rpm b/data/tests/modules/modules/_all/i686/bash-4.4.12-2.i686.rpm new file mode 100644 index 0000000..22b24d1 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/bash-4.4.12-2.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/bash-doc-4.2.46-21.noarch.rpm b/data/tests/modules/modules/_all/i686/bash-doc-4.2.46-21.noarch.rpm new file mode 100644 index 0000000..320890d Binary files /dev/null and b/data/tests/modules/modules/_all/i686/bash-doc-4.2.46-21.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/i686/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/_all/i686/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0a28ef5 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/i686/dummy-nscd-2.17-157.i686.rpm b/data/tests/modules/modules/_all/i686/dummy-nscd-2.17-157.i686.rpm new file mode 100644 index 0000000..0e6b935 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/dummy-nscd-2.17-157.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/dummy-nscd-2.25-4.i686.rpm b/data/tests/modules/modules/_all/i686/dummy-nscd-2.25-4.i686.rpm new file mode 100644 index 0000000..78310d5 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/dummy-nscd-2.25-4.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/dummy-nscd-2.25.90-2.i686.rpm b/data/tests/modules/modules/_all/i686/dummy-nscd-2.25.90-2.i686.rpm new file mode 100644 index 0000000..30e1f7e Binary files /dev/null and b/data/tests/modules/modules/_all/i686/dummy-nscd-2.25.90-2.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/filesystem-3.2-21.i686.rpm b/data/tests/modules/modules/_all/i686/filesystem-3.2-21.i686.rpm new file mode 100644 index 0000000..323753d Binary files /dev/null and b/data/tests/modules/modules/_all/i686/filesystem-3.2-21.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/filesystem-3.2-40.i686.rpm b/data/tests/modules/modules/_all/i686/filesystem-3.2-40.i686.rpm new file mode 100644 index 0000000..7ad3dc9 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/filesystem-3.2-40.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/glibc-2.17-157.i686.rpm b/data/tests/modules/modules/_all/i686/glibc-2.17-157.i686.rpm new file mode 100644 index 0000000..71793e7 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/glibc-2.17-157.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/glibc-2.25-4.i686.rpm b/data/tests/modules/modules/_all/i686/glibc-2.25-4.i686.rpm new file mode 100644 index 0000000..adf7eb8 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/glibc-2.25-4.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/glibc-2.25.90-2.i686.rpm b/data/tests/modules/modules/_all/i686/glibc-2.25.90-2.i686.rpm new file mode 100644 index 0000000..1b522f1 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/glibc-2.25.90-2.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/glibc-common-2.17-157.i686.rpm b/data/tests/modules/modules/_all/i686/glibc-common-2.17-157.i686.rpm new file mode 100644 index 0000000..f5d59a3 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/glibc-common-2.17-157.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/glibc-common-2.25-4.i686.rpm b/data/tests/modules/modules/_all/i686/glibc-common-2.25-4.i686.rpm new file mode 100644 index 0000000..1278fd8 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/glibc-common-2.25-4.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/glibc-common-2.25.90-2.i686.rpm b/data/tests/modules/modules/_all/i686/glibc-common-2.25.90-2.i686.rpm new file mode 100644 index 0000000..03be230 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/glibc-common-2.25.90-2.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/glibc-debuginfo-common-2.17-157.i686.rpm b/data/tests/modules/modules/_all/i686/glibc-debuginfo-common-2.17-157.i686.rpm new file mode 100644 index 0000000..ccfb298 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/glibc-debuginfo-common-2.17-157.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/glibc-debuginfo-common-2.25-4.i686.rpm b/data/tests/modules/modules/_all/i686/glibc-debuginfo-common-2.25-4.i686.rpm new file mode 100644 index 0000000..7946ac2 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/glibc-debuginfo-common-2.25-4.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/glibc-debuginfo-common-2.25.90-2.i686.rpm b/data/tests/modules/modules/_all/i686/glibc-debuginfo-common-2.25.90-2.i686.rpm new file mode 100644 index 0000000..f13bc33 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/glibc-debuginfo-common-2.25.90-2.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/grub2-2.02-0.40.i686.rpm b/data/tests/modules/modules/_all/i686/grub2-2.02-0.40.i686.rpm new file mode 100644 index 0000000..8475bef Binary files /dev/null and b/data/tests/modules/modules/_all/i686/grub2-2.02-0.40.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-2.2-1.i686.yaml b/data/tests/modules/modules/_all/i686/httpd-2.2-1.i686.yaml new file mode 100644 index 0000000..940abb8 --- /dev/null +++ b/data/tests/modules/modules/_all/i686/httpd-2.2-1.i686.yaml @@ -0,0 +1,32 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.2 + version: 1 + context: e3b0c442 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.2.15-59.i686 + - httpd-doc-0:2.2.15-59.i686 +... diff --git a/data/tests/modules/modules/_all/i686/httpd-2.2.10-1.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-2.2.10-1.i686.rpm new file mode 100644 index 0000000..a4768bd Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-2.2.10-1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-2.2.15-59.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-2.2.15-59.i686.rpm new file mode 100644 index 0000000..b69fd61 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-2.2.15-59.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-2.4-1.i686.yaml b/data/tests/modules/modules/_all/i686/httpd-2.4-1.i686.yaml new file mode 100644 index 0000000..8d7bf23 --- /dev/null +++ b/data/tests/modules/modules/_all/i686/httpd-2.4-1.i686.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 1 + context: 3b6beaf8 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-7.i686 + - httpd-doc-0:2.4.25-7.i686 + - libnghttp2-0:1.21.1-1.i686 +... diff --git a/data/tests/modules/modules/_all/i686/httpd-2.4-2.i686.yaml b/data/tests/modules/modules/_all/i686/httpd-2.4-2.i686.yaml new file mode 100644 index 0000000..38bf4b6 --- /dev/null +++ b/data/tests/modules/modules/_all/i686/httpd-2.4-2.i686.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 2 + context: 3b6beaf8 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-8.i686 + - httpd-doc-0:2.4.25-8.i686 + - libnghttp2-0:1.21.1-1.i686 +... diff --git a/data/tests/modules/modules/_all/i686/httpd-2.4.25-7.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-2.4.25-7.i686.rpm new file mode 100644 index 0000000..15b5e01 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-2.4.25-7.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-2.4.25-8.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-2.4.25-8.i686.rpm new file mode 100644 index 0000000..62167c3 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-2.4.25-8.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-doc-2.2.10-1.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-doc-2.2.10-1.i686.rpm new file mode 100644 index 0000000..1d8fd7f Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-doc-2.2.10-1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-doc-2.2.15-59.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-doc-2.2.15-59.i686.rpm new file mode 100644 index 0000000..e4aa14d Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-doc-2.2.15-59.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-doc-2.4.25-7.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-doc-2.4.25-7.i686.rpm new file mode 100644 index 0000000..7df6845 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-doc-2.4.25-7.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-doc-2.4.25-8.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-doc-2.4.25-8.i686.rpm new file mode 100644 index 0000000..6c0c0ce Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-doc-2.4.25-8.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-provides-name-3.0-1.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-provides-name-3.0-1.i686.rpm new file mode 100644 index 0000000..db1c66b Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-provides-name-3.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-provides-name-doc-3.0-1.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-provides-name-doc-3.0-1.i686.rpm new file mode 100644 index 0000000..332055f Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-provides-name-doc-3.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-provides-name-version-release-3.0-1.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-provides-name-version-release-3.0-1.i686.rpm new file mode 100644 index 0000000..f7e0d42 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-provides-name-version-release-3.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd-provides-name-version-release-doc-3.0-1.i686.rpm b/data/tests/modules/modules/_all/i686/httpd-provides-name-version-release-doc-3.0-1.i686.rpm new file mode 100644 index 0000000..7e23e44 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/httpd-provides-name-version-release-doc-3.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/httpd.yaml b/data/tests/modules/modules/_all/i686/httpd.yaml new file mode 100644 index 0000000..58b1bda --- /dev/null +++ b/data/tests/modules/modules/_all/i686/httpd.yaml @@ -0,0 +1,7 @@ +document: modulemd-defaults +version: 1 +data: + module: httpd + stream: 2.4 + profiles: + 2.4: [default] diff --git a/data/tests/modules/modules/_all/i686/kernel-3.10.0-514.i686.rpm b/data/tests/modules/modules/_all/i686/kernel-3.10.0-514.i686.rpm new file mode 100644 index 0000000..afade8d Binary files /dev/null and b/data/tests/modules/modules/_all/i686/kernel-3.10.0-514.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/kernel-4.11.0-1.i686.rpm b/data/tests/modules/modules/_all/i686/kernel-4.11.0-1.i686.rpm new file mode 100644 index 0000000..28bbd30 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/kernel-4.11.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/kernel-doc-3.10.0-514.noarch.rpm b/data/tests/modules/modules/_all/i686/kernel-doc-3.10.0-514.noarch.rpm new file mode 100644 index 0000000..f7a3b13 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/kernel-doc-3.10.0-514.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/i686/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/_all/i686/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..4e174bb Binary files /dev/null and b/data/tests/modules/modules/_all/i686/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/i686/kernel-headers-3.10.0-514.i686.rpm b/data/tests/modules/modules/_all/i686/kernel-headers-3.10.0-514.i686.rpm new file mode 100644 index 0000000..761c8a0 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/kernel-headers-3.10.0-514.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/kernel-headers-4.11.0-1.i686.rpm b/data/tests/modules/modules/_all/i686/kernel-headers-4.11.0-1.i686.rpm new file mode 100644 index 0000000..363953f Binary files /dev/null and b/data/tests/modules/modules/_all/i686/kernel-headers-4.11.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/libnghttp2-1.21.1-1.1.i686.rpm b/data/tests/modules/modules/_all/i686/libnghttp2-1.21.1-1.1.i686.rpm new file mode 100644 index 0000000..b5d34b0 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/libnghttp2-1.21.1-1.1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/libnghttp2-1.21.1-1.i686.rpm b/data/tests/modules/modules/_all/i686/libnghttp2-1.21.1-1.i686.rpm new file mode 100644 index 0000000..61cb691 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/libnghttp2-1.21.1-1.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/repodata/006316d6be24801d3eab16966f9054e2676de83dca78f52871d1a15e2b72e79e-other.xml.gz b/data/tests/modules/modules/_all/i686/repodata/006316d6be24801d3eab16966f9054e2676de83dca78f52871d1a15e2b72e79e-other.xml.gz new file mode 100644 index 0000000..0001f1d Binary files /dev/null and b/data/tests/modules/modules/_all/i686/repodata/006316d6be24801d3eab16966f9054e2676de83dca78f52871d1a15e2b72e79e-other.xml.gz differ diff --git a/data/tests/modules/modules/_all/i686/repodata/27c16fcce1e460811fc9c9edc21d54f52aa75dd49365d66d010ac3fb506803f2-primary.xml.gz b/data/tests/modules/modules/_all/i686/repodata/27c16fcce1e460811fc9c9edc21d54f52aa75dd49365d66d010ac3fb506803f2-primary.xml.gz new file mode 100644 index 0000000..cca0c89 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/repodata/27c16fcce1e460811fc9c9edc21d54f52aa75dd49365d66d010ac3fb506803f2-primary.xml.gz differ diff --git a/data/tests/modules/modules/_all/i686/repodata/2b48025c07f5cfd5170fe7326855d09d65914fc7c14d74998b6226a72451d903-filelists.xml.gz b/data/tests/modules/modules/_all/i686/repodata/2b48025c07f5cfd5170fe7326855d09d65914fc7c14d74998b6226a72451d903-filelists.xml.gz new file mode 100644 index 0000000..87f3f81 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/repodata/2b48025c07f5cfd5170fe7326855d09d65914fc7c14d74998b6226a72451d903-filelists.xml.gz differ diff --git a/data/tests/modules/modules/_all/i686/repodata/323709d382b9a9b290d714dab4dab7153aafa895681583c393db1540d0466ed3-filelists.sqlite.bz2 b/data/tests/modules/modules/_all/i686/repodata/323709d382b9a9b290d714dab4dab7153aafa895681583c393db1540d0466ed3-filelists.sqlite.bz2 new file mode 100644 index 0000000..09b3cc4 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/repodata/323709d382b9a9b290d714dab4dab7153aafa895681583c393db1540d0466ed3-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_all/i686/repodata/6cefdf84131c57f1e0a7e40c3fb025df22e4938e6b690e6c9835f3d89fa67638-other.sqlite.bz2 b/data/tests/modules/modules/_all/i686/repodata/6cefdf84131c57f1e0a7e40c3fb025df22e4938e6b690e6c9835f3d89fa67638-other.sqlite.bz2 new file mode 100644 index 0000000..5ad9a7e Binary files /dev/null and b/data/tests/modules/modules/_all/i686/repodata/6cefdf84131c57f1e0a7e40c3fb025df22e4938e6b690e6c9835f3d89fa67638-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_all/i686/repodata/6da5c34843c0889b8a035ff92062f197da16a59518c65362e34888f94511f847-primary.sqlite.bz2 b/data/tests/modules/modules/_all/i686/repodata/6da5c34843c0889b8a035ff92062f197da16a59518c65362e34888f94511f847-primary.sqlite.bz2 new file mode 100644 index 0000000..9bbc8c1 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/repodata/6da5c34843c0889b8a035ff92062f197da16a59518c65362e34888f94511f847-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_all/i686/repodata/d50c329d3c3b4f34044ae534725bc06c9ee9f459f27586aacc8f4e8f3331bff1-modules.yaml.gz b/data/tests/modules/modules/_all/i686/repodata/d50c329d3c3b4f34044ae534725bc06c9ee9f459f27586aacc8f4e8f3331bff1-modules.yaml.gz new file mode 100644 index 0000000..bf28188 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/repodata/d50c329d3c3b4f34044ae534725bc06c9ee9f459f27586aacc8f4e8f3331bff1-modules.yaml.gz differ diff --git a/data/tests/modules/modules/_all/i686/repodata/repomd.xml b/data/tests/modules/modules/_all/i686/repodata/repomd.xml new file mode 100644 index 0000000..ed1a571 --- /dev/null +++ b/data/tests/modules/modules/_all/i686/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467024 + + 27c16fcce1e460811fc9c9edc21d54f52aa75dd49365d66d010ac3fb506803f2 + 17acd7a62c4a41041f797ba0b60c8a4bcf9a201b5b055c41d317ac04c4a9ba69 + + 1528467024 + 4352 + 46275 + + + 2b48025c07f5cfd5170fe7326855d09d65914fc7c14d74998b6226a72451d903 + 3342bbb053063797afa5ae4debb735845d30f66675f8ed0c40fee20403a57f8b + + 1528467024 + 2314 + 7537 + + + 006316d6be24801d3eab16966f9054e2676de83dca78f52871d1a15e2b72e79e + 7f99a6075c48030eaeb2da5b94ff7c69d79aef016c1bb404a52078c06bb2c397 + + 1528467024 + 2269 + 7392 + + + 6da5c34843c0889b8a035ff92062f197da16a59518c65362e34888f94511f847 + e246bd775c8dd6513b29f7e8137cd0105d47d71b5caa63de5c6dc5d4c8c18f7d + + 1528467024 + 8475 + 122880 + 10 + + + 323709d382b9a9b290d714dab4dab7153aafa895681583c393db1540d0466ed3 + 5c79aa0769bcc6deaccc75f0bdd79581c7258103f3a88d7ab5c238f4c7cbd98d + + 1528467024 + 3462 + 28672 + 10 + + + 6cefdf84131c57f1e0a7e40c3fb025df22e4938e6b690e6c9835f3d89fa67638 + 985226a8d5b1ee02b6e06b69ca77f1757d8e28c29ec3dd24580f4bd1a256beb1 + + 1528467024 + 3338 + 24576 + 10 + + + d50c329d3c3b4f34044ae534725bc06c9ee9f459f27586aacc8f4e8f3331bff1 + 4b47c90e488da6226ebcb6937f57f70bff3ca8f00a82a383702b9a8fa812fa78 + + 1531828718 + 632 + 3977 + + diff --git a/data/tests/modules/modules/_all/i686/systemd-219-30.i686.rpm b/data/tests/modules/modules/_all/i686/systemd-219-30.i686.rpm new file mode 100644 index 0000000..a1f8ac7 Binary files /dev/null and b/data/tests/modules/modules/_all/i686/systemd-219-30.i686.rpm differ diff --git a/data/tests/modules/modules/_all/i686/systemd-233-3.i686.rpm b/data/tests/modules/modules/_all/i686/systemd-233-3.i686.rpm new file mode 100644 index 0000000..1c57cea Binary files /dev/null and b/data/tests/modules/modules/_all/i686/systemd-233-3.i686.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/base-runtime-f26-1.s390x.yaml b/data/tests/modules/modules/_all/s390x/base-runtime-f26-1.s390x.yaml new file mode 100644 index 0000000..59f0600 --- /dev/null +++ b/data/tests/modules/modules/_all/s390x/base-runtime-f26-1.s390x.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 1 + context: e3b0c442 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.s390x + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25-4.s390x + - filesystem-0:3.2-40.s390x + - glibc-0:2.25-4.s390x + - glibc-common-0:2.25-4.s390x + - glibc-debuginfo-common-0:2.25-4.s390x + - kernel-0:4.11.0-1.s390x + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.s390x + - systemd-0:233-3.s390x +... diff --git a/data/tests/modules/modules/_all/s390x/base-runtime-f26-2.s390x.yaml b/data/tests/modules/modules/_all/s390x/base-runtime-f26-2.s390x.yaml new file mode 100644 index 0000000..f40b400 --- /dev/null +++ b/data/tests/modules/modules/_all/s390x/base-runtime-f26-2.s390x.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 2 + context: e3b0c442 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.s390x + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25.90-2.s390x + - filesystem-0:3.2-40.s390x + - glibc-0:2.25.90-2.s390x + - glibc-common-0:2.25.90-2.s390x + - glibc-debuginfo-common-0:2.25.90-2.s390x + - kernel-0:4.11.0-1.s390x + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.s390x + - systemd-0:233-3.s390x +... diff --git a/data/tests/modules/modules/_all/s390x/base-runtime-rhel73-1.s390x.yaml b/data/tests/modules/modules/_all/s390x/base-runtime-rhel73-1.s390x.yaml new file mode 100644 index 0000000..37302e7 --- /dev/null +++ b/data/tests/modules/modules/_all/s390x/base-runtime-rhel73-1.s390x.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: rhel73 + version: 1 + context: e3b0c442 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:10.0-7.noarch + - bash-0:4.2.46-21.s390x + - bash-doc-0:4.2.46-21.noarch + - dummy-nscd-0:2.17-157.s390x + - filesystem-0:3.2-21.s390x + - glibc-0:2.17-157.s390x + - glibc-common-0:2.17-157.s390x + - glibc-debuginfo-common-0:2.17-157.s390x + - kernel-0:3.10.0-514.s390x + - kernel-doc-0:3.10.0-514.noarch + - kernel-headers-0:3.10.0-514.s390x + - systemd-0:219-30.s390x +... diff --git a/data/tests/modules/modules/_all/s390x/basesystem-10.0-7.noarch.rpm b/data/tests/modules/modules/_all/s390x/basesystem-10.0-7.noarch.rpm new file mode 100644 index 0000000..9f1be1a Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/basesystem-10.0-7.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/_all/s390x/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..1cbef5f Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/bash-4.2.46-21.s390x.rpm b/data/tests/modules/modules/_all/s390x/bash-4.2.46-21.s390x.rpm new file mode 100644 index 0000000..b1b8d6f Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/bash-4.2.46-21.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/bash-4.4.12-2.s390x.rpm b/data/tests/modules/modules/_all/s390x/bash-4.4.12-2.s390x.rpm new file mode 100644 index 0000000..8548a62 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/bash-4.4.12-2.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/bash-doc-4.2.46-21.noarch.rpm b/data/tests/modules/modules/_all/s390x/bash-doc-4.2.46-21.noarch.rpm new file mode 100644 index 0000000..320890d Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/bash-doc-4.2.46-21.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/_all/s390x/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0a28ef5 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/dummy-nscd-2.17-157.s390x.rpm b/data/tests/modules/modules/_all/s390x/dummy-nscd-2.17-157.s390x.rpm new file mode 100644 index 0000000..c0330d8 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/dummy-nscd-2.17-157.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/dummy-nscd-2.25-4.s390x.rpm b/data/tests/modules/modules/_all/s390x/dummy-nscd-2.25-4.s390x.rpm new file mode 100644 index 0000000..35e4d2c Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/dummy-nscd-2.25-4.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/dummy-nscd-2.25.90-2.s390x.rpm b/data/tests/modules/modules/_all/s390x/dummy-nscd-2.25.90-2.s390x.rpm new file mode 100644 index 0000000..db731f5 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/dummy-nscd-2.25.90-2.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/filesystem-3.2-21.s390x.rpm b/data/tests/modules/modules/_all/s390x/filesystem-3.2-21.s390x.rpm new file mode 100644 index 0000000..08ba405 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/filesystem-3.2-21.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/filesystem-3.2-40.s390x.rpm b/data/tests/modules/modules/_all/s390x/filesystem-3.2-40.s390x.rpm new file mode 100644 index 0000000..99c8d91 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/filesystem-3.2-40.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/glibc-2.17-157.s390x.rpm b/data/tests/modules/modules/_all/s390x/glibc-2.17-157.s390x.rpm new file mode 100644 index 0000000..0a88477 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/glibc-2.17-157.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/glibc-2.25-4.s390x.rpm b/data/tests/modules/modules/_all/s390x/glibc-2.25-4.s390x.rpm new file mode 100644 index 0000000..ef87362 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/glibc-2.25-4.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/glibc-2.25.90-2.s390x.rpm b/data/tests/modules/modules/_all/s390x/glibc-2.25.90-2.s390x.rpm new file mode 100644 index 0000000..a292497 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/glibc-2.25.90-2.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/glibc-common-2.17-157.s390x.rpm b/data/tests/modules/modules/_all/s390x/glibc-common-2.17-157.s390x.rpm new file mode 100644 index 0000000..c347e83 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/glibc-common-2.17-157.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/glibc-common-2.25-4.s390x.rpm b/data/tests/modules/modules/_all/s390x/glibc-common-2.25-4.s390x.rpm new file mode 100644 index 0000000..ae3e7ac Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/glibc-common-2.25-4.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/glibc-common-2.25.90-2.s390x.rpm b/data/tests/modules/modules/_all/s390x/glibc-common-2.25.90-2.s390x.rpm new file mode 100644 index 0000000..2ce6667 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/glibc-common-2.25.90-2.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/glibc-debuginfo-common-2.17-157.s390x.rpm b/data/tests/modules/modules/_all/s390x/glibc-debuginfo-common-2.17-157.s390x.rpm new file mode 100644 index 0000000..b65b588 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/glibc-debuginfo-common-2.17-157.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/glibc-debuginfo-common-2.25-4.s390x.rpm b/data/tests/modules/modules/_all/s390x/glibc-debuginfo-common-2.25-4.s390x.rpm new file mode 100644 index 0000000..5720699 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/glibc-debuginfo-common-2.25-4.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/glibc-debuginfo-common-2.25.90-2.s390x.rpm b/data/tests/modules/modules/_all/s390x/glibc-debuginfo-common-2.25.90-2.s390x.rpm new file mode 100644 index 0000000..70e5ed7 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/glibc-debuginfo-common-2.25.90-2.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/grub2-2.02-0.40.s390x.rpm b/data/tests/modules/modules/_all/s390x/grub2-2.02-0.40.s390x.rpm new file mode 100644 index 0000000..a1d758b Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/grub2-2.02-0.40.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-2.2-1.s390x.yaml b/data/tests/modules/modules/_all/s390x/httpd-2.2-1.s390x.yaml new file mode 100644 index 0000000..3c29f87 --- /dev/null +++ b/data/tests/modules/modules/_all/s390x/httpd-2.2-1.s390x.yaml @@ -0,0 +1,32 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.2 + version: 1 + context: e3b0c442 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.2.15-59.s390x + - httpd-doc-0:2.2.15-59.s390x +... diff --git a/data/tests/modules/modules/_all/s390x/httpd-2.2.10-1.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-2.2.10-1.s390x.rpm new file mode 100644 index 0000000..06fb93e Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-2.2.10-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-2.2.15-59.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-2.2.15-59.s390x.rpm new file mode 100644 index 0000000..1002970 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-2.2.15-59.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-2.4-1.s390x.yaml b/data/tests/modules/modules/_all/s390x/httpd-2.4-1.s390x.yaml new file mode 100644 index 0000000..88cc630 --- /dev/null +++ b/data/tests/modules/modules/_all/s390x/httpd-2.4-1.s390x.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 1 + context: 3b6beaf8 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-7.s390x + - httpd-doc-0:2.4.25-7.s390x + - libnghttp2-0:1.21.1-1.s390x +... diff --git a/data/tests/modules/modules/_all/s390x/httpd-2.4-2.s390x.yaml b/data/tests/modules/modules/_all/s390x/httpd-2.4-2.s390x.yaml new file mode 100644 index 0000000..f69ac0e --- /dev/null +++ b/data/tests/modules/modules/_all/s390x/httpd-2.4-2.s390x.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 2 + context: 3b6beaf8 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-8.s390x + - httpd-doc-0:2.4.25-8.s390x + - libnghttp2-0:1.21.1-1.s390x +... diff --git a/data/tests/modules/modules/_all/s390x/httpd-2.4.25-7.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-2.4.25-7.s390x.rpm new file mode 100644 index 0000000..ece38b3 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-2.4.25-7.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-2.4.25-8.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-2.4.25-8.s390x.rpm new file mode 100644 index 0000000..f3f9e73 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-2.4.25-8.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-doc-2.2.10-1.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-doc-2.2.10-1.s390x.rpm new file mode 100644 index 0000000..63d1cfd Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-doc-2.2.10-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-doc-2.2.15-59.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-doc-2.2.15-59.s390x.rpm new file mode 100644 index 0000000..3fd44b4 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-doc-2.2.15-59.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-doc-2.4.25-7.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-doc-2.4.25-7.s390x.rpm new file mode 100644 index 0000000..f1add54 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-doc-2.4.25-7.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-doc-2.4.25-8.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-doc-2.4.25-8.s390x.rpm new file mode 100644 index 0000000..a69d404 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-doc-2.4.25-8.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-provides-name-3.0-1.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-provides-name-3.0-1.s390x.rpm new file mode 100644 index 0000000..3c174f7 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-provides-name-3.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-provides-name-doc-3.0-1.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-provides-name-doc-3.0-1.s390x.rpm new file mode 100644 index 0000000..80fce63 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-provides-name-doc-3.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-provides-name-version-release-3.0-1.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-provides-name-version-release-3.0-1.s390x.rpm new file mode 100644 index 0000000..cff2578 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-provides-name-version-release-3.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd-provides-name-version-release-doc-3.0-1.s390x.rpm b/data/tests/modules/modules/_all/s390x/httpd-provides-name-version-release-doc-3.0-1.s390x.rpm new file mode 100644 index 0000000..d9ad6ca Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/httpd-provides-name-version-release-doc-3.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/httpd.yaml b/data/tests/modules/modules/_all/s390x/httpd.yaml new file mode 100644 index 0000000..58b1bda --- /dev/null +++ b/data/tests/modules/modules/_all/s390x/httpd.yaml @@ -0,0 +1,7 @@ +document: modulemd-defaults +version: 1 +data: + module: httpd + stream: 2.4 + profiles: + 2.4: [default] diff --git a/data/tests/modules/modules/_all/s390x/kernel-3.10.0-514.s390x.rpm b/data/tests/modules/modules/_all/s390x/kernel-3.10.0-514.s390x.rpm new file mode 100644 index 0000000..c2c9a6c Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/kernel-3.10.0-514.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/kernel-4.11.0-1.s390x.rpm b/data/tests/modules/modules/_all/s390x/kernel-4.11.0-1.s390x.rpm new file mode 100644 index 0000000..599419d Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/kernel-4.11.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/kernel-doc-3.10.0-514.noarch.rpm b/data/tests/modules/modules/_all/s390x/kernel-doc-3.10.0-514.noarch.rpm new file mode 100644 index 0000000..f7a3b13 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/kernel-doc-3.10.0-514.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/_all/s390x/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..4e174bb Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/kernel-headers-3.10.0-514.s390x.rpm b/data/tests/modules/modules/_all/s390x/kernel-headers-3.10.0-514.s390x.rpm new file mode 100644 index 0000000..0b88d7f Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/kernel-headers-3.10.0-514.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/kernel-headers-4.11.0-1.s390x.rpm b/data/tests/modules/modules/_all/s390x/kernel-headers-4.11.0-1.s390x.rpm new file mode 100644 index 0000000..6737a82 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/kernel-headers-4.11.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/libnghttp2-1.21.1-1.1.s390x.rpm b/data/tests/modules/modules/_all/s390x/libnghttp2-1.21.1-1.1.s390x.rpm new file mode 100644 index 0000000..dcd8a03 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/libnghttp2-1.21.1-1.1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/libnghttp2-1.21.1-1.s390x.rpm b/data/tests/modules/modules/_all/s390x/libnghttp2-1.21.1-1.s390x.rpm new file mode 100644 index 0000000..1ae6432 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/libnghttp2-1.21.1-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/repodata/425cec0f040291008c346d22f9baea2594b5991d9b0f507d6349a6c905b7b82e-modules.yaml.gz b/data/tests/modules/modules/_all/s390x/repodata/425cec0f040291008c346d22f9baea2594b5991d9b0f507d6349a6c905b7b82e-modules.yaml.gz new file mode 100644 index 0000000..ae6ea0a Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/repodata/425cec0f040291008c346d22f9baea2594b5991d9b0f507d6349a6c905b7b82e-modules.yaml.gz differ diff --git a/data/tests/modules/modules/_all/s390x/repodata/4a4495b4a9ca8d88506fe8e69d8f78f8ce15fff85185aee7b655e497bc62e04a-primary.xml.gz b/data/tests/modules/modules/_all/s390x/repodata/4a4495b4a9ca8d88506fe8e69d8f78f8ce15fff85185aee7b655e497bc62e04a-primary.xml.gz new file mode 100644 index 0000000..5cbb3a8 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/repodata/4a4495b4a9ca8d88506fe8e69d8f78f8ce15fff85185aee7b655e497bc62e04a-primary.xml.gz differ diff --git a/data/tests/modules/modules/_all/s390x/repodata/9a2de3d81cefc7d5f464f0a6b7494db74f0c65a6b8c62e6c7b084a30532181d4-other.sqlite.bz2 b/data/tests/modules/modules/_all/s390x/repodata/9a2de3d81cefc7d5f464f0a6b7494db74f0c65a6b8c62e6c7b084a30532181d4-other.sqlite.bz2 new file mode 100644 index 0000000..57d2b46 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/repodata/9a2de3d81cefc7d5f464f0a6b7494db74f0c65a6b8c62e6c7b084a30532181d4-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_all/s390x/repodata/d5e48682cd192e754842cb9db90de2a097514f535ea228d9e1dbf9b9b6e24d9d-filelists.xml.gz b/data/tests/modules/modules/_all/s390x/repodata/d5e48682cd192e754842cb9db90de2a097514f535ea228d9e1dbf9b9b6e24d9d-filelists.xml.gz new file mode 100644 index 0000000..9fb07f4 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/repodata/d5e48682cd192e754842cb9db90de2a097514f535ea228d9e1dbf9b9b6e24d9d-filelists.xml.gz differ diff --git a/data/tests/modules/modules/_all/s390x/repodata/e604471cac154e78c098d14de5ba51cf9ad6c10c4187006eeb67b2b2c50a4440-other.xml.gz b/data/tests/modules/modules/_all/s390x/repodata/e604471cac154e78c098d14de5ba51cf9ad6c10c4187006eeb67b2b2c50a4440-other.xml.gz new file mode 100644 index 0000000..6bf35c6 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/repodata/e604471cac154e78c098d14de5ba51cf9ad6c10c4187006eeb67b2b2c50a4440-other.xml.gz differ diff --git a/data/tests/modules/modules/_all/s390x/repodata/e86f1444bd807c0d5572e8459a87760babc6f399207f81627a6100a7efd769bc-primary.sqlite.bz2 b/data/tests/modules/modules/_all/s390x/repodata/e86f1444bd807c0d5572e8459a87760babc6f399207f81627a6100a7efd769bc-primary.sqlite.bz2 new file mode 100644 index 0000000..26502d4 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/repodata/e86f1444bd807c0d5572e8459a87760babc6f399207f81627a6100a7efd769bc-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_all/s390x/repodata/f725aa4c6cc441b905246cbc159bc62e090ce655c65892df6988e4468d155162-filelists.sqlite.bz2 b/data/tests/modules/modules/_all/s390x/repodata/f725aa4c6cc441b905246cbc159bc62e090ce655c65892df6988e4468d155162-filelists.sqlite.bz2 new file mode 100644 index 0000000..742e1db Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/repodata/f725aa4c6cc441b905246cbc159bc62e090ce655c65892df6988e4468d155162-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_all/s390x/repodata/repomd.xml b/data/tests/modules/modules/_all/s390x/repodata/repomd.xml new file mode 100644 index 0000000..803ce1a --- /dev/null +++ b/data/tests/modules/modules/_all/s390x/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467025 + + 4a4495b4a9ca8d88506fe8e69d8f78f8ce15fff85185aee7b655e497bc62e04a + 334cb4bd6bd4d573a31a04fc8585098c26c5f8008589639dcc111d1521218fcd + + 1528467025 + 4377 + 46442 + + + d5e48682cd192e754842cb9db90de2a097514f535ea228d9e1dbf9b9b6e24d9d + 194144c44a98933ff564c3d23319c3dca0acf556c689a8e502ff9418099724e6 + + 1528467025 + 2326 + 7580 + + + e604471cac154e78c098d14de5ba51cf9ad6c10c4187006eeb67b2b2c50a4440 + e904e8ca35ba4071edad77b404d2e8b8830c8d7452975598a2e070eee17afb46 + + 1528467025 + 2280 + 7429 + + + e86f1444bd807c0d5572e8459a87760babc6f399207f81627a6100a7efd769bc + 90c477a055753cfa1819601887d6e5f754629b2f4771d7e6c6eb0dffc5ac5b4e + + 1528467025 + 8490 + 122880 + 10 + + + f725aa4c6cc441b905246cbc159bc62e090ce655c65892df6988e4468d155162 + 25638cadb9b8f2681a3c1effb436d4f20ee645a4b162a6a3503df3b8178dee0b + + 1528467025 + 3476 + 28672 + 10 + + + 9a2de3d81cefc7d5f464f0a6b7494db74f0c65a6b8c62e6c7b084a30532181d4 + ba483e51dc3f3dc9269e4815a830c2c25b6cac8b4590b1466bdd1bfbaab38073 + + 1528467025 + 3329 + 24576 + 10 + + + 425cec0f040291008c346d22f9baea2594b5991d9b0f507d6349a6c905b7b82e + a8239b37c8f33f0850e440e0031c4117e532cb9aea3cb70796080ab1a8f9f80c + + 1531828718 + 636 + 4018 + + diff --git a/data/tests/modules/modules/_all/s390x/systemd-219-30.s390x.rpm b/data/tests/modules/modules/_all/s390x/systemd-219-30.s390x.rpm new file mode 100644 index 0000000..9db4ec5 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/systemd-219-30.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/s390x/systemd-233-3.s390x.rpm b/data/tests/modules/modules/_all/s390x/systemd-233-3.s390x.rpm new file mode 100644 index 0000000..181c876 Binary files /dev/null and b/data/tests/modules/modules/_all/s390x/systemd-233-3.s390x.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/base-runtime-f26-1.x86_64.yaml b/data/tests/modules/modules/_all/x86_64/base-runtime-f26-1.x86_64.yaml new file mode 100644 index 0000000..7ff39ad --- /dev/null +++ b/data/tests/modules/modules/_all/x86_64/base-runtime-f26-1.x86_64.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 1 + context: e3b0c442 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.x86_64 + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25-4.x86_64 + - filesystem-0:3.2-40.x86_64 + - glibc-0:2.25-4.x86_64 + - glibc-common-0:2.25-4.x86_64 + - glibc-debuginfo-common-0:2.25-4.x86_64 + - kernel-0:4.11.0-1.x86_64 + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.x86_64 + - systemd-0:233-3.x86_64 +... diff --git a/data/tests/modules/modules/_all/x86_64/base-runtime-f26-2.x86_64.yaml b/data/tests/modules/modules/_all/x86_64/base-runtime-f26-2.x86_64.yaml new file mode 100644 index 0000000..06d400c --- /dev/null +++ b/data/tests/modules/modules/_all/x86_64/base-runtime-f26-2.x86_64.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 2 + context: e3b0c442 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.x86_64 + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25.90-2.x86_64 + - filesystem-0:3.2-40.x86_64 + - glibc-0:2.25.90-2.x86_64 + - glibc-common-0:2.25.90-2.x86_64 + - glibc-debuginfo-common-0:2.25.90-2.x86_64 + - kernel-0:4.11.0-1.x86_64 + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.x86_64 + - systemd-0:233-3.x86_64 +... diff --git a/data/tests/modules/modules/_all/x86_64/base-runtime-rhel73-1.x86_64.yaml b/data/tests/modules/modules/_all/x86_64/base-runtime-rhel73-1.x86_64.yaml new file mode 100644 index 0000000..7b3838c --- /dev/null +++ b/data/tests/modules/modules/_all/x86_64/base-runtime-rhel73-1.x86_64.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: rhel73 + version: 1 + context: e3b0c442 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:10.0-7.noarch + - bash-0:4.2.46-21.x86_64 + - bash-doc-0:4.2.46-21.noarch + - dummy-nscd-0:2.17-157.x86_64 + - filesystem-0:3.2-21.x86_64 + - glibc-0:2.17-157.x86_64 + - glibc-common-0:2.17-157.x86_64 + - glibc-debuginfo-common-0:2.17-157.x86_64 + - kernel-0:3.10.0-514.x86_64 + - kernel-doc-0:3.10.0-514.noarch + - kernel-headers-0:3.10.0-514.x86_64 + - systemd-0:219-30.x86_64 +... diff --git a/data/tests/modules/modules/_all/x86_64/basesystem-10.0-7.noarch.rpm b/data/tests/modules/modules/_all/x86_64/basesystem-10.0-7.noarch.rpm new file mode 100644 index 0000000..9f1be1a Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/basesystem-10.0-7.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/_all/x86_64/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..1cbef5f Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/bash-4.2.46-21.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/bash-4.2.46-21.x86_64.rpm new file mode 100644 index 0000000..ab7e30d Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/bash-4.2.46-21.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/bash-4.4.12-2.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/bash-4.4.12-2.x86_64.rpm new file mode 100644 index 0000000..10b9963 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/bash-4.4.12-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/bash-doc-4.2.46-21.noarch.rpm b/data/tests/modules/modules/_all/x86_64/bash-doc-4.2.46-21.noarch.rpm new file mode 100644 index 0000000..320890d Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/bash-doc-4.2.46-21.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/_all/x86_64/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0a28ef5 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/dummy-nscd-2.17-157.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/dummy-nscd-2.17-157.x86_64.rpm new file mode 100644 index 0000000..dec61f5 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/dummy-nscd-2.17-157.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/dummy-nscd-2.25-4.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/dummy-nscd-2.25-4.x86_64.rpm new file mode 100644 index 0000000..6fe3040 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/dummy-nscd-2.25-4.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/dummy-nscd-2.25.90-2.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/dummy-nscd-2.25.90-2.x86_64.rpm new file mode 100644 index 0000000..e33680e Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/dummy-nscd-2.25.90-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/filesystem-3.2-21.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/filesystem-3.2-21.x86_64.rpm new file mode 100644 index 0000000..eca99c5 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/filesystem-3.2-21.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/filesystem-3.2-40.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/filesystem-3.2-40.x86_64.rpm new file mode 100644 index 0000000..4d65fac Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/filesystem-3.2-40.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/glibc-2.17-157.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/glibc-2.17-157.x86_64.rpm new file mode 100644 index 0000000..c152260 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/glibc-2.17-157.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/glibc-2.25-4.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/glibc-2.25-4.x86_64.rpm new file mode 100644 index 0000000..c824405 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/glibc-2.25-4.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/glibc-2.25.90-2.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/glibc-2.25.90-2.x86_64.rpm new file mode 100644 index 0000000..05091a6 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/glibc-2.25.90-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/glibc-common-2.17-157.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/glibc-common-2.17-157.x86_64.rpm new file mode 100644 index 0000000..ebba5b5 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/glibc-common-2.17-157.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/glibc-common-2.25-4.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/glibc-common-2.25-4.x86_64.rpm new file mode 100644 index 0000000..538d5e3 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/glibc-common-2.25-4.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/glibc-common-2.25.90-2.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/glibc-common-2.25.90-2.x86_64.rpm new file mode 100644 index 0000000..fc33f5b Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/glibc-common-2.25.90-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/glibc-debuginfo-common-2.17-157.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/glibc-debuginfo-common-2.17-157.x86_64.rpm new file mode 100644 index 0000000..c786bd4 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/glibc-debuginfo-common-2.17-157.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/glibc-debuginfo-common-2.25-4.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/glibc-debuginfo-common-2.25-4.x86_64.rpm new file mode 100644 index 0000000..f91ef93 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/glibc-debuginfo-common-2.25-4.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/glibc-debuginfo-common-2.25.90-2.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/glibc-debuginfo-common-2.25.90-2.x86_64.rpm new file mode 100644 index 0000000..7fb1060 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/glibc-debuginfo-common-2.25.90-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/grub2-2.02-0.40.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/grub2-2.02-0.40.x86_64.rpm new file mode 100644 index 0000000..5b55b07 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/grub2-2.02-0.40.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-2.2-1.x86_64.yaml b/data/tests/modules/modules/_all/x86_64/httpd-2.2-1.x86_64.yaml new file mode 100644 index 0000000..443aa4c --- /dev/null +++ b/data/tests/modules/modules/_all/x86_64/httpd-2.2-1.x86_64.yaml @@ -0,0 +1,32 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.2 + version: 1 + context: e3b0c442 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.2.15-59.x86_64 + - httpd-doc-0:2.2.15-59.x86_64 +... diff --git a/data/tests/modules/modules/_all/x86_64/httpd-2.2.10-1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-2.2.10-1.x86_64.rpm new file mode 100644 index 0000000..5ea8fd3 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-2.2.10-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-2.2.15-59.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-2.2.15-59.x86_64.rpm new file mode 100644 index 0000000..7e242e6 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-2.2.15-59.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-2.4-1.x86_64.yaml b/data/tests/modules/modules/_all/x86_64/httpd-2.4-1.x86_64.yaml new file mode 100644 index 0000000..e41bd31 --- /dev/null +++ b/data/tests/modules/modules/_all/x86_64/httpd-2.4-1.x86_64.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 1 + context: 3b6beaf8 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-7.x86_64 + - httpd-doc-0:2.4.25-7.x86_64 + - libnghttp2-0:1.21.1-1.x86_64 +... diff --git a/data/tests/modules/modules/_all/x86_64/httpd-2.4-2.x86_64.yaml b/data/tests/modules/modules/_all/x86_64/httpd-2.4-2.x86_64.yaml new file mode 100644 index 0000000..e49983e --- /dev/null +++ b/data/tests/modules/modules/_all/x86_64/httpd-2.4-2.x86_64.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 2 + context: 3b6beaf8 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-8.x86_64 + - httpd-doc-0:2.4.25-8.x86_64 + - libnghttp2-0:1.21.1-1.x86_64 +... diff --git a/data/tests/modules/modules/_all/x86_64/httpd-2.4.25-7.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-2.4.25-7.x86_64.rpm new file mode 100644 index 0000000..0c25bca Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-2.4.25-7.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-2.4.25-8.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-2.4.25-8.x86_64.rpm new file mode 100644 index 0000000..b20cea6 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-2.4.25-8.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-doc-2.2.10-1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-doc-2.2.10-1.x86_64.rpm new file mode 100644 index 0000000..ef00e94 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-doc-2.2.10-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-doc-2.2.15-59.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-doc-2.2.15-59.x86_64.rpm new file mode 100644 index 0000000..09ef1ba Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-doc-2.2.15-59.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-doc-2.4.25-7.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-doc-2.4.25-7.x86_64.rpm new file mode 100644 index 0000000..4e23d62 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-doc-2.4.25-7.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-doc-2.4.25-8.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-doc-2.4.25-8.x86_64.rpm new file mode 100644 index 0000000..cfdbc3c Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-doc-2.4.25-8.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-provides-name-3.0-1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-provides-name-3.0-1.x86_64.rpm new file mode 100644 index 0000000..9bf3498 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-provides-name-3.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-provides-name-doc-3.0-1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-provides-name-doc-3.0-1.x86_64.rpm new file mode 100644 index 0000000..b476083 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-provides-name-doc-3.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-provides-name-version-release-3.0-1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-provides-name-version-release-3.0-1.x86_64.rpm new file mode 100644 index 0000000..38136f2 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-provides-name-version-release-3.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd-provides-name-version-release-doc-3.0-1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/httpd-provides-name-version-release-doc-3.0-1.x86_64.rpm new file mode 100644 index 0000000..d5abba6 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/httpd-provides-name-version-release-doc-3.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/httpd.yaml b/data/tests/modules/modules/_all/x86_64/httpd.yaml new file mode 100644 index 0000000..58b1bda --- /dev/null +++ b/data/tests/modules/modules/_all/x86_64/httpd.yaml @@ -0,0 +1,7 @@ +document: modulemd-defaults +version: 1 +data: + module: httpd + stream: 2.4 + profiles: + 2.4: [default] diff --git a/data/tests/modules/modules/_all/x86_64/kernel-3.10.0-514.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/kernel-3.10.0-514.x86_64.rpm new file mode 100644 index 0000000..ea74310 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/kernel-3.10.0-514.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/kernel-4.11.0-1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/kernel-4.11.0-1.x86_64.rpm new file mode 100644 index 0000000..88535c1 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/kernel-4.11.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/kernel-doc-3.10.0-514.noarch.rpm b/data/tests/modules/modules/_all/x86_64/kernel-doc-3.10.0-514.noarch.rpm new file mode 100644 index 0000000..f7a3b13 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/kernel-doc-3.10.0-514.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/_all/x86_64/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..4e174bb Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/kernel-headers-3.10.0-514.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/kernel-headers-3.10.0-514.x86_64.rpm new file mode 100644 index 0000000..d6a5b3d Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/kernel-headers-3.10.0-514.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/kernel-headers-4.11.0-1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/kernel-headers-4.11.0-1.x86_64.rpm new file mode 100644 index 0000000..2e7873d Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/kernel-headers-4.11.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/libnghttp2-1.21.1-1.1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/libnghttp2-1.21.1-1.1.x86_64.rpm new file mode 100644 index 0000000..325d7d1 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/libnghttp2-1.21.1-1.1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/libnghttp2-1.21.1-1.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/libnghttp2-1.21.1-1.x86_64.rpm new file mode 100644 index 0000000..545ad1a Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/libnghttp2-1.21.1-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/repodata/02517771d46f54572e172605d193e70f158fc88db676cd7d02158736a8f8c7f8-modules.yaml.gz b/data/tests/modules/modules/_all/x86_64/repodata/02517771d46f54572e172605d193e70f158fc88db676cd7d02158736a8f8c7f8-modules.yaml.gz new file mode 100644 index 0000000..80ac6ab Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/repodata/02517771d46f54572e172605d193e70f158fc88db676cd7d02158736a8f8c7f8-modules.yaml.gz differ diff --git a/data/tests/modules/modules/_all/x86_64/repodata/02dd29c9b3c78f6d04f8853f7833cd63947eb3ef877917ef9a96839889d9f98f-other.xml.gz b/data/tests/modules/modules/_all/x86_64/repodata/02dd29c9b3c78f6d04f8853f7833cd63947eb3ef877917ef9a96839889d9f98f-other.xml.gz new file mode 100644 index 0000000..1805f5e Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/repodata/02dd29c9b3c78f6d04f8853f7833cd63947eb3ef877917ef9a96839889d9f98f-other.xml.gz differ diff --git a/data/tests/modules/modules/_all/x86_64/repodata/7b20d2285e9d41d2f96f67029a28d11249485ad787606017bd855a3263d2209b-primary.xml.gz b/data/tests/modules/modules/_all/x86_64/repodata/7b20d2285e9d41d2f96f67029a28d11249485ad787606017bd855a3263d2209b-primary.xml.gz new file mode 100644 index 0000000..9888cce Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/repodata/7b20d2285e9d41d2f96f67029a28d11249485ad787606017bd855a3263d2209b-primary.xml.gz differ diff --git a/data/tests/modules/modules/_all/x86_64/repodata/a523bcf4140225dbb5a17cfc86ad198f02722913f219dd50d29eb6465acf8ca1-filelists.sqlite.bz2 b/data/tests/modules/modules/_all/x86_64/repodata/a523bcf4140225dbb5a17cfc86ad198f02722913f219dd50d29eb6465acf8ca1-filelists.sqlite.bz2 new file mode 100644 index 0000000..82c62f9 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/repodata/a523bcf4140225dbb5a17cfc86ad198f02722913f219dd50d29eb6465acf8ca1-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_all/x86_64/repodata/c66ef9ad85b472dd8bfd68105fc5e2669b0ae73f18fd39ae6eb046665857feba-other.sqlite.bz2 b/data/tests/modules/modules/_all/x86_64/repodata/c66ef9ad85b472dd8bfd68105fc5e2669b0ae73f18fd39ae6eb046665857feba-other.sqlite.bz2 new file mode 100644 index 0000000..fb6e6ea Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/repodata/c66ef9ad85b472dd8bfd68105fc5e2669b0ae73f18fd39ae6eb046665857feba-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_all/x86_64/repodata/d36cc059f1588d02469a7259af1a2a3b7764c2c039483b9c2fb8f61ac766ee7c-primary.sqlite.bz2 b/data/tests/modules/modules/_all/x86_64/repodata/d36cc059f1588d02469a7259af1a2a3b7764c2c039483b9c2fb8f61ac766ee7c-primary.sqlite.bz2 new file mode 100644 index 0000000..a34b007 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/repodata/d36cc059f1588d02469a7259af1a2a3b7764c2c039483b9c2fb8f61ac766ee7c-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_all/x86_64/repodata/fca8343fe9e52b62cbf4b64a0730ffb546bda5542286a884da54c1db5e522943-filelists.xml.gz b/data/tests/modules/modules/_all/x86_64/repodata/fca8343fe9e52b62cbf4b64a0730ffb546bda5542286a884da54c1db5e522943-filelists.xml.gz new file mode 100644 index 0000000..6a52c7e Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/repodata/fca8343fe9e52b62cbf4b64a0730ffb546bda5542286a884da54c1db5e522943-filelists.xml.gz differ diff --git a/data/tests/modules/modules/_all/x86_64/repodata/repomd.xml b/data/tests/modules/modules/_all/x86_64/repodata/repomd.xml new file mode 100644 index 0000000..24df570 --- /dev/null +++ b/data/tests/modules/modules/_all/x86_64/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467025 + + 7b20d2285e9d41d2f96f67029a28d11249485ad787606017bd855a3263d2209b + 2f9aa5b9644222e2d51c14953d49027543349966552b583281ace7b60f349e66 + + 1528467025 + 4383 + 46479 + + + fca8343fe9e52b62cbf4b64a0730ffb546bda5542286a884da54c1db5e522943 + 43210e3a275ec3f84f30e2138090eabf86258848a09e08be2234eb1e5e02827c + + 1528467025 + 2319 + 7617 + + + 02dd29c9b3c78f6d04f8853f7833cd63947eb3ef877917ef9a96839889d9f98f + 219765d1a1741fbfc7fbf261632164db29977edc231294e526c472d905cf648d + + 1528467025 + 2276 + 7466 + + + d36cc059f1588d02469a7259af1a2a3b7764c2c039483b9c2fb8f61ac766ee7c + 082dbb6a0b9389adc836b4c84a06ee4ff5fee642c158f3541c690641d47a99fe + + 1528467025 + 8510 + 122880 + 10 + + + a523bcf4140225dbb5a17cfc86ad198f02722913f219dd50d29eb6465acf8ca1 + 8c3c8ae9109b192c9a4212969cc7bec2cc0d59b8b4ebcd4b71af77eb72e375b7 + + 1528467025 + 3446 + 28672 + 10 + + + c66ef9ad85b472dd8bfd68105fc5e2669b0ae73f18fd39ae6eb046665857feba + 4a0e87dacee0b20e8dd10c132d7c25d580bbe7c844b02e0ffbc04209fc8af7d4 + + 1528467025 + 3316 + 24576 + 10 + + + 02517771d46f54572e172605d193e70f158fc88db676cd7d02158736a8f8c7f8 + 01eaf5e01c53f7bf36c6654ba6ee9624720edbd0cb32bbd53654464a8be91242 + + 1531828718 + 638 + 4059 + + diff --git a/data/tests/modules/modules/_all/x86_64/systemd-219-30.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/systemd-219-30.x86_64.rpm new file mode 100644 index 0000000..ca82d23 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/systemd-219-30.x86_64.rpm differ diff --git a/data/tests/modules/modules/_all/x86_64/systemd-233-3.x86_64.rpm b/data/tests/modules/modules/_all/x86_64/systemd-233-3.x86_64.rpm new file mode 100644 index 0000000..e338e41 Binary files /dev/null and b/data/tests/modules/modules/_all/x86_64/systemd-233-3.x86_64.rpm differ diff --git a/data/tests/modules/modules/_non-modular/i686/grub2-2.02-0.40.i686.rpm b/data/tests/modules/modules/_non-modular/i686/grub2-2.02-0.40.i686.rpm new file mode 100644 index 0000000..8475bef Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/grub2-2.02-0.40.i686.rpm differ diff --git a/data/tests/modules/modules/_non-modular/i686/httpd-2.2.10-1.i686.rpm b/data/tests/modules/modules/_non-modular/i686/httpd-2.2.10-1.i686.rpm new file mode 100644 index 0000000..a4768bd Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/httpd-2.2.10-1.i686.rpm differ diff --git a/data/tests/modules/modules/_non-modular/i686/httpd-doc-2.2.10-1.i686.rpm b/data/tests/modules/modules/_non-modular/i686/httpd-doc-2.2.10-1.i686.rpm new file mode 100644 index 0000000..1d8fd7f Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/httpd-doc-2.2.10-1.i686.rpm differ diff --git a/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-3.0-1.i686.rpm b/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-3.0-1.i686.rpm new file mode 100644 index 0000000..db1c66b Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-3.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-doc-3.0-1.i686.rpm b/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-doc-3.0-1.i686.rpm new file mode 100644 index 0000000..332055f Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-doc-3.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-version-release-3.0-1.i686.rpm b/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-version-release-3.0-1.i686.rpm new file mode 100644 index 0000000..f7e0d42 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-version-release-3.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-version-release-doc-3.0-1.i686.rpm b/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-version-release-doc-3.0-1.i686.rpm new file mode 100644 index 0000000..7e23e44 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/httpd-provides-name-version-release-doc-3.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/_non-modular/i686/libnghttp2-1.21.1-1.1.i686.rpm b/data/tests/modules/modules/_non-modular/i686/libnghttp2-1.21.1-1.1.i686.rpm new file mode 100644 index 0000000..b5d34b0 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/libnghttp2-1.21.1-1.1.i686.rpm differ diff --git a/data/tests/modules/modules/_non-modular/i686/repodata/096ae18f96184669091bda3099fad01c34f6979ef0cf845e4d16a2957c866d61-other.sqlite.bz2 b/data/tests/modules/modules/_non-modular/i686/repodata/096ae18f96184669091bda3099fad01c34f6979ef0cf845e4d16a2957c866d61-other.sqlite.bz2 new file mode 100644 index 0000000..8531bb6 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/repodata/096ae18f96184669091bda3099fad01c34f6979ef0cf845e4d16a2957c866d61-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_non-modular/i686/repodata/3d5f972e2bc031327f700070ea2ecaea8683cab617e076aefca14ba2a498f65b-filelists.xml.gz b/data/tests/modules/modules/_non-modular/i686/repodata/3d5f972e2bc031327f700070ea2ecaea8683cab617e076aefca14ba2a498f65b-filelists.xml.gz new file mode 100644 index 0000000..fd3adc6 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/repodata/3d5f972e2bc031327f700070ea2ecaea8683cab617e076aefca14ba2a498f65b-filelists.xml.gz differ diff --git a/data/tests/modules/modules/_non-modular/i686/repodata/5dfb619f487431ed8697b8351dfc08b8bd1d523a17ea44ce2a19a0a308c04c16-primary.sqlite.bz2 b/data/tests/modules/modules/_non-modular/i686/repodata/5dfb619f487431ed8697b8351dfc08b8bd1d523a17ea44ce2a19a0a308c04c16-primary.sqlite.bz2 new file mode 100644 index 0000000..a785671 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/repodata/5dfb619f487431ed8697b8351dfc08b8bd1d523a17ea44ce2a19a0a308c04c16-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_non-modular/i686/repodata/77cc6a35562eea13f53bf8959047662c3e69b5b8a073a26ef456fb871ce193df-primary.xml.gz b/data/tests/modules/modules/_non-modular/i686/repodata/77cc6a35562eea13f53bf8959047662c3e69b5b8a073a26ef456fb871ce193df-primary.xml.gz new file mode 100644 index 0000000..70077c7 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/repodata/77cc6a35562eea13f53bf8959047662c3e69b5b8a073a26ef456fb871ce193df-primary.xml.gz differ diff --git a/data/tests/modules/modules/_non-modular/i686/repodata/861d4c320499af7bb56d516e6045bd94690fe7227d4734892ad4f8b67223a9f3-other.xml.gz b/data/tests/modules/modules/_non-modular/i686/repodata/861d4c320499af7bb56d516e6045bd94690fe7227d4734892ad4f8b67223a9f3-other.xml.gz new file mode 100644 index 0000000..bdd1ed3 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/repodata/861d4c320499af7bb56d516e6045bd94690fe7227d4734892ad4f8b67223a9f3-other.xml.gz differ diff --git a/data/tests/modules/modules/_non-modular/i686/repodata/ae880ec5a096a7e64884ea29c570629f60571171dce67d9255aa914d8e392312-filelists.sqlite.bz2 b/data/tests/modules/modules/_non-modular/i686/repodata/ae880ec5a096a7e64884ea29c570629f60571171dce67d9255aa914d8e392312-filelists.sqlite.bz2 new file mode 100644 index 0000000..4940f89 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/i686/repodata/ae880ec5a096a7e64884ea29c570629f60571171dce67d9255aa914d8e392312-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_non-modular/i686/repodata/repomd.xml b/data/tests/modules/modules/_non-modular/i686/repodata/repomd.xml new file mode 100644 index 0000000..48ccc0c --- /dev/null +++ b/data/tests/modules/modules/_non-modular/i686/repodata/repomd.xml @@ -0,0 +1,55 @@ + + + 1528467023 + + 77cc6a35562eea13f53bf8959047662c3e69b5b8a073a26ef456fb871ce193df + c89015ed41d05a49cd96f8c919e52abb67b433f8cb45658770e8c1bfca866cdc + + 1528467023 + 1316 + 9123 + + + 3d5f972e2bc031327f700070ea2ecaea8683cab617e076aefca14ba2a498f65b + 05bdcce7262b9a74a5a780d4eb8d97031013da37c01c55a04bc5e9cf95f3e20b + + 1528467023 + 592 + 1525 + + + 861d4c320499af7bb56d516e6045bd94690fe7227d4734892ad4f8b67223a9f3 + 76615058081b8f843daa015082bdb7197118fb5e4a7c12d0ce53b8637eb048f6 + + 1528467023 + 591 + 1521 + + + 5dfb619f487431ed8697b8351dfc08b8bd1d523a17ea44ce2a19a0a308c04c16 + 65279d4fc5c5b6c9ad8c2b2f35257176720a8cb9dcd360b98f5fe7defca39d84 + + 1528467023 + 3175 + 106496 + 10 + + + ae880ec5a096a7e64884ea29c570629f60571171dce67d9255aa914d8e392312 + a66dba7bc865fadc3478db1699616e8fcbe7206a89274fee771861d1ab23bacc + + 1528467023 + 1170 + 28672 + 10 + + + 096ae18f96184669091bda3099fad01c34f6979ef0cf845e4d16a2957c866d61 + 08c2da0d5990cf0a0851e5a609d722125e6254a15fdd2c6aeec7591ed57af5c9 + + 1528467023 + 1149 + 24576 + 10 + + diff --git a/data/tests/modules/modules/_non-modular/s390x/grub2-2.02-0.40.s390x.rpm b/data/tests/modules/modules/_non-modular/s390x/grub2-2.02-0.40.s390x.rpm new file mode 100644 index 0000000..a1d758b Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/grub2-2.02-0.40.s390x.rpm differ diff --git a/data/tests/modules/modules/_non-modular/s390x/httpd-2.2.10-1.s390x.rpm b/data/tests/modules/modules/_non-modular/s390x/httpd-2.2.10-1.s390x.rpm new file mode 100644 index 0000000..06fb93e Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/httpd-2.2.10-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_non-modular/s390x/httpd-doc-2.2.10-1.s390x.rpm b/data/tests/modules/modules/_non-modular/s390x/httpd-doc-2.2.10-1.s390x.rpm new file mode 100644 index 0000000..63d1cfd Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/httpd-doc-2.2.10-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-3.0-1.s390x.rpm b/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-3.0-1.s390x.rpm new file mode 100644 index 0000000..3c174f7 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-3.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-doc-3.0-1.s390x.rpm b/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-doc-3.0-1.s390x.rpm new file mode 100644 index 0000000..80fce63 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-doc-3.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-version-release-3.0-1.s390x.rpm b/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-version-release-3.0-1.s390x.rpm new file mode 100644 index 0000000..cff2578 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-version-release-3.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-version-release-doc-3.0-1.s390x.rpm b/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-version-release-doc-3.0-1.s390x.rpm new file mode 100644 index 0000000..d9ad6ca Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/httpd-provides-name-version-release-doc-3.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/_non-modular/s390x/libnghttp2-1.21.1-1.1.s390x.rpm b/data/tests/modules/modules/_non-modular/s390x/libnghttp2-1.21.1-1.1.s390x.rpm new file mode 100644 index 0000000..dcd8a03 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/libnghttp2-1.21.1-1.1.s390x.rpm differ diff --git a/data/tests/modules/modules/_non-modular/s390x/repodata/01a1ea0f98f45165e5469df1d5d70d32fe2d2264943cafb6b24e78041ba5c9db-other.sqlite.bz2 b/data/tests/modules/modules/_non-modular/s390x/repodata/01a1ea0f98f45165e5469df1d5d70d32fe2d2264943cafb6b24e78041ba5c9db-other.sqlite.bz2 new file mode 100644 index 0000000..bae5f0a Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/repodata/01a1ea0f98f45165e5469df1d5d70d32fe2d2264943cafb6b24e78041ba5c9db-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_non-modular/s390x/repodata/5cc44c658d10d38fadf6bf8ad71668865adefab762fd216430e64331a55dafdf-other.xml.gz b/data/tests/modules/modules/_non-modular/s390x/repodata/5cc44c658d10d38fadf6bf8ad71668865adefab762fd216430e64331a55dafdf-other.xml.gz new file mode 100644 index 0000000..9cdef50 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/repodata/5cc44c658d10d38fadf6bf8ad71668865adefab762fd216430e64331a55dafdf-other.xml.gz differ diff --git a/data/tests/modules/modules/_non-modular/s390x/repodata/76ca04b0198da7724c75b7360912e9dcddf68499a4c183a487cdc25a336fec6e-filelists.sqlite.bz2 b/data/tests/modules/modules/_non-modular/s390x/repodata/76ca04b0198da7724c75b7360912e9dcddf68499a4c183a487cdc25a336fec6e-filelists.sqlite.bz2 new file mode 100644 index 0000000..4a1d58f Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/repodata/76ca04b0198da7724c75b7360912e9dcddf68499a4c183a487cdc25a336fec6e-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_non-modular/s390x/repodata/935f9df4746c1674c5a07cd2790f4d1ec31a54da08868586cba1fb1c1c428d52-primary.xml.gz b/data/tests/modules/modules/_non-modular/s390x/repodata/935f9df4746c1674c5a07cd2790f4d1ec31a54da08868586cba1fb1c1c428d52-primary.xml.gz new file mode 100644 index 0000000..b652a79 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/repodata/935f9df4746c1674c5a07cd2790f4d1ec31a54da08868586cba1fb1c1c428d52-primary.xml.gz differ diff --git a/data/tests/modules/modules/_non-modular/s390x/repodata/acde40c6b5b640abc461dfa52da1573940d8b309b1d9096a8f822fa71054a57f-primary.sqlite.bz2 b/data/tests/modules/modules/_non-modular/s390x/repodata/acde40c6b5b640abc461dfa52da1573940d8b309b1d9096a8f822fa71054a57f-primary.sqlite.bz2 new file mode 100644 index 0000000..b5fb38f Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/repodata/acde40c6b5b640abc461dfa52da1573940d8b309b1d9096a8f822fa71054a57f-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_non-modular/s390x/repodata/e8f85878c5901a3c02e5373fcefb041a80dc8cca78e684592666781729452eb1-filelists.xml.gz b/data/tests/modules/modules/_non-modular/s390x/repodata/e8f85878c5901a3c02e5373fcefb041a80dc8cca78e684592666781729452eb1-filelists.xml.gz new file mode 100644 index 0000000..db21488 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/s390x/repodata/e8f85878c5901a3c02e5373fcefb041a80dc8cca78e684592666781729452eb1-filelists.xml.gz differ diff --git a/data/tests/modules/modules/_non-modular/s390x/repodata/repomd.xml b/data/tests/modules/modules/_non-modular/s390x/repodata/repomd.xml new file mode 100644 index 0000000..830e345 --- /dev/null +++ b/data/tests/modules/modules/_non-modular/s390x/repodata/repomd.xml @@ -0,0 +1,55 @@ + + + 1528467023 + + 935f9df4746c1674c5a07cd2790f4d1ec31a54da08868586cba1fb1c1c428d52 + 10081cc658bcfa3df559fc19be3dbdbb943f09d9c8b63f19f524f54b2b8cd7e7 + + 1528467024 + 1322 + 9147 + + + e8f85878c5901a3c02e5373fcefb041a80dc8cca78e684592666781729452eb1 + 17a856ae9f9704f2391e502a4d57fcc480ff13cf2afe7a6b37c92a91b6ef26aa + + 1528467024 + 598 + 1533 + + + 5cc44c658d10d38fadf6bf8ad71668865adefab762fd216430e64331a55dafdf + 7a54cd2ed40eabdb5b16c3e688f810c626333a080f3cb9c85055b050695dbb06 + + 1528467024 + 598 + 1529 + + + acde40c6b5b640abc461dfa52da1573940d8b309b1d9096a8f822fa71054a57f + 173952ef2745fba25e88e605d908e2f73d78362c097a4929da0f6082aa093044 + + 1528467024 + 3161 + 106496 + 10 + + + 76ca04b0198da7724c75b7360912e9dcddf68499a4c183a487cdc25a336fec6e + fa0ee375be1dc2281aa4fa2209115d219af821beef09b2ac66c6c0ef61020dfe + + 1528467024 + 1156 + 28672 + 10 + + + 01a1ea0f98f45165e5469df1d5d70d32fe2d2264943cafb6b24e78041ba5c9db + cd9edb5549e264d16b24c84076478651c8b146a9128414b344d9fba41832c0e3 + + 1528467024 + 1156 + 24576 + 10 + + diff --git a/data/tests/modules/modules/_non-modular/src/grub2-2.02-0.40.src.rpm b/data/tests/modules/modules/_non-modular/src/grub2-2.02-0.40.src.rpm new file mode 100644 index 0000000..4f6399b Binary files /dev/null and b/data/tests/modules/modules/_non-modular/src/grub2-2.02-0.40.src.rpm differ diff --git a/data/tests/modules/modules/_non-modular/src/httpd-2.2.10-1.src.rpm b/data/tests/modules/modules/_non-modular/src/httpd-2.2.10-1.src.rpm new file mode 100644 index 0000000..0689969 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/src/httpd-2.2.10-1.src.rpm differ diff --git a/data/tests/modules/modules/_non-modular/src/httpd-provides-name-3.0-1.src.rpm b/data/tests/modules/modules/_non-modular/src/httpd-provides-name-3.0-1.src.rpm new file mode 100644 index 0000000..f71bb6e Binary files /dev/null and b/data/tests/modules/modules/_non-modular/src/httpd-provides-name-3.0-1.src.rpm differ diff --git a/data/tests/modules/modules/_non-modular/src/httpd-provides-name-version-release-3.0-1.src.rpm b/data/tests/modules/modules/_non-modular/src/httpd-provides-name-version-release-3.0-1.src.rpm new file mode 100644 index 0000000..90e1dac Binary files /dev/null and b/data/tests/modules/modules/_non-modular/src/httpd-provides-name-version-release-3.0-1.src.rpm differ diff --git a/data/tests/modules/modules/_non-modular/src/libnghttp2-1.21.1-1.1.src.rpm b/data/tests/modules/modules/_non-modular/src/libnghttp2-1.21.1-1.1.src.rpm new file mode 100644 index 0000000..12e73b0 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/src/libnghttp2-1.21.1-1.1.src.rpm differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/grub2-2.02-0.40.x86_64.rpm b/data/tests/modules/modules/_non-modular/x86_64/grub2-2.02-0.40.x86_64.rpm new file mode 100644 index 0000000..5b55b07 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/grub2-2.02-0.40.x86_64.rpm differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/httpd-2.2.10-1.x86_64.rpm b/data/tests/modules/modules/_non-modular/x86_64/httpd-2.2.10-1.x86_64.rpm new file mode 100644 index 0000000..5ea8fd3 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/httpd-2.2.10-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/httpd-doc-2.2.10-1.x86_64.rpm b/data/tests/modules/modules/_non-modular/x86_64/httpd-doc-2.2.10-1.x86_64.rpm new file mode 100644 index 0000000..ef00e94 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/httpd-doc-2.2.10-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-3.0-1.x86_64.rpm b/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-3.0-1.x86_64.rpm new file mode 100644 index 0000000..9bf3498 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-3.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-doc-3.0-1.x86_64.rpm b/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-doc-3.0-1.x86_64.rpm new file mode 100644 index 0000000..b476083 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-doc-3.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-version-release-3.0-1.x86_64.rpm b/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-version-release-3.0-1.x86_64.rpm new file mode 100644 index 0000000..38136f2 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-version-release-3.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-version-release-doc-3.0-1.x86_64.rpm b/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-version-release-doc-3.0-1.x86_64.rpm new file mode 100644 index 0000000..d5abba6 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/httpd-provides-name-version-release-doc-3.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/libnghttp2-1.21.1-1.1.x86_64.rpm b/data/tests/modules/modules/_non-modular/x86_64/libnghttp2-1.21.1-1.1.x86_64.rpm new file mode 100644 index 0000000..325d7d1 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/libnghttp2-1.21.1-1.1.x86_64.rpm differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/repodata/02551ec5b2a6acabac4e4361ec903c7802992c7dfa4eb9f7bc0ab57a929d6bd4-other.xml.gz b/data/tests/modules/modules/_non-modular/x86_64/repodata/02551ec5b2a6acabac4e4361ec903c7802992c7dfa4eb9f7bc0ab57a929d6bd4-other.xml.gz new file mode 100644 index 0000000..81769f5 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/repodata/02551ec5b2a6acabac4e4361ec903c7802992c7dfa4eb9f7bc0ab57a929d6bd4-other.xml.gz differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/repodata/1b8d7f694316cdbec76d6c73bc57fb21e2fc3c61cc1e9fa141ed8b5597c43064-filelists.xml.gz b/data/tests/modules/modules/_non-modular/x86_64/repodata/1b8d7f694316cdbec76d6c73bc57fb21e2fc3c61cc1e9fa141ed8b5597c43064-filelists.xml.gz new file mode 100644 index 0000000..2642c51 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/repodata/1b8d7f694316cdbec76d6c73bc57fb21e2fc3c61cc1e9fa141ed8b5597c43064-filelists.xml.gz differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/repodata/41385c9995c56b5c0b3bb1fbc467a7574a4fe135c87141b332931c66ad8a2b5a-filelists.sqlite.bz2 b/data/tests/modules/modules/_non-modular/x86_64/repodata/41385c9995c56b5c0b3bb1fbc467a7574a4fe135c87141b332931c66ad8a2b5a-filelists.sqlite.bz2 new file mode 100644 index 0000000..047ee3d Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/repodata/41385c9995c56b5c0b3bb1fbc467a7574a4fe135c87141b332931c66ad8a2b5a-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/repodata/6babe0569d363520bb15614564ebe1f650a7e6a9954d4495aa95ab6a095d0407-primary.sqlite.bz2 b/data/tests/modules/modules/_non-modular/x86_64/repodata/6babe0569d363520bb15614564ebe1f650a7e6a9954d4495aa95ab6a095d0407-primary.sqlite.bz2 new file mode 100644 index 0000000..70153c3 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/repodata/6babe0569d363520bb15614564ebe1f650a7e6a9954d4495aa95ab6a095d0407-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/repodata/76753a7f9105e5ed8337991367a498ba6843ebe3f0778b9708aab2c4188f87d2-primary.xml.gz b/data/tests/modules/modules/_non-modular/x86_64/repodata/76753a7f9105e5ed8337991367a498ba6843ebe3f0778b9708aab2c4188f87d2-primary.xml.gz new file mode 100644 index 0000000..6f79b78 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/repodata/76753a7f9105e5ed8337991367a498ba6843ebe3f0778b9708aab2c4188f87d2-primary.xml.gz differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/repodata/93ee02e99edca2f3d0bf9181e3db2a63373114e8b947ef62608fb04a4a1bc735-other.sqlite.bz2 b/data/tests/modules/modules/_non-modular/x86_64/repodata/93ee02e99edca2f3d0bf9181e3db2a63373114e8b947ef62608fb04a4a1bc735-other.sqlite.bz2 new file mode 100644 index 0000000..1d6c996 Binary files /dev/null and b/data/tests/modules/modules/_non-modular/x86_64/repodata/93ee02e99edca2f3d0bf9181e3db2a63373114e8b947ef62608fb04a4a1bc735-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/_non-modular/x86_64/repodata/repomd.xml b/data/tests/modules/modules/_non-modular/x86_64/repodata/repomd.xml new file mode 100644 index 0000000..af0b6a1 --- /dev/null +++ b/data/tests/modules/modules/_non-modular/x86_64/repodata/repomd.xml @@ -0,0 +1,55 @@ + + + 1528467023 + + 76753a7f9105e5ed8337991367a498ba6843ebe3f0778b9708aab2c4188f87d2 + 722c2ef52c5a3b34a7c688d557c61e685525279b32702ce37e779834c1064deb + + 1528467023 + 1322 + 9155 + + + 1b8d7f694316cdbec76d6c73bc57fb21e2fc3c61cc1e9fa141ed8b5597c43064 + 76f894e8e29350610479b16b7755aecbe680dc865b93ea35b746a6d78d7e6b27 + + 1528467023 + 596 + 1541 + + + 02551ec5b2a6acabac4e4361ec903c7802992c7dfa4eb9f7bc0ab57a929d6bd4 + 914ba76d58ddd99ce1caa75b3cd650be727f0484ccfcd5aa020028e12aff0e60 + + 1528467023 + 594 + 1537 + + + 6babe0569d363520bb15614564ebe1f650a7e6a9954d4495aa95ab6a095d0407 + cd23129b3ada6f5036dfa2e319d41405d2281bb4e69756e0ba1c99048f983161 + + 1528467023 + 3179 + 106496 + 10 + + + 41385c9995c56b5c0b3bb1fbc467a7574a4fe135c87141b332931c66ad8a2b5a + 703dde684d97a69fcae5fb79870bcbe41e37e8459332e2b774c7a68aae571e38 + + 1528467023 + 1166 + 28672 + 10 + + + 93ee02e99edca2f3d0bf9181e3db2a63373114e8b947ef62608fb04a4a1bc735 + 3924f3f553fcc0581f3507d9a5d4fdd2577597ae9de2a53c486203710a7744fb + + 1528467023 + 1165 + 24576 + 10 + + diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/base-runtime-f26-1.i686.yaml b/data/tests/modules/modules/base-runtime-f26-1/i686/base-runtime-f26-1.i686.yaml new file mode 100644 index 0000000..8a73098 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-1/i686/base-runtime-f26-1.i686.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 1 + context: e3b0c442 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.i686 + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25-4.i686 + - filesystem-0:3.2-40.i686 + - glibc-0:2.25-4.i686 + - glibc-common-0:2.25-4.i686 + - glibc-debuginfo-common-0:2.25-4.i686 + - kernel-0:4.11.0-1.i686 + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.i686 + - systemd-0:233-3.i686 +... diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..f9cb284 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/bash-4.4.12-2.i686.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/bash-4.4.12-2.i686.rpm new file mode 100644 index 0000000..9d203e3 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/bash-4.4.12-2.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0ea2982 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/dummy-nscd-2.25-4.i686.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/dummy-nscd-2.25-4.i686.rpm new file mode 100644 index 0000000..78310d5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/dummy-nscd-2.25-4.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/filesystem-3.2-40.i686.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/filesystem-3.2-40.i686.rpm new file mode 100644 index 0000000..7746662 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/filesystem-3.2-40.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/glibc-2.25-4.i686.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/glibc-2.25-4.i686.rpm new file mode 100644 index 0000000..adf7eb8 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/glibc-2.25-4.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/glibc-common-2.25-4.i686.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/glibc-common-2.25-4.i686.rpm new file mode 100644 index 0000000..1278fd8 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/glibc-common-2.25-4.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/glibc-debuginfo-common-2.25-4.i686.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/glibc-debuginfo-common-2.25-4.i686.rpm new file mode 100644 index 0000000..7946ac2 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/glibc-debuginfo-common-2.25-4.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/kernel-4.11.0-1.i686.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/kernel-4.11.0-1.i686.rpm new file mode 100644 index 0000000..b5b60d7 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/kernel-4.11.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..7af15eb Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/kernel-headers-4.11.0-1.i686.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/kernel-headers-4.11.0-1.i686.rpm new file mode 100644 index 0000000..ee404a1 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/kernel-headers-4.11.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/0bd99465a38e120f2473242cad12bfb3b772b24b8ecae39bffbd9cdef9d11f71-filelists.xml.gz b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/0bd99465a38e120f2473242cad12bfb3b772b24b8ecae39bffbd9cdef9d11f71-filelists.xml.gz new file mode 100644 index 0000000..154ebed Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/0bd99465a38e120f2473242cad12bfb3b772b24b8ecae39bffbd9cdef9d11f71-filelists.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/290e9c7ad54ffb0267d799c6d5e5f6f0adaeaffdd79f9a3a87a2deb6e676cea7-modules.yaml.gz b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/290e9c7ad54ffb0267d799c6d5e5f6f0adaeaffdd79f9a3a87a2deb6e676cea7-modules.yaml.gz new file mode 100644 index 0000000..ae374c3 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/290e9c7ad54ffb0267d799c6d5e5f6f0adaeaffdd79f9a3a87a2deb6e676cea7-modules.yaml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/5da22eedca922651c9d71f60ddec76008be605232430ebf7eac1c98d73e5a191-primary.xml.gz b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/5da22eedca922651c9d71f60ddec76008be605232430ebf7eac1c98d73e5a191-primary.xml.gz new file mode 100644 index 0000000..41eb51f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/5da22eedca922651c9d71f60ddec76008be605232430ebf7eac1c98d73e5a191-primary.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/9b9b45a44325ff1cbfa5021c8cfadad7638397c07c2cba4ec4862e9a20fff668-other.xml.gz b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/9b9b45a44325ff1cbfa5021c8cfadad7638397c07c2cba4ec4862e9a20fff668-other.xml.gz new file mode 100644 index 0000000..872a48b Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/9b9b45a44325ff1cbfa5021c8cfadad7638397c07c2cba4ec4862e9a20fff668-other.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/b5cc02335c9184dbec171c140cfb01e027d48f5d4ee3ddc022768f10eadadd8f-primary.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/b5cc02335c9184dbec171c140cfb01e027d48f5d4ee3ddc022768f10eadadd8f-primary.sqlite.bz2 new file mode 100644 index 0000000..8e23122 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/b5cc02335c9184dbec171c140cfb01e027d48f5d4ee3ddc022768f10eadadd8f-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/c159da6b52949d6b9e2fc9c17e1ca904974b97e36b5c3626b557d503e3004834-filelists.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/c159da6b52949d6b9e2fc9c17e1ca904974b97e36b5c3626b557d503e3004834-filelists.sqlite.bz2 new file mode 100644 index 0000000..2875dfc Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/c159da6b52949d6b9e2fc9c17e1ca904974b97e36b5c3626b557d503e3004834-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/f4da985cff145ce4ec4b63175cfd593b99ce4fe51c886367189f2acdbb8b2b2e-other.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/f4da985cff145ce4ec4b63175cfd593b99ce4fe51c886367189f2acdbb8b2b2e-other.sqlite.bz2 new file mode 100644 index 0000000..a03986d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/f4da985cff145ce4ec4b63175cfd593b99ce4fe51c886367189f2acdbb8b2b2e-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/repomd.xml b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/repomd.xml new file mode 100644 index 0000000..9e98367 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-1/i686/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467012 + + 5da22eedca922651c9d71f60ddec76008be605232430ebf7eac1c98d73e5a191 + dff0a1495dcc6d894f97993565498fb1b9394845abe7e0968da4a3f5e0747b00 + + 1528467013 + 1765 + 12751 + + + 0bd99465a38e120f2473242cad12bfb3b772b24b8ecae39bffbd9cdef9d11f71 + e85b8b186a6f4e98038d5109ee4c2210ebc2eeb6f23fe9afa20123c6b1225212 + + 1528467013 + 847 + 2176 + + + 9b9b45a44325ff1cbfa5021c8cfadad7638397c07c2cba4ec4862e9a20fff668 + 2256cfa4c8168d952c66d9ab0a95c80f9cbb924b4d74f94ce4483dd335053843 + + 1528467013 + 813 + 2125 + + + b5cc02335c9184dbec171c140cfb01e027d48f5d4ee3ddc022768f10eadadd8f + 3affad63b91694acd34cd29564745d5dbf33b83baa892654b37741c84843b32b + + 1528467013 + 3841 + 106496 + 10 + + + c159da6b52949d6b9e2fc9c17e1ca904974b97e36b5c3626b557d503e3004834 + b00c92f610914b41c96087d71d80096ef54316ac92f4a41988ba75877150760e + + 1528467013 + 1445 + 28672 + 10 + + + f4da985cff145ce4ec4b63175cfd593b99ce4fe51c886367189f2acdbb8b2b2e + c7f1d45254bbf2d3489abbc180206c4d261a30d6b59baa601ec801e7d97fff6a + + 1528467013 + 1381 + 24576 + 10 + + + 290e9c7ad54ffb0267d799c6d5e5f6f0adaeaffdd79f9a3a87a2deb6e676cea7 + f09441f1d27ae1d443c10b5b6e40eaecf09a1323ae1d027053821707bd1a5f31 + + 1531828716 + 358 + 784 + + diff --git a/data/tests/modules/modules/base-runtime-f26-1/i686/systemd-233-3.i686.rpm b/data/tests/modules/modules/base-runtime-f26-1/i686/systemd-233-3.i686.rpm new file mode 100644 index 0000000..4b31ed8 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/i686/systemd-233-3.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/noarch/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/noarch/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..f9cb284 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/noarch/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/noarch/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/noarch/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0ea2982 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/noarch/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/noarch/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/noarch/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..7af15eb Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/noarch/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/base-runtime-f26-1.s390x.yaml b/data/tests/modules/modules/base-runtime-f26-1/s390x/base-runtime-f26-1.s390x.yaml new file mode 100644 index 0000000..59f0600 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-1/s390x/base-runtime-f26-1.s390x.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 1 + context: e3b0c442 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.s390x + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25-4.s390x + - filesystem-0:3.2-40.s390x + - glibc-0:2.25-4.s390x + - glibc-common-0:2.25-4.s390x + - glibc-debuginfo-common-0:2.25-4.s390x + - kernel-0:4.11.0-1.s390x + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.s390x + - systemd-0:233-3.s390x +... diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..f9cb284 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/bash-4.4.12-2.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/bash-4.4.12-2.s390x.rpm new file mode 100644 index 0000000..c21ad03 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/bash-4.4.12-2.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0ea2982 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/dummy-nscd-2.25-4.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/dummy-nscd-2.25-4.s390x.rpm new file mode 100644 index 0000000..35e4d2c Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/dummy-nscd-2.25-4.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/filesystem-3.2-40.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/filesystem-3.2-40.s390x.rpm new file mode 100644 index 0000000..065daa1 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/filesystem-3.2-40.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/glibc-2.25-4.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/glibc-2.25-4.s390x.rpm new file mode 100644 index 0000000..ef87362 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/glibc-2.25-4.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/glibc-common-2.25-4.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/glibc-common-2.25-4.s390x.rpm new file mode 100644 index 0000000..ae3e7ac Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/glibc-common-2.25-4.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/glibc-debuginfo-common-2.25-4.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/glibc-debuginfo-common-2.25-4.s390x.rpm new file mode 100644 index 0000000..5720699 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/glibc-debuginfo-common-2.25-4.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/kernel-4.11.0-1.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/kernel-4.11.0-1.s390x.rpm new file mode 100644 index 0000000..4084754 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/kernel-4.11.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..7af15eb Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/kernel-headers-4.11.0-1.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/kernel-headers-4.11.0-1.s390x.rpm new file mode 100644 index 0000000..829980a Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/kernel-headers-4.11.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/2af29a3797759547f96d5da9aa7a81b2b49e50878f9c7209737b48084ed141b5-filelists.xml.gz b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/2af29a3797759547f96d5da9aa7a81b2b49e50878f9c7209737b48084ed141b5-filelists.xml.gz new file mode 100644 index 0000000..04c5a1f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/2af29a3797759547f96d5da9aa7a81b2b49e50878f9c7209737b48084ed141b5-filelists.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/4b15355abdab48ad730e33090f1efbec3999353e01039a8cbee28150c761caac-other.xml.gz b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/4b15355abdab48ad730e33090f1efbec3999353e01039a8cbee28150c761caac-other.xml.gz new file mode 100644 index 0000000..5c86a67 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/4b15355abdab48ad730e33090f1efbec3999353e01039a8cbee28150c761caac-other.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/9af251c9d796b28d8045301069ef24001d66119fb81bdb7a9cb2ad8308f34911-other.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/9af251c9d796b28d8045301069ef24001d66119fb81bdb7a9cb2ad8308f34911-other.sqlite.bz2 new file mode 100644 index 0000000..3bb1f7f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/9af251c9d796b28d8045301069ef24001d66119fb81bdb7a9cb2ad8308f34911-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/c8ab38018567345263fe704c401524d1fe9545b6471692b28e9524c0a23cd80b-modules.yaml.gz b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/c8ab38018567345263fe704c401524d1fe9545b6471692b28e9524c0a23cd80b-modules.yaml.gz new file mode 100644 index 0000000..06e8bdc Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/c8ab38018567345263fe704c401524d1fe9545b6471692b28e9524c0a23cd80b-modules.yaml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/e8bcdb6cea307ff90c3a62290701a75eb41515770e01384a00b2c260bea30bda-primary.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/e8bcdb6cea307ff90c3a62290701a75eb41515770e01384a00b2c260bea30bda-primary.sqlite.bz2 new file mode 100644 index 0000000..aeeb074 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/e8bcdb6cea307ff90c3a62290701a75eb41515770e01384a00b2c260bea30bda-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/eecb72efa7593c66ba79a31710f7557060ddd2349fb354ee072e5e9915a2fef0-filelists.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/eecb72efa7593c66ba79a31710f7557060ddd2349fb354ee072e5e9915a2fef0-filelists.sqlite.bz2 new file mode 100644 index 0000000..23aac9c Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/eecb72efa7593c66ba79a31710f7557060ddd2349fb354ee072e5e9915a2fef0-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/f71040c22559fe0075676b32208bf5fb30288a851ed06f00aef5fb87486297f3-primary.xml.gz b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/f71040c22559fe0075676b32208bf5fb30288a851ed06f00aef5fb87486297f3-primary.xml.gz new file mode 100644 index 0000000..da53e92 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/f71040c22559fe0075676b32208bf5fb30288a851ed06f00aef5fb87486297f3-primary.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/repomd.xml b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/repomd.xml new file mode 100644 index 0000000..ba617aa --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-1/s390x/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467013 + + f71040c22559fe0075676b32208bf5fb30288a851ed06f00aef5fb87486297f3 + c81b7d86bd497badea956da854cedfffef424165c31a3a686569ca4e014b833e + + 1528467014 + 1778 + 12799 + + + 2af29a3797759547f96d5da9aa7a81b2b49e50878f9c7209737b48084ed141b5 + a39e0ea579555b1e0a39fb3651da453c5e355a2a510a32f410c5a0eadc7aed1f + + 1528467014 + 849 + 2187 + + + 4b15355abdab48ad730e33090f1efbec3999353e01039a8cbee28150c761caac + 6b54a04791df0bbaa7cac17be56abbe020001ecb23a4de4d8bf2d47540bcd6b1 + + 1528467014 + 811 + 2134 + + + e8bcdb6cea307ff90c3a62290701a75eb41515770e01384a00b2c260bea30bda + fad26bf2d0ec29500d442df1d3c8962b5b109193458c45b75bab96abe872e3ef + + 1528467014 + 3848 + 106496 + 10 + + + eecb72efa7593c66ba79a31710f7557060ddd2349fb354ee072e5e9915a2fef0 + 90e6509df19deb43579ae7789cd86147d93af5ff8e1c6fb6f00f1d21e1e3fca8 + + 1528467014 + 1452 + 28672 + 10 + + + 9af251c9d796b28d8045301069ef24001d66119fb81bdb7a9cb2ad8308f34911 + 317bab92b97f0e62cbe615606b6c56835eacb8c6eecb0f69d82d389b5b154ae6 + + 1528467014 + 1386 + 24576 + 10 + + + c8ab38018567345263fe704c401524d1fe9545b6471692b28e9524c0a23cd80b + ff7aa499590467728d58a132dcd743f3af4984ac4ff4354e5c37f43fc980c8d6 + + 1531828716 + 358 + 794 + + diff --git a/data/tests/modules/modules/base-runtime-f26-1/s390x/systemd-233-3.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-1/s390x/systemd-233-3.s390x.rpm new file mode 100644 index 0000000..5eb5b4a Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/s390x/systemd-233-3.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/src/base-runtime-f26-1.src.yaml b/data/tests/modules/modules/base-runtime-f26-1/src/base-runtime-f26-1.src.yaml new file mode 100644 index 0000000..50cf0d0 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-1/src/base-runtime-f26-1.src.yaml @@ -0,0 +1,39 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 1 + context: e3b0c442 + arch: src + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - basesystem-0:11-3.src + - bash-0:4.4.12-2.src + - bash-doc-0:4.4.12-2.noarch + - filesystem-0:3.2-40.src + - glibc-0:2.25-4.src + - kernel-0:4.11.0-1.src + - kernel-doc-0:4.11.0-1.noarch + - systemd-0:233-3.src +... diff --git a/data/tests/modules/modules/base-runtime-f26-1/src/basesystem-11-3.src.rpm b/data/tests/modules/modules/base-runtime-f26-1/src/basesystem-11-3.src.rpm new file mode 100644 index 0000000..16b78ee Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/src/basesystem-11-3.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/src/bash-4.4.12-2.src.rpm b/data/tests/modules/modules/base-runtime-f26-1/src/bash-4.4.12-2.src.rpm new file mode 100644 index 0000000..ca8ea5d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/src/bash-4.4.12-2.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/src/filesystem-3.2-40.src.rpm b/data/tests/modules/modules/base-runtime-f26-1/src/filesystem-3.2-40.src.rpm new file mode 100644 index 0000000..70ea490 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/src/filesystem-3.2-40.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/src/glibc-2.25-4.src.rpm b/data/tests/modules/modules/base-runtime-f26-1/src/glibc-2.25-4.src.rpm new file mode 100644 index 0000000..d5da39b Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/src/glibc-2.25-4.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/src/kernel-4.11.0-1.src.rpm b/data/tests/modules/modules/base-runtime-f26-1/src/kernel-4.11.0-1.src.rpm new file mode 100644 index 0000000..e83d54b Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/src/kernel-4.11.0-1.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/src/systemd-233-3.src.rpm b/data/tests/modules/modules/base-runtime-f26-1/src/systemd-233-3.src.rpm new file mode 100644 index 0000000..744e876 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/src/systemd-233-3.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/base-runtime-f26-1.x86_64.yaml b/data/tests/modules/modules/base-runtime-f26-1/x86_64/base-runtime-f26-1.x86_64.yaml new file mode 100644 index 0000000..7ff39ad --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-1/x86_64/base-runtime-f26-1.x86_64.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 1 + context: e3b0c442 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.x86_64 + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25-4.x86_64 + - filesystem-0:3.2-40.x86_64 + - glibc-0:2.25-4.x86_64 + - glibc-common-0:2.25-4.x86_64 + - glibc-debuginfo-common-0:2.25-4.x86_64 + - kernel-0:4.11.0-1.x86_64 + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.x86_64 + - systemd-0:233-3.x86_64 +... diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..f9cb284 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/bash-4.4.12-2.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/bash-4.4.12-2.x86_64.rpm new file mode 100644 index 0000000..719b4a6 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/bash-4.4.12-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0ea2982 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/dummy-nscd-2.25-4.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/dummy-nscd-2.25-4.x86_64.rpm new file mode 100644 index 0000000..6fe3040 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/dummy-nscd-2.25-4.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/filesystem-3.2-40.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/filesystem-3.2-40.x86_64.rpm new file mode 100644 index 0000000..8ed1cd4 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/filesystem-3.2-40.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/glibc-2.25-4.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/glibc-2.25-4.x86_64.rpm new file mode 100644 index 0000000..c824405 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/glibc-2.25-4.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/glibc-common-2.25-4.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/glibc-common-2.25-4.x86_64.rpm new file mode 100644 index 0000000..538d5e3 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/glibc-common-2.25-4.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/glibc-debuginfo-common-2.25-4.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/glibc-debuginfo-common-2.25-4.x86_64.rpm new file mode 100644 index 0000000..f91ef93 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/glibc-debuginfo-common-2.25-4.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/kernel-4.11.0-1.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/kernel-4.11.0-1.x86_64.rpm new file mode 100644 index 0000000..92a05d3 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/kernel-4.11.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..7af15eb Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/kernel-headers-4.11.0-1.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/kernel-headers-4.11.0-1.x86_64.rpm new file mode 100644 index 0000000..2feda05 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/kernel-headers-4.11.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/2701513854bc03cd5f978041407e1c25a780abf79e62f1d2304abd49fb030bfe-modules.yaml.gz b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/2701513854bc03cd5f978041407e1c25a780abf79e62f1d2304abd49fb030bfe-modules.yaml.gz new file mode 100644 index 0000000..7bfa604 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/2701513854bc03cd5f978041407e1c25a780abf79e62f1d2304abd49fb030bfe-modules.yaml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/29ab3a3a200636de5a429bcf221ef71c0b522b150dbb9a2a9ae52de381880f0d-filelists.xml.gz b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/29ab3a3a200636de5a429bcf221ef71c0b522b150dbb9a2a9ae52de381880f0d-filelists.xml.gz new file mode 100644 index 0000000..a078834 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/29ab3a3a200636de5a429bcf221ef71c0b522b150dbb9a2a9ae52de381880f0d-filelists.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/5fb61d376156ab4ce31330757f19e57378cc885597413ad787f5277fbf7280b1-primary.xml.gz b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/5fb61d376156ab4ce31330757f19e57378cc885597413ad787f5277fbf7280b1-primary.xml.gz new file mode 100644 index 0000000..b0b7c68 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/5fb61d376156ab4ce31330757f19e57378cc885597413ad787f5277fbf7280b1-primary.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/6fd2b7ce8c8d049bae4d7e0b398148d71c01fd28ac0d2524e609aadb5dab3052-other.xml.gz b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/6fd2b7ce8c8d049bae4d7e0b398148d71c01fd28ac0d2524e609aadb5dab3052-other.xml.gz new file mode 100644 index 0000000..86935b0 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/6fd2b7ce8c8d049bae4d7e0b398148d71c01fd28ac0d2524e609aadb5dab3052-other.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/bea9d5e3288aaf0115434606cef08896fc0384149bf873547ef10cd27ba815e6-primary.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/bea9d5e3288aaf0115434606cef08896fc0384149bf873547ef10cd27ba815e6-primary.sqlite.bz2 new file mode 100644 index 0000000..ffd52d0 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/bea9d5e3288aaf0115434606cef08896fc0384149bf873547ef10cd27ba815e6-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/d7307716cc7ee39258a94c534a7a5c6bcd442d2cb0a0cdc1c234877691e148c8-filelists.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/d7307716cc7ee39258a94c534a7a5c6bcd442d2cb0a0cdc1c234877691e148c8-filelists.sqlite.bz2 new file mode 100644 index 0000000..eb76877 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/d7307716cc7ee39258a94c534a7a5c6bcd442d2cb0a0cdc1c234877691e148c8-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/e7a8e17dd64ba565a84139cf92a9a543a8a17bddc0e6332fbcd1bfe20a77d7d2-other.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/e7a8e17dd64ba565a84139cf92a9a543a8a17bddc0e6332fbcd1bfe20a77d7d2-other.sqlite.bz2 new file mode 100644 index 0000000..ac924a7 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/e7a8e17dd64ba565a84139cf92a9a543a8a17bddc0e6332fbcd1bfe20a77d7d2-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/repomd.xml b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/repomd.xml new file mode 100644 index 0000000..b6cbfda --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-1/x86_64/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467012 + + 5fb61d376156ab4ce31330757f19e57378cc885597413ad787f5277fbf7280b1 + 49dc09dc12c349322ccf2ede7f6edeaa4ae18ff78fa152579ccf03ce44651477 + + 1528467013 + 1780 + 12808 + + + 29ab3a3a200636de5a429bcf221ef71c0b522b150dbb9a2a9ae52de381880f0d + 1f68ba6e79ad73a91d80eb311744271ed5f0c3ff914824c41f15cd6a89b25f32 + + 1528467013 + 849 + 2196 + + + 6fd2b7ce8c8d049bae4d7e0b398148d71c01fd28ac0d2524e609aadb5dab3052 + 37a1e3d548054f4b967621e45eeca250d9e7986f8db7d81e33bf2d0bf2fa9bdd + + 1528467013 + 812 + 2143 + + + bea9d5e3288aaf0115434606cef08896fc0384149bf873547ef10cd27ba815e6 + 34a23bac873440ca65029db2de7ec25c7daca5165ccf3ac3df9f81cae2080e77 + + 1528467014 + 3833 + 106496 + 10 + + + d7307716cc7ee39258a94c534a7a5c6bcd442d2cb0a0cdc1c234877691e148c8 + 121db48a9e8f1a536a913e9c37e9297bcde573942bf42845d1ce214d0e471247 + + 1528467014 + 1493 + 28672 + 10 + + + e7a8e17dd64ba565a84139cf92a9a543a8a17bddc0e6332fbcd1bfe20a77d7d2 + 0fa854a5507c0a6f8157260c3f461472f50f6955e0dfa5c0b1c45dcbe7e9b7af + + 1528467014 + 1389 + 24576 + 10 + + + 2701513854bc03cd5f978041407e1c25a780abf79e62f1d2304abd49fb030bfe + d00e3c478a678b7de02f7779805cab8ad830237ed04911fec3e258affc67529a + + 1531828716 + 361 + 804 + + diff --git a/data/tests/modules/modules/base-runtime-f26-1/x86_64/systemd-233-3.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-1/x86_64/systemd-233-3.x86_64.rpm new file mode 100644 index 0000000..310ddee Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-1/x86_64/systemd-233-3.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/base-runtime-f26-2.i686.yaml b/data/tests/modules/modules/base-runtime-f26-2/i686/base-runtime-f26-2.i686.yaml new file mode 100644 index 0000000..3c256eb --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-2/i686/base-runtime-f26-2.i686.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 2 + context: e3b0c442 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.i686 + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25.90-2.i686 + - filesystem-0:3.2-40.i686 + - glibc-0:2.25.90-2.i686 + - glibc-common-0:2.25.90-2.i686 + - glibc-debuginfo-common-0:2.25.90-2.i686 + - kernel-0:4.11.0-1.i686 + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.i686 + - systemd-0:233-3.i686 +... diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..1cbef5f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/bash-4.4.12-2.i686.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/bash-4.4.12-2.i686.rpm new file mode 100644 index 0000000..22b24d1 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/bash-4.4.12-2.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0a28ef5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/dummy-nscd-2.25.90-2.i686.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/dummy-nscd-2.25.90-2.i686.rpm new file mode 100644 index 0000000..30e1f7e Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/dummy-nscd-2.25.90-2.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/filesystem-3.2-40.i686.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/filesystem-3.2-40.i686.rpm new file mode 100644 index 0000000..7ad3dc9 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/filesystem-3.2-40.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/glibc-2.25.90-2.i686.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/glibc-2.25.90-2.i686.rpm new file mode 100644 index 0000000..1b522f1 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/glibc-2.25.90-2.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/glibc-common-2.25.90-2.i686.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/glibc-common-2.25.90-2.i686.rpm new file mode 100644 index 0000000..03be230 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/glibc-common-2.25.90-2.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/glibc-debuginfo-common-2.25.90-2.i686.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/glibc-debuginfo-common-2.25.90-2.i686.rpm new file mode 100644 index 0000000..f13bc33 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/glibc-debuginfo-common-2.25.90-2.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/kernel-4.11.0-1.i686.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/kernel-4.11.0-1.i686.rpm new file mode 100644 index 0000000..28bbd30 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/kernel-4.11.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..4e174bb Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/kernel-headers-4.11.0-1.i686.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/kernel-headers-4.11.0-1.i686.rpm new file mode 100644 index 0000000..363953f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/kernel-headers-4.11.0-1.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/2c646459aed861bcfedd9538ad43c4e06cecc0d8bf50ff88a42ce92c093c3cf1-primary.xml.gz b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/2c646459aed861bcfedd9538ad43c4e06cecc0d8bf50ff88a42ce92c093c3cf1-primary.xml.gz new file mode 100644 index 0000000..6648cac Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/2c646459aed861bcfedd9538ad43c4e06cecc0d8bf50ff88a42ce92c093c3cf1-primary.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/3f5fbc10b586ac5d557e8e423c07b323c6ccdfc065fa5a38942ffddc56c6dec5-modules.yaml.gz b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/3f5fbc10b586ac5d557e8e423c07b323c6ccdfc065fa5a38942ffddc56c6dec5-modules.yaml.gz new file mode 100644 index 0000000..a61b774 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/3f5fbc10b586ac5d557e8e423c07b323c6ccdfc065fa5a38942ffddc56c6dec5-modules.yaml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/a8239c88869b30de18e2241890cd3543e1525e41991c99068022a4117505bcf5-other.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/a8239c88869b30de18e2241890cd3543e1525e41991c99068022a4117505bcf5-other.sqlite.bz2 new file mode 100644 index 0000000..d11a3c4 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/a8239c88869b30de18e2241890cd3543e1525e41991c99068022a4117505bcf5-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/b85a173d4d57c2d4b09e252de36f24f38cf0f5b6194a12b7d95aacf312f21004-primary.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/b85a173d4d57c2d4b09e252de36f24f38cf0f5b6194a12b7d95aacf312f21004-primary.sqlite.bz2 new file mode 100644 index 0000000..d27536b Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/b85a173d4d57c2d4b09e252de36f24f38cf0f5b6194a12b7d95aacf312f21004-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/e3d0d959c1b041e215dbf37172d389b10035b02ed0312569842e9fdbd117b812-filelists.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/e3d0d959c1b041e215dbf37172d389b10035b02ed0312569842e9fdbd117b812-filelists.sqlite.bz2 new file mode 100644 index 0000000..7fca4a6 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/e3d0d959c1b041e215dbf37172d389b10035b02ed0312569842e9fdbd117b812-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/ed6d0a90af4f1a1d7577763077717f4e8c9e9118b7e815824c488825d3f40541-filelists.xml.gz b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/ed6d0a90af4f1a1d7577763077717f4e8c9e9118b7e815824c488825d3f40541-filelists.xml.gz new file mode 100644 index 0000000..1d8ce27 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/ed6d0a90af4f1a1d7577763077717f4e8c9e9118b7e815824c488825d3f40541-filelists.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/f0cc45d85b3e8db94359796062b716f2ee68f23e1ce6b05e229faa7f0b653878-other.xml.gz b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/f0cc45d85b3e8db94359796062b716f2ee68f23e1ce6b05e229faa7f0b653878-other.xml.gz new file mode 100644 index 0000000..a140c0c Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/f0cc45d85b3e8db94359796062b716f2ee68f23e1ce6b05e229faa7f0b653878-other.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/repomd.xml b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/repomd.xml new file mode 100644 index 0000000..c884d5d --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-2/i686/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467014 + + 2c646459aed861bcfedd9538ad43c4e06cecc0d8bf50ff88a42ce92c093c3cf1 + 217e2144e6efd58cfa4b64ce97f56ac3a5549cf32029ea164e60153628bab822 + + 1528467015 + 1762 + 12814 + + + ed6d0a90af4f1a1d7577763077717f4e8c9e9118b7e815824c488825d3f40541 + f718d66710c00cb7770b65c80e82fde0e90daf94770d368e31e96df3c0ca3de5 + + 1528467015 + 847 + 2188 + + + f0cc45d85b3e8db94359796062b716f2ee68f23e1ce6b05e229faa7f0b653878 + 977855eb21ed15fb3e39719e4e3eb31a43f2d17a1a373a925af46d0e045fadd5 + + 1528467015 + 809 + 2137 + + + b85a173d4d57c2d4b09e252de36f24f38cf0f5b6194a12b7d95aacf312f21004 + 52cec508d560bfeb5dce35350a019b683e7fde0104225e8cb5b2863032895b74 + + 1528467015 + 3837 + 106496 + 10 + + + e3d0d959c1b041e215dbf37172d389b10035b02ed0312569842e9fdbd117b812 + e8813fec7df0c4839f03fd130eabaac9b6101595ffe4aedbfa36a871d56a891a + + 1528467015 + 1500 + 28672 + 10 + + + a8239c88869b30de18e2241890cd3543e1525e41991c99068022a4117505bcf5 + ffc33df8d985115c8978f059b84ce3c2ea97fe43ef7dcf4164698a512a82cfb7 + + 1528467015 + 1411 + 24576 + 10 + + + 3f5fbc10b586ac5d557e8e423c07b323c6ccdfc065fa5a38942ffddc56c6dec5 + 786f8f3d0989d99f79225b12c183c63a133206e303961ec96107e80b1f2e6072 + + 1531828716 + 358 + 796 + + diff --git a/data/tests/modules/modules/base-runtime-f26-2/i686/systemd-233-3.i686.rpm b/data/tests/modules/modules/base-runtime-f26-2/i686/systemd-233-3.i686.rpm new file mode 100644 index 0000000..1c57cea Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/i686/systemd-233-3.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/noarch/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/noarch/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..1cbef5f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/noarch/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/noarch/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/noarch/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0a28ef5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/noarch/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/noarch/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/noarch/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..4e174bb Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/noarch/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/base-runtime-f26-2.s390x.yaml b/data/tests/modules/modules/base-runtime-f26-2/s390x/base-runtime-f26-2.s390x.yaml new file mode 100644 index 0000000..f40b400 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-2/s390x/base-runtime-f26-2.s390x.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 2 + context: e3b0c442 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.s390x + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25.90-2.s390x + - filesystem-0:3.2-40.s390x + - glibc-0:2.25.90-2.s390x + - glibc-common-0:2.25.90-2.s390x + - glibc-debuginfo-common-0:2.25.90-2.s390x + - kernel-0:4.11.0-1.s390x + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.s390x + - systemd-0:233-3.s390x +... diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..1cbef5f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/bash-4.4.12-2.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/bash-4.4.12-2.s390x.rpm new file mode 100644 index 0000000..8548a62 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/bash-4.4.12-2.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0a28ef5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/dummy-nscd-2.25.90-2.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/dummy-nscd-2.25.90-2.s390x.rpm new file mode 100644 index 0000000..db731f5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/dummy-nscd-2.25.90-2.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/filesystem-3.2-40.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/filesystem-3.2-40.s390x.rpm new file mode 100644 index 0000000..99c8d91 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/filesystem-3.2-40.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/glibc-2.25.90-2.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/glibc-2.25.90-2.s390x.rpm new file mode 100644 index 0000000..a292497 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/glibc-2.25.90-2.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/glibc-common-2.25.90-2.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/glibc-common-2.25.90-2.s390x.rpm new file mode 100644 index 0000000..2ce6667 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/glibc-common-2.25.90-2.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/glibc-debuginfo-common-2.25.90-2.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/glibc-debuginfo-common-2.25.90-2.s390x.rpm new file mode 100644 index 0000000..70e5ed7 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/glibc-debuginfo-common-2.25.90-2.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/kernel-4.11.0-1.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/kernel-4.11.0-1.s390x.rpm new file mode 100644 index 0000000..599419d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/kernel-4.11.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..4e174bb Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/kernel-headers-4.11.0-1.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/kernel-headers-4.11.0-1.s390x.rpm new file mode 100644 index 0000000..6737a82 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/kernel-headers-4.11.0-1.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/10a489e767aefa063ebc4a8e6650a635a7534a5579690e831c71988a2a801eae-other.xml.gz b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/10a489e767aefa063ebc4a8e6650a635a7534a5579690e831c71988a2a801eae-other.xml.gz new file mode 100644 index 0000000..e702733 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/10a489e767aefa063ebc4a8e6650a635a7534a5579690e831c71988a2a801eae-other.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/11161c3a866a02ec7a6f84ad1a6111348abdb6e89634f3e07ed1cce2750065cf-primary.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/11161c3a866a02ec7a6f84ad1a6111348abdb6e89634f3e07ed1cce2750065cf-primary.sqlite.bz2 new file mode 100644 index 0000000..04ed8cd Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/11161c3a866a02ec7a6f84ad1a6111348abdb6e89634f3e07ed1cce2750065cf-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/3b9a21f2174811d9077ee95afd017d6cd1cd6f5a38cf91f1c9baa91799bae176-other.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/3b9a21f2174811d9077ee95afd017d6cd1cd6f5a38cf91f1c9baa91799bae176-other.sqlite.bz2 new file mode 100644 index 0000000..43c4856 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/3b9a21f2174811d9077ee95afd017d6cd1cd6f5a38cf91f1c9baa91799bae176-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/4b07987399cff660d9e144d0a44c6ceba3c10642d0b82523d3131f9895d89780-primary.xml.gz b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/4b07987399cff660d9e144d0a44c6ceba3c10642d0b82523d3131f9895d89780-primary.xml.gz new file mode 100644 index 0000000..3a5ae75 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/4b07987399cff660d9e144d0a44c6ceba3c10642d0b82523d3131f9895d89780-primary.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/6922ea6fc78050b5726b7efcc48448535a6bb9461bb5cd8ecec954a65ea57305-filelists.xml.gz b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/6922ea6fc78050b5726b7efcc48448535a6bb9461bb5cd8ecec954a65ea57305-filelists.xml.gz new file mode 100644 index 0000000..0c653fb Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/6922ea6fc78050b5726b7efcc48448535a6bb9461bb5cd8ecec954a65ea57305-filelists.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/cae4b2e914c0341bf033c733555e06b64329baa1024dab16b2c4f5951f05334a-filelists.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/cae4b2e914c0341bf033c733555e06b64329baa1024dab16b2c4f5951f05334a-filelists.sqlite.bz2 new file mode 100644 index 0000000..6b549bc Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/cae4b2e914c0341bf033c733555e06b64329baa1024dab16b2c4f5951f05334a-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/e015590a3ac04f560d4ed2b5e616b9c5484554a3d9f6664184e375e760774b52-modules.yaml.gz b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/e015590a3ac04f560d4ed2b5e616b9c5484554a3d9f6664184e375e760774b52-modules.yaml.gz new file mode 100644 index 0000000..75c5fc2 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/e015590a3ac04f560d4ed2b5e616b9c5484554a3d9f6664184e375e760774b52-modules.yaml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/repomd.xml b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/repomd.xml new file mode 100644 index 0000000..a81ab0f --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-2/s390x/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467015 + + 4b07987399cff660d9e144d0a44c6ceba3c10642d0b82523d3131f9895d89780 + 2d84b127e6a1dd7b8ddfe7ca5084a044922f6b74adb1d2d80d981d2b30334035 + + 1528467016 + 1779 + 12862 + + + 6922ea6fc78050b5726b7efcc48448535a6bb9461bb5cd8ecec954a65ea57305 + 018ca4bed8ed74f7c0d27526871d53384e1fae8b8ea3b8b7360f561e6b86ff58 + + 1528467016 + 850 + 2199 + + + 10a489e767aefa063ebc4a8e6650a635a7534a5579690e831c71988a2a801eae + 0694c5b19c45741c1c8c5da0ab22eb38bd483960872a329c2334f6bf9c1ffde7 + + 1528467016 + 812 + 2146 + + + 11161c3a866a02ec7a6f84ad1a6111348abdb6e89634f3e07ed1cce2750065cf + 031e0b7fa02ec15f6c25635fc77763de66059833c78c0ab14f3f024203d2e7c2 + + 1528467016 + 3825 + 106496 + 10 + + + cae4b2e914c0341bf033c733555e06b64329baa1024dab16b2c4f5951f05334a + 4190675d8911642949411d31e535e22e9f4422140a9a89df033fd7fe0d923462 + + 1528467016 + 1485 + 28672 + 10 + + + 3b9a21f2174811d9077ee95afd017d6cd1cd6f5a38cf91f1c9baa91799bae176 + 813c982ddd4f381799942b2dc79bc10767dd0a777914729b07f75e6b8b47be5c + + 1528467016 + 1407 + 24576 + 10 + + + e015590a3ac04f560d4ed2b5e616b9c5484554a3d9f6664184e375e760774b52 + 1ba12091166b231c7871cc1b89a94ebca53ebac3b54424eca98e78d88415aaf9 + + 1531828716 + 359 + 806 + + diff --git a/data/tests/modules/modules/base-runtime-f26-2/s390x/systemd-233-3.s390x.rpm b/data/tests/modules/modules/base-runtime-f26-2/s390x/systemd-233-3.s390x.rpm new file mode 100644 index 0000000..181c876 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/s390x/systemd-233-3.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/src/base-runtime-f26-2.src.yaml b/data/tests/modules/modules/base-runtime-f26-2/src/base-runtime-f26-2.src.yaml new file mode 100644 index 0000000..b9398cc --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-2/src/base-runtime-f26-2.src.yaml @@ -0,0 +1,39 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 2 + context: e3b0c442 + arch: src + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - basesystem-0:11-3.src + - bash-0:4.4.12-2.src + - bash-doc-0:4.4.12-2.noarch + - filesystem-0:3.2-40.src + - glibc-0:2.25.90-2.src + - kernel-0:4.11.0-1.src + - kernel-doc-0:4.11.0-1.noarch + - systemd-0:233-3.src +... diff --git a/data/tests/modules/modules/base-runtime-f26-2/src/basesystem-11-3.src.rpm b/data/tests/modules/modules/base-runtime-f26-2/src/basesystem-11-3.src.rpm new file mode 100644 index 0000000..6524e1f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/src/basesystem-11-3.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/src/bash-4.4.12-2.src.rpm b/data/tests/modules/modules/base-runtime-f26-2/src/bash-4.4.12-2.src.rpm new file mode 100644 index 0000000..92a732c Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/src/bash-4.4.12-2.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/src/filesystem-3.2-40.src.rpm b/data/tests/modules/modules/base-runtime-f26-2/src/filesystem-3.2-40.src.rpm new file mode 100644 index 0000000..a26fb91 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/src/filesystem-3.2-40.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/src/glibc-2.25.90-2.src.rpm b/data/tests/modules/modules/base-runtime-f26-2/src/glibc-2.25.90-2.src.rpm new file mode 100644 index 0000000..fcebdca Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/src/glibc-2.25.90-2.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/src/kernel-4.11.0-1.src.rpm b/data/tests/modules/modules/base-runtime-f26-2/src/kernel-4.11.0-1.src.rpm new file mode 100644 index 0000000..be3cbd3 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/src/kernel-4.11.0-1.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/src/systemd-233-3.src.rpm b/data/tests/modules/modules/base-runtime-f26-2/src/systemd-233-3.src.rpm new file mode 100644 index 0000000..e2b5289 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/src/systemd-233-3.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/base-runtime-f26-2.x86_64.yaml b/data/tests/modules/modules/base-runtime-f26-2/x86_64/base-runtime-f26-2.x86_64.yaml new file mode 100644 index 0000000..06d400c --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-2/x86_64/base-runtime-f26-2.x86_64.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: f26 + version: 2 + context: e3b0c442 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:11-3.noarch + - bash-0:4.4.12-2.x86_64 + - bash-doc-0:4.4.12-2.noarch + - dummy-nscd-0:2.25.90-2.x86_64 + - filesystem-0:3.2-40.x86_64 + - glibc-0:2.25.90-2.x86_64 + - glibc-common-0:2.25.90-2.x86_64 + - glibc-debuginfo-common-0:2.25.90-2.x86_64 + - kernel-0:4.11.0-1.x86_64 + - kernel-doc-0:4.11.0-1.noarch + - kernel-headers-0:4.11.0-1.x86_64 + - systemd-0:233-3.x86_64 +... diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/basesystem-11-3.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/basesystem-11-3.noarch.rpm new file mode 100644 index 0000000..1cbef5f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/basesystem-11-3.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/bash-4.4.12-2.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/bash-4.4.12-2.x86_64.rpm new file mode 100644 index 0000000..10b9963 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/bash-4.4.12-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/bash-doc-4.4.12-2.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/bash-doc-4.4.12-2.noarch.rpm new file mode 100644 index 0000000..0a28ef5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/bash-doc-4.4.12-2.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/dummy-nscd-2.25.90-2.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/dummy-nscd-2.25.90-2.x86_64.rpm new file mode 100644 index 0000000..e33680e Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/dummy-nscd-2.25.90-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/filesystem-3.2-40.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/filesystem-3.2-40.x86_64.rpm new file mode 100644 index 0000000..4d65fac Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/filesystem-3.2-40.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/glibc-2.25.90-2.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/glibc-2.25.90-2.x86_64.rpm new file mode 100644 index 0000000..05091a6 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/glibc-2.25.90-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/glibc-common-2.25.90-2.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/glibc-common-2.25.90-2.x86_64.rpm new file mode 100644 index 0000000..fc33f5b Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/glibc-common-2.25.90-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/glibc-debuginfo-common-2.25.90-2.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/glibc-debuginfo-common-2.25.90-2.x86_64.rpm new file mode 100644 index 0000000..7fb1060 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/glibc-debuginfo-common-2.25.90-2.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/kernel-4.11.0-1.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/kernel-4.11.0-1.x86_64.rpm new file mode 100644 index 0000000..88535c1 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/kernel-4.11.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/kernel-doc-4.11.0-1.noarch.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/kernel-doc-4.11.0-1.noarch.rpm new file mode 100644 index 0000000..4e174bb Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/kernel-doc-4.11.0-1.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/kernel-headers-4.11.0-1.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/kernel-headers-4.11.0-1.x86_64.rpm new file mode 100644 index 0000000..2e7873d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/kernel-headers-4.11.0-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/02ec627b4e841a824c34f245d977a9d7e69fd696760afbf3a6eed84157f2bf0e-modules.yaml.gz b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/02ec627b4e841a824c34f245d977a9d7e69fd696760afbf3a6eed84157f2bf0e-modules.yaml.gz new file mode 100644 index 0000000..345c941 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/02ec627b4e841a824c34f245d977a9d7e69fd696760afbf3a6eed84157f2bf0e-modules.yaml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/25ea3a56d1c431e747089ec10810e2369347aa8a0d0bc49e8ab06a9bc22d38bd-filelists.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/25ea3a56d1c431e747089ec10810e2369347aa8a0d0bc49e8ab06a9bc22d38bd-filelists.sqlite.bz2 new file mode 100644 index 0000000..cac4e5a Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/25ea3a56d1c431e747089ec10810e2369347aa8a0d0bc49e8ab06a9bc22d38bd-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/3ca1bd0336c7e5a6d2453284ff02b02404ebfb4472dd1b0d2663ee9c09276607-primary.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/3ca1bd0336c7e5a6d2453284ff02b02404ebfb4472dd1b0d2663ee9c09276607-primary.sqlite.bz2 new file mode 100644 index 0000000..2a64b98 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/3ca1bd0336c7e5a6d2453284ff02b02404ebfb4472dd1b0d2663ee9c09276607-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/41398af18302111ad8d542b137ce234556c6693fbb66ea01084d9224a2399c87-filelists.xml.gz b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/41398af18302111ad8d542b137ce234556c6693fbb66ea01084d9224a2399c87-filelists.xml.gz new file mode 100644 index 0000000..02bf1c4 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/41398af18302111ad8d542b137ce234556c6693fbb66ea01084d9224a2399c87-filelists.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/65f0a3c92f1d21b30328e65acf3472ba62df03621302eecd36509c9fb4e9c83b-other.sqlite.bz2 b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/65f0a3c92f1d21b30328e65acf3472ba62df03621302eecd36509c9fb4e9c83b-other.sqlite.bz2 new file mode 100644 index 0000000..31b944c Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/65f0a3c92f1d21b30328e65acf3472ba62df03621302eecd36509c9fb4e9c83b-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/b64e102539e600b45cbed904bd8e07d3fa9580dbcf0ddf73d02af5a82ecc72fa-other.xml.gz b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/b64e102539e600b45cbed904bd8e07d3fa9580dbcf0ddf73d02af5a82ecc72fa-other.xml.gz new file mode 100644 index 0000000..be34774 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/b64e102539e600b45cbed904bd8e07d3fa9580dbcf0ddf73d02af5a82ecc72fa-other.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/b947070a1412451590f1d2422af262833163e19cc49428568e242c7dcfb10d89-primary.xml.gz b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/b947070a1412451590f1d2422af262833163e19cc49428568e242c7dcfb10d89-primary.xml.gz new file mode 100644 index 0000000..648a1d6 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/b947070a1412451590f1d2422af262833163e19cc49428568e242c7dcfb10d89-primary.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/repomd.xml b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/repomd.xml new file mode 100644 index 0000000..e964d31 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-f26-2/x86_64/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467014 + + b947070a1412451590f1d2422af262833163e19cc49428568e242c7dcfb10d89 + 44b829432791921332c30bda967174563a0e259f3261323a25de3eb413f1ea2f + + 1528467015 + 1781 + 12871 + + + 41398af18302111ad8d542b137ce234556c6693fbb66ea01084d9224a2399c87 + c8baf2bd64b2ed91a30e0c93a03ab4df29975b70339e4a0a8f835eb1ed7e9818 + + 1528467015 + 851 + 2208 + + + b64e102539e600b45cbed904bd8e07d3fa9580dbcf0ddf73d02af5a82ecc72fa + 2ea6e7e5da9f6a91ca8d2384d0c6658bab09c0ede96f2c94fca466695132b7a9 + + 1528467015 + 812 + 2155 + + + 3ca1bd0336c7e5a6d2453284ff02b02404ebfb4472dd1b0d2663ee9c09276607 + 923cddddf01a5f32421890f9ede5f3f5d70349391f03e9417aa2c0fb8d5ea2b6 + + 1528467015 + 3854 + 106496 + 10 + + + 25ea3a56d1c431e747089ec10810e2369347aa8a0d0bc49e8ab06a9bc22d38bd + 741ba0383e334931449154190e13d5a89fc825b6f65de7edf716cb6bccd4ec4f + + 1528467015 + 1483 + 28672 + 10 + + + 65f0a3c92f1d21b30328e65acf3472ba62df03621302eecd36509c9fb4e9c83b + b5559f4dab0c11cac91783b1f8e91601ff732eb6fa02b6d508cdb779399ec229 + + 1528467015 + 1415 + 24576 + 10 + + + 02ec627b4e841a824c34f245d977a9d7e69fd696760afbf3a6eed84157f2bf0e + c2d04e54139f20390789e2fddfd85ed68a2b5a08aff02affdf0edf15829228a8 + + 1531828716 + 362 + 816 + + diff --git a/data/tests/modules/modules/base-runtime-f26-2/x86_64/systemd-233-3.x86_64.rpm b/data/tests/modules/modules/base-runtime-f26-2/x86_64/systemd-233-3.x86_64.rpm new file mode 100644 index 0000000..e338e41 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-f26-2/x86_64/systemd-233-3.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/base-runtime-rhel73-1.i686.yaml b/data/tests/modules/modules/base-runtime-rhel73-1/i686/base-runtime-rhel73-1.i686.yaml new file mode 100644 index 0000000..11ccb71 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-rhel73-1/i686/base-runtime-rhel73-1.i686.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: rhel73 + version: 1 + context: e3b0c442 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:10.0-7.noarch + - bash-0:4.2.46-21.i686 + - bash-doc-0:4.2.46-21.noarch + - dummy-nscd-0:2.17-157.i686 + - filesystem-0:3.2-21.i686 + - glibc-0:2.17-157.i686 + - glibc-common-0:2.17-157.i686 + - glibc-debuginfo-common-0:2.17-157.i686 + - kernel-0:3.10.0-514.i686 + - kernel-doc-0:3.10.0-514.noarch + - kernel-headers-0:3.10.0-514.i686 + - systemd-0:219-30.i686 +... diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/basesystem-10.0-7.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/basesystem-10.0-7.noarch.rpm new file mode 100644 index 0000000..9f1be1a Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/basesystem-10.0-7.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/bash-4.2.46-21.i686.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/bash-4.2.46-21.i686.rpm new file mode 100644 index 0000000..7968573 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/bash-4.2.46-21.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/bash-doc-4.2.46-21.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/bash-doc-4.2.46-21.noarch.rpm new file mode 100644 index 0000000..320890d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/bash-doc-4.2.46-21.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/dummy-nscd-2.17-157.i686.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/dummy-nscd-2.17-157.i686.rpm new file mode 100644 index 0000000..0e6b935 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/dummy-nscd-2.17-157.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/filesystem-3.2-21.i686.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/filesystem-3.2-21.i686.rpm new file mode 100644 index 0000000..323753d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/filesystem-3.2-21.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/glibc-2.17-157.i686.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/glibc-2.17-157.i686.rpm new file mode 100644 index 0000000..71793e7 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/glibc-2.17-157.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/glibc-common-2.17-157.i686.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/glibc-common-2.17-157.i686.rpm new file mode 100644 index 0000000..f5d59a3 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/glibc-common-2.17-157.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/glibc-debuginfo-common-2.17-157.i686.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/glibc-debuginfo-common-2.17-157.i686.rpm new file mode 100644 index 0000000..ccfb298 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/glibc-debuginfo-common-2.17-157.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/kernel-3.10.0-514.i686.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/kernel-3.10.0-514.i686.rpm new file mode 100644 index 0000000..afade8d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/kernel-3.10.0-514.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/kernel-doc-3.10.0-514.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/kernel-doc-3.10.0-514.noarch.rpm new file mode 100644 index 0000000..f7a3b13 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/kernel-doc-3.10.0-514.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/kernel-headers-3.10.0-514.i686.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/kernel-headers-3.10.0-514.i686.rpm new file mode 100644 index 0000000..761c8a0 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/kernel-headers-3.10.0-514.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/3a212be1927ef000edb547d1be028f0fa12f44cab57feeb4c3e40602c13cd07c-modules.yaml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/3a212be1927ef000edb547d1be028f0fa12f44cab57feeb4c3e40602c13cd07c-modules.yaml.gz new file mode 100644 index 0000000..f853e7e Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/3a212be1927ef000edb547d1be028f0fa12f44cab57feeb4c3e40602c13cd07c-modules.yaml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/81a44a582fc126bb7ce5785ea41c028a458e2f1cfcdb9176981f3e8504da81cc-primary.sqlite.bz2 b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/81a44a582fc126bb7ce5785ea41c028a458e2f1cfcdb9176981f3e8504da81cc-primary.sqlite.bz2 new file mode 100644 index 0000000..5c57285 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/81a44a582fc126bb7ce5785ea41c028a458e2f1cfcdb9176981f3e8504da81cc-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/9db4910badc4de5bbfd4a1aefd85d164d5580fa1093c1cfeee9991485dac25a0-filelists.sqlite.bz2 b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/9db4910badc4de5bbfd4a1aefd85d164d5580fa1093c1cfeee9991485dac25a0-filelists.sqlite.bz2 new file mode 100644 index 0000000..d046c77 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/9db4910badc4de5bbfd4a1aefd85d164d5580fa1093c1cfeee9991485dac25a0-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/a3628a8e0fa6cf952021c2aab864aff84c8e3456f392ff52b37be7cda7c9efb5-other.sqlite.bz2 b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/a3628a8e0fa6cf952021c2aab864aff84c8e3456f392ff52b37be7cda7c9efb5-other.sqlite.bz2 new file mode 100644 index 0000000..a7efce5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/a3628a8e0fa6cf952021c2aab864aff84c8e3456f392ff52b37be7cda7c9efb5-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/c5a73eed1091cadc2d6a11497a0c83fdd9750d652c019b86955a38b0451ef21b-filelists.xml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/c5a73eed1091cadc2d6a11497a0c83fdd9750d652c019b86955a38b0451ef21b-filelists.xml.gz new file mode 100644 index 0000000..f7b3684 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/c5a73eed1091cadc2d6a11497a0c83fdd9750d652c019b86955a38b0451ef21b-filelists.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/eb51feee7374573f8f0bd141ce87f12be7542a8385ea499eb888be375aaadf98-primary.xml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/eb51feee7374573f8f0bd141ce87f12be7542a8385ea499eb888be375aaadf98-primary.xml.gz new file mode 100644 index 0000000..8154549 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/eb51feee7374573f8f0bd141ce87f12be7542a8385ea499eb888be375aaadf98-primary.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/f0f5c32d3dfe340a88be037ef1cc3f270ab8e967ba848d17117d7ee2dca7fb32-other.xml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/f0f5c32d3dfe340a88be037ef1cc3f270ab8e967ba848d17117d7ee2dca7fb32-other.xml.gz new file mode 100644 index 0000000..fa0ec93 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/f0f5c32d3dfe340a88be037ef1cc3f270ab8e967ba848d17117d7ee2dca7fb32-other.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/repomd.xml b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/repomd.xml new file mode 100644 index 0000000..ba0e571 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-rhel73-1/i686/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467016 + + eb51feee7374573f8f0bd141ce87f12be7542a8385ea499eb888be375aaadf98 + 62218a340e6c233d1652d790a69434510d320f3c4f7de5562e7478abdfb8b062 + + 1528467017 + 1754 + 12843 + + + c5a73eed1091cadc2d6a11497a0c83fdd9750d652c019b86955a38b0451ef21b + cf63aa70cc7b7052a823f3664d8672ffefbcc48db0517032625015be22ab28b5 + + 1528467017 + 848 + 2195 + + + f0f5c32d3dfe340a88be037ef1cc3f270ab8e967ba848d17117d7ee2dca7fb32 + 3de9b5339548daffe78ab6990669d56a1e016ade04b00d184d273d5599924d41 + + 1528467017 + 810 + 2144 + + + 81a44a582fc126bb7ce5785ea41c028a458e2f1cfcdb9176981f3e8504da81cc + 27029930f91be35b270ca600acfb71d1bf45e24846c0970e1ee7897146ead1a1 + + 1528467017 + 3841 + 106496 + 10 + + + 9db4910badc4de5bbfd4a1aefd85d164d5580fa1093c1cfeee9991485dac25a0 + 9586eaae11a5c6189e37ce70954023c50b3018e2275ebe7476fbc4b54362cb8b + + 1528467017 + 1488 + 28672 + 10 + + + a3628a8e0fa6cf952021c2aab864aff84c8e3456f392ff52b37be7cda7c9efb5 + c8d52b8ddd29400b75ce51b1db92088a360bd5fc05da194219c104a02433a6ed + + 1528467017 + 1409 + 24576 + 10 + + + 3a212be1927ef000edb547d1be028f0fa12f44cab57feeb4c3e40602c13cd07c + 6a53071b6d9fdfe5e6484fe91eb385ca57262dc98d166d5d599764f7662fbc75 + + 1531828716 + 363 + 806 + + diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/i686/systemd-219-30.i686.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/i686/systemd-219-30.i686.rpm new file mode 100644 index 0000000..a1f8ac7 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/i686/systemd-219-30.i686.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/noarch/basesystem-10.0-7.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/noarch/basesystem-10.0-7.noarch.rpm new file mode 100644 index 0000000..9f1be1a Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/noarch/basesystem-10.0-7.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/noarch/bash-doc-4.2.46-21.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/noarch/bash-doc-4.2.46-21.noarch.rpm new file mode 100644 index 0000000..320890d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/noarch/bash-doc-4.2.46-21.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/noarch/kernel-doc-3.10.0-514.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/noarch/kernel-doc-3.10.0-514.noarch.rpm new file mode 100644 index 0000000..f7a3b13 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/noarch/kernel-doc-3.10.0-514.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/base-runtime-rhel73-1.s390x.yaml b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/base-runtime-rhel73-1.s390x.yaml new file mode 100644 index 0000000..37302e7 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/base-runtime-rhel73-1.s390x.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: rhel73 + version: 1 + context: e3b0c442 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:10.0-7.noarch + - bash-0:4.2.46-21.s390x + - bash-doc-0:4.2.46-21.noarch + - dummy-nscd-0:2.17-157.s390x + - filesystem-0:3.2-21.s390x + - glibc-0:2.17-157.s390x + - glibc-common-0:2.17-157.s390x + - glibc-debuginfo-common-0:2.17-157.s390x + - kernel-0:3.10.0-514.s390x + - kernel-doc-0:3.10.0-514.noarch + - kernel-headers-0:3.10.0-514.s390x + - systemd-0:219-30.s390x +... diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/basesystem-10.0-7.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/basesystem-10.0-7.noarch.rpm new file mode 100644 index 0000000..9f1be1a Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/basesystem-10.0-7.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/bash-4.2.46-21.s390x.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/bash-4.2.46-21.s390x.rpm new file mode 100644 index 0000000..b1b8d6f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/bash-4.2.46-21.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/bash-doc-4.2.46-21.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/bash-doc-4.2.46-21.noarch.rpm new file mode 100644 index 0000000..320890d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/bash-doc-4.2.46-21.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/dummy-nscd-2.17-157.s390x.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/dummy-nscd-2.17-157.s390x.rpm new file mode 100644 index 0000000..c0330d8 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/dummy-nscd-2.17-157.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/filesystem-3.2-21.s390x.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/filesystem-3.2-21.s390x.rpm new file mode 100644 index 0000000..08ba405 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/filesystem-3.2-21.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/glibc-2.17-157.s390x.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/glibc-2.17-157.s390x.rpm new file mode 100644 index 0000000..0a88477 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/glibc-2.17-157.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/glibc-common-2.17-157.s390x.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/glibc-common-2.17-157.s390x.rpm new file mode 100644 index 0000000..c347e83 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/glibc-common-2.17-157.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/glibc-debuginfo-common-2.17-157.s390x.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/glibc-debuginfo-common-2.17-157.s390x.rpm new file mode 100644 index 0000000..b65b588 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/glibc-debuginfo-common-2.17-157.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/kernel-3.10.0-514.s390x.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/kernel-3.10.0-514.s390x.rpm new file mode 100644 index 0000000..c2c9a6c Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/kernel-3.10.0-514.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/kernel-doc-3.10.0-514.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/kernel-doc-3.10.0-514.noarch.rpm new file mode 100644 index 0000000..f7a3b13 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/kernel-doc-3.10.0-514.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/kernel-headers-3.10.0-514.s390x.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/kernel-headers-3.10.0-514.s390x.rpm new file mode 100644 index 0000000..0b88d7f Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/kernel-headers-3.10.0-514.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/152d04693f3af3745e4c6ad6c97016d2fbd53b37ce15ed05bc43f4af9c82ffc1-primary.sqlite.bz2 b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/152d04693f3af3745e4c6ad6c97016d2fbd53b37ce15ed05bc43f4af9c82ffc1-primary.sqlite.bz2 new file mode 100644 index 0000000..e85bb65 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/152d04693f3af3745e4c6ad6c97016d2fbd53b37ce15ed05bc43f4af9c82ffc1-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/367ab55c377a9215a6d0226a11eda1f5448982bdab7065f4824a7f979595c7ae-other.sqlite.bz2 b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/367ab55c377a9215a6d0226a11eda1f5448982bdab7065f4824a7f979595c7ae-other.sqlite.bz2 new file mode 100644 index 0000000..d4a8547 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/367ab55c377a9215a6d0226a11eda1f5448982bdab7065f4824a7f979595c7ae-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/49330a2d118f8e9e3b650f25ebaad6f5f6442d309a8d4e370d6738d4b9fa0432-modules.yaml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/49330a2d118f8e9e3b650f25ebaad6f5f6442d309a8d4e370d6738d4b9fa0432-modules.yaml.gz new file mode 100644 index 0000000..1b2b3d8 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/49330a2d118f8e9e3b650f25ebaad6f5f6442d309a8d4e370d6738d4b9fa0432-modules.yaml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/50251017cd9f26335d97e8bb833645a929d2dc8d3beadf4cd90458dedf515180-other.xml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/50251017cd9f26335d97e8bb833645a929d2dc8d3beadf4cd90458dedf515180-other.xml.gz new file mode 100644 index 0000000..c230740 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/50251017cd9f26335d97e8bb833645a929d2dc8d3beadf4cd90458dedf515180-other.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/785b60c3c4654685256fd185979a315c90cfdda605b7481dedb611bc31f3410b-filelists.sqlite.bz2 b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/785b60c3c4654685256fd185979a315c90cfdda605b7481dedb611bc31f3410b-filelists.sqlite.bz2 new file mode 100644 index 0000000..d9cf32c Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/785b60c3c4654685256fd185979a315c90cfdda605b7481dedb611bc31f3410b-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/84c169e08837b770e5fa68e856ca0b579357feeb477d1ddc1006cf2aa8ab1326-filelists.xml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/84c169e08837b770e5fa68e856ca0b579357feeb477d1ddc1006cf2aa8ab1326-filelists.xml.gz new file mode 100644 index 0000000..d219b26 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/84c169e08837b770e5fa68e856ca0b579357feeb477d1ddc1006cf2aa8ab1326-filelists.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/8a03380707a74f5335d064b6902086bd06d4c57b3196f314bca3ca386df3618f-primary.xml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/8a03380707a74f5335d064b6902086bd06d4c57b3196f314bca3ca386df3618f-primary.xml.gz new file mode 100644 index 0000000..775e273 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/8a03380707a74f5335d064b6902086bd06d4c57b3196f314bca3ca386df3618f-primary.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/repomd.xml b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/repomd.xml new file mode 100644 index 0000000..2b3e5f6 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467017 + + 8a03380707a74f5335d064b6902086bd06d4c57b3196f314bca3ca386df3618f + af5a6acd4637a9c083f4afcf1d195dfa5324080b097e0c635fc401c947e55f76 + + 1528467018 + 1774 + 12891 + + + 84c169e08837b770e5fa68e856ca0b579357feeb477d1ddc1006cf2aa8ab1326 + 47ad251854c7c2a03eef08cc897568437d41c1b6ba2f90a897acbd828bd6537f + + 1528467018 + 846 + 2206 + + + 50251017cd9f26335d97e8bb833645a929d2dc8d3beadf4cd90458dedf515180 + 2b1359435e91554011b61f5bc10a3b6a56e188bda0b93e4071fa62d5178e382b + + 1528467018 + 808 + 2153 + + + 152d04693f3af3745e4c6ad6c97016d2fbd53b37ce15ed05bc43f4af9c82ffc1 + 9d8be3fc9b0a7546170c804f04be64592d0b7a9dcae1bd34d0c720623a2da8a6 + + 1528467018 + 3879 + 106496 + 10 + + + 785b60c3c4654685256fd185979a315c90cfdda605b7481dedb611bc31f3410b + d557a01e69c1d6ba24e124ce2cbe977389c87ca252c087aaf63cbeaad7206387 + + 1528467018 + 1480 + 28672 + 10 + + + 367ab55c377a9215a6d0226a11eda1f5448982bdab7065f4824a7f979595c7ae + b8c1cc11132ec20adfdc7eecb8cb86333d285f456e5b5a228fa1e1b8f9ff55f2 + + 1528467018 + 1393 + 24576 + 10 + + + 49330a2d118f8e9e3b650f25ebaad6f5f6442d309a8d4e370d6738d4b9fa0432 + eef52b2fef393b48db372450027e703b5c9c6ef2bf7f1b426be30f550c04c6e7 + + 1531828717 + 364 + 816 + + diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/s390x/systemd-219-30.s390x.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/systemd-219-30.s390x.rpm new file mode 100644 index 0000000..9db4ec5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/s390x/systemd-219-30.s390x.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/src/base-runtime-rhel73-1.src.yaml b/data/tests/modules/modules/base-runtime-rhel73-1/src/base-runtime-rhel73-1.src.yaml new file mode 100644 index 0000000..2e37384 --- /dev/null +++ b/data/tests/modules/modules/base-runtime-rhel73-1/src/base-runtime-rhel73-1.src.yaml @@ -0,0 +1,39 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: rhel73 + version: 1 + context: e3b0c442 + arch: src + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:10.0-7.noarch + - basesystem-0:10.0-7.src + - bash-0:4.2.46-21.src + - bash-doc-0:4.2.46-21.noarch + - filesystem-0:3.2-21.src + - glibc-0:2.17-157.src + - kernel-0:3.10.0-514.src + - kernel-doc-0:3.10.0-514.noarch + - systemd-0:219-30.src +... diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/src/basesystem-10.0-7.src.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/src/basesystem-10.0-7.src.rpm new file mode 100644 index 0000000..2790137 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/src/basesystem-10.0-7.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/src/bash-4.2.46-21.src.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/src/bash-4.2.46-21.src.rpm new file mode 100644 index 0000000..2a2c831 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/src/bash-4.2.46-21.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/src/filesystem-3.2-21.src.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/src/filesystem-3.2-21.src.rpm new file mode 100644 index 0000000..827e07b Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/src/filesystem-3.2-21.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/src/glibc-2.17-157.src.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/src/glibc-2.17-157.src.rpm new file mode 100644 index 0000000..a70861b Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/src/glibc-2.17-157.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/src/kernel-3.10.0-514.src.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/src/kernel-3.10.0-514.src.rpm new file mode 100644 index 0000000..118a312 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/src/kernel-3.10.0-514.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/src/systemd-219-30.src.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/src/systemd-219-30.src.rpm new file mode 100644 index 0000000..efdc1c7 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/src/systemd-219-30.src.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/base-runtime-rhel73-1.x86_64.yaml b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/base-runtime-rhel73-1.x86_64.yaml new file mode 100644 index 0000000..7b3838c --- /dev/null +++ b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/base-runtime-rhel73-1.x86_64.yaml @@ -0,0 +1,42 @@ +--- +document: modulemd +version: 2 +data: + name: base-runtime + stream: rhel73 + version: 1 + context: e3b0c442 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + profiles: + default: + rpms: + - bash + - glibc + - kernel + - systemd + minimal: + rpms: + - glibc + buildopts: + rpms: {} + artifacts: + rpms: + - basesystem-0:10.0-7.noarch + - bash-0:4.2.46-21.x86_64 + - bash-doc-0:4.2.46-21.noarch + - dummy-nscd-0:2.17-157.x86_64 + - filesystem-0:3.2-21.x86_64 + - glibc-0:2.17-157.x86_64 + - glibc-common-0:2.17-157.x86_64 + - glibc-debuginfo-common-0:2.17-157.x86_64 + - kernel-0:3.10.0-514.x86_64 + - kernel-doc-0:3.10.0-514.noarch + - kernel-headers-0:3.10.0-514.x86_64 + - systemd-0:219-30.x86_64 +... diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/basesystem-10.0-7.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/basesystem-10.0-7.noarch.rpm new file mode 100644 index 0000000..9f1be1a Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/basesystem-10.0-7.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/bash-4.2.46-21.x86_64.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/bash-4.2.46-21.x86_64.rpm new file mode 100644 index 0000000..ab7e30d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/bash-4.2.46-21.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/bash-doc-4.2.46-21.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/bash-doc-4.2.46-21.noarch.rpm new file mode 100644 index 0000000..320890d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/bash-doc-4.2.46-21.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/dummy-nscd-2.17-157.x86_64.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/dummy-nscd-2.17-157.x86_64.rpm new file mode 100644 index 0000000..dec61f5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/dummy-nscd-2.17-157.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/filesystem-3.2-21.x86_64.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/filesystem-3.2-21.x86_64.rpm new file mode 100644 index 0000000..eca99c5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/filesystem-3.2-21.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/glibc-2.17-157.x86_64.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/glibc-2.17-157.x86_64.rpm new file mode 100644 index 0000000..c152260 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/glibc-2.17-157.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/glibc-common-2.17-157.x86_64.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/glibc-common-2.17-157.x86_64.rpm new file mode 100644 index 0000000..ebba5b5 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/glibc-common-2.17-157.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/glibc-debuginfo-common-2.17-157.x86_64.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/glibc-debuginfo-common-2.17-157.x86_64.rpm new file mode 100644 index 0000000..c786bd4 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/glibc-debuginfo-common-2.17-157.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/kernel-3.10.0-514.x86_64.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/kernel-3.10.0-514.x86_64.rpm new file mode 100644 index 0000000..ea74310 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/kernel-3.10.0-514.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/kernel-doc-3.10.0-514.noarch.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/kernel-doc-3.10.0-514.noarch.rpm new file mode 100644 index 0000000..f7a3b13 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/kernel-doc-3.10.0-514.noarch.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/kernel-headers-3.10.0-514.x86_64.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/kernel-headers-3.10.0-514.x86_64.rpm new file mode 100644 index 0000000..d6a5b3d Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/kernel-headers-3.10.0-514.x86_64.rpm differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/0ba33f69df15c52810c926a90d28b44c37da3d56fd772a681f354d517d2b499c-filelists.sqlite.bz2 b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/0ba33f69df15c52810c926a90d28b44c37da3d56fd772a681f354d517d2b499c-filelists.sqlite.bz2 new file mode 100644 index 0000000..9751df7 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/0ba33f69df15c52810c926a90d28b44c37da3d56fd772a681f354d517d2b499c-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/4a36be3446bb1c0c556bfdaddd174262baffe920ce0e98ebffcd16b932929294-primary.sqlite.bz2 b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/4a36be3446bb1c0c556bfdaddd174262baffe920ce0e98ebffcd16b932929294-primary.sqlite.bz2 new file mode 100644 index 0000000..e0d8630 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/4a36be3446bb1c0c556bfdaddd174262baffe920ce0e98ebffcd16b932929294-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/9d9fe100426ee8ea2b7c4484bd3567caebab9efd5d8356531bc7f9562860eef3-other.sqlite.bz2 b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/9d9fe100426ee8ea2b7c4484bd3567caebab9efd5d8356531bc7f9562860eef3-other.sqlite.bz2 new file mode 100644 index 0000000..cdca979 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/9d9fe100426ee8ea2b7c4484bd3567caebab9efd5d8356531bc7f9562860eef3-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/b9c794d1e56cb24aa92eefc14899370ac651950f13d38edfc5af0306e5d308cf-modules.yaml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/b9c794d1e56cb24aa92eefc14899370ac651950f13d38edfc5af0306e5d308cf-modules.yaml.gz new file mode 100644 index 0000000..66d1926 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/b9c794d1e56cb24aa92eefc14899370ac651950f13d38edfc5af0306e5d308cf-modules.yaml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/ea4391fbe23bc6864552592fdc6b2b3175acf2ba8ea9b2ceea24a5035670d4ed-filelists.xml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/ea4391fbe23bc6864552592fdc6b2b3175acf2ba8ea9b2ceea24a5035670d4ed-filelists.xml.gz new file mode 100644 index 0000000..44fac95 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/ea4391fbe23bc6864552592fdc6b2b3175acf2ba8ea9b2ceea24a5035670d4ed-filelists.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/efad95bf718650757aaf128a50541a5986ebbb5a42f2b552381b6e36eb89a941-other.xml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/efad95bf718650757aaf128a50541a5986ebbb5a42f2b552381b6e36eb89a941-other.xml.gz new file mode 100644 index 0000000..5911505 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/efad95bf718650757aaf128a50541a5986ebbb5a42f2b552381b6e36eb89a941-other.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/fb2a6d2c1b9e1102963a1c85c16ea6dfa255cee6506406ccf34a55237e1514f7-primary.xml.gz b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/fb2a6d2c1b9e1102963a1c85c16ea6dfa255cee6506406ccf34a55237e1514f7-primary.xml.gz new file mode 100644 index 0000000..69e8ed0 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/fb2a6d2c1b9e1102963a1c85c16ea6dfa255cee6506406ccf34a55237e1514f7-primary.xml.gz differ diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/repomd.xml b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/repomd.xml new file mode 100644 index 0000000..487a0da --- /dev/null +++ b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467017 + + fb2a6d2c1b9e1102963a1c85c16ea6dfa255cee6506406ccf34a55237e1514f7 + 204e9cecf141bde61b55a92f6ec02ea9af42cccb73a0c18a9ae22b52e221be52 + + 1528467017 + 1769 + 12900 + + + ea4391fbe23bc6864552592fdc6b2b3175acf2ba8ea9b2ceea24a5035670d4ed + 2bf554d19dbb6c0ccee66bc9d669ffea6e8ff768fe932ff789edbce190c71ba2 + + 1528467017 + 845 + 2215 + + + efad95bf718650757aaf128a50541a5986ebbb5a42f2b552381b6e36eb89a941 + 5a2f81e441d028dcaf6c5688a37e23d902edbee9533c0228163771a399d34e60 + + 1528467017 + 804 + 2162 + + + 4a36be3446bb1c0c556bfdaddd174262baffe920ce0e98ebffcd16b932929294 + 0dc5f6a1e5b35486b48212aa89c8036039ce2b88ea957bb5287b67218de6af7d + + 1528467017 + 3858 + 106496 + 10 + + + 0ba33f69df15c52810c926a90d28b44c37da3d56fd772a681f354d517d2b499c + 3ba3f8cb7d353af7f89bfa0ba3190fd784a2720f0cccb0e8663a9c5ef7cf5939 + + 1528467017 + 1477 + 28672 + 10 + + + 9d9fe100426ee8ea2b7c4484bd3567caebab9efd5d8356531bc7f9562860eef3 + b4ef08d420903c32841d4f71950b2740c5b437661f8fd12ef41b6676b7d28f3f + + 1528467017 + 1375 + 24576 + 10 + + + b9c794d1e56cb24aa92eefc14899370ac651950f13d38edfc5af0306e5d308cf + ec51f6e90d8a92eb010e4c5af0059c69c799f65d70d9d0a7d27dbcee98c5581c + + 1531828716 + 368 + 826 + + diff --git a/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/systemd-219-30.x86_64.rpm b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/systemd-219-30.x86_64.rpm new file mode 100644 index 0000000..ca82d23 Binary files /dev/null and b/data/tests/modules/modules/base-runtime-rhel73-1/x86_64/systemd-219-30.x86_64.rpm differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/httpd-2.2-1.i686.yaml b/data/tests/modules/modules/httpd-2.2-1/i686/httpd-2.2-1.i686.yaml new file mode 100644 index 0000000..940abb8 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.2-1/i686/httpd-2.2-1.i686.yaml @@ -0,0 +1,32 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.2 + version: 1 + context: e3b0c442 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.2.15-59.i686 + - httpd-doc-0:2.2.15-59.i686 +... diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/httpd-2.2.15-59.i686.rpm b/data/tests/modules/modules/httpd-2.2-1/i686/httpd-2.2.15-59.i686.rpm new file mode 100644 index 0000000..b69fd61 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/i686/httpd-2.2.15-59.i686.rpm differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/httpd-doc-2.2.15-59.i686.rpm b/data/tests/modules/modules/httpd-2.2-1/i686/httpd-doc-2.2.15-59.i686.rpm new file mode 100644 index 0000000..e4aa14d Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/i686/httpd-doc-2.2.15-59.i686.rpm differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/repodata/03fc6ad0f80026d72250a47548078e9612031fc8dfad101b6ca40542ac9e443d-filelists.xml.gz b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/03fc6ad0f80026d72250a47548078e9612031fc8dfad101b6ca40542ac9e443d-filelists.xml.gz new file mode 100644 index 0000000..876a06a Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/03fc6ad0f80026d72250a47548078e9612031fc8dfad101b6ca40542ac9e443d-filelists.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/repodata/2d442fe4da23ac7f985e87b6117e11d32cd66e8d69fc7a7c30b0635e2b1dac4d-modules.yaml.gz b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/2d442fe4da23ac7f985e87b6117e11d32cd66e8d69fc7a7c30b0635e2b1dac4d-modules.yaml.gz new file mode 100644 index 0000000..f1e05ed Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/2d442fe4da23ac7f985e87b6117e11d32cd66e8d69fc7a7c30b0635e2b1dac4d-modules.yaml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/repodata/32afd669744ee4e82988d9133e1dcf227b8f34b6b0b56520730bbf32ec2bb163-other.xml.gz b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/32afd669744ee4e82988d9133e1dcf227b8f34b6b0b56520730bbf32ec2bb163-other.xml.gz new file mode 100644 index 0000000..7bf06ff Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/32afd669744ee4e82988d9133e1dcf227b8f34b6b0b56520730bbf32ec2bb163-other.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/repodata/349e47ae3b916ffda1663b6cd9b3cb48f071ffcd933d925551ee347d21e803d1-primary.sqlite.bz2 b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/349e47ae3b916ffda1663b6cd9b3cb48f071ffcd933d925551ee347d21e803d1-primary.sqlite.bz2 new file mode 100644 index 0000000..92cc089 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/349e47ae3b916ffda1663b6cd9b3cb48f071ffcd933d925551ee347d21e803d1-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/repodata/406cccd510cff9f9d92a8a493624aea3a0c9a94c6827ccbbe0b69d40f0c8665b-primary.xml.gz b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/406cccd510cff9f9d92a8a493624aea3a0c9a94c6827ccbbe0b69d40f0c8665b-primary.xml.gz new file mode 100644 index 0000000..bf2e4b3 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/406cccd510cff9f9d92a8a493624aea3a0c9a94c6827ccbbe0b69d40f0c8665b-primary.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/repodata/5fc06cb7cfbeac4e777ea42590c892035eb95329ee0b7da2e4ddef3da04ab0e9-other.sqlite.bz2 b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/5fc06cb7cfbeac4e777ea42590c892035eb95329ee0b7da2e4ddef3da04ab0e9-other.sqlite.bz2 new file mode 100644 index 0000000..9579335 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/5fc06cb7cfbeac4e777ea42590c892035eb95329ee0b7da2e4ddef3da04ab0e9-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/repodata/9f95de36bcaf98a0fc3e8483ada52c715916b060820a4309efe3a0687c851c4b-filelists.sqlite.bz2 b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/9f95de36bcaf98a0fc3e8483ada52c715916b060820a4309efe3a0687c851c4b-filelists.sqlite.bz2 new file mode 100644 index 0000000..1783324 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/9f95de36bcaf98a0fc3e8483ada52c715916b060820a4309efe3a0687c851c4b-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.2-1/i686/repodata/repomd.xml b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/repomd.xml new file mode 100644 index 0000000..bb5e12a --- /dev/null +++ b/data/tests/modules/modules/httpd-2.2-1/i686/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467018 + + 406cccd510cff9f9d92a8a493624aea3a0c9a94c6827ccbbe0b69d40f0c8665b + a49107373c975c0941ab795eadf2142758a23f9ca3512d419bb26c3259712c29 + + 1528467018 + 709 + 2288 + + + 03fc6ad0f80026d72250a47548078e9612031fc8dfad101b6ca40542ac9e443d + bba5253e116a5166ffcf8fdfb9db9a7e823237c24cf965e007b83598517aa792 + + 1528467018 + 281 + 457 + + + 32afd669744ee4e82988d9133e1dcf227b8f34b6b0b56520730bbf32ec2bb163 + c253c3599f5586826acbc3845633331571378776d81dea5aa44ba10e0f40b082 + + 1528467018 + 281 + 453 + + + 349e47ae3b916ffda1663b6cd9b3cb48f071ffcd933d925551ee347d21e803d1 + 33726045c4f6874f10e06e8d842687bffd6fa0bf5437e88d21f2f0d1ac3f11e8 + + 1528467018 + 2009 + 106496 + 10 + + + 9f95de36bcaf98a0fc3e8483ada52c715916b060820a4309efe3a0687c851c4b + 49aa0f7d81989b644da0b53a39751b1d9f9cd307be4cd620fcb8acbd991146f5 + + 1528467018 + 761 + 28672 + 10 + + + 5fc06cb7cfbeac4e777ea42590c892035eb95329ee0b7da2e4ddef3da04ab0e9 + d85f791b834c792464e180769811de4a77ee6fe55583e5a81a96d4ccc05db04c + + 1528467018 + 739 + 24576 + 10 + + + 2d442fe4da23ac7f985e87b6117e11d32cd66e8d69fc7a7c30b0635e2b1dac4d + 95b76e2d493f3eb70f6b5d23c9a2ba2e20e0db36be2db6145d6e7c99ae3009e7 + + 1531828717 + 266 + 465 + + diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/httpd-2.2-1.s390x.yaml b/data/tests/modules/modules/httpd-2.2-1/s390x/httpd-2.2-1.s390x.yaml new file mode 100644 index 0000000..3c29f87 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.2-1/s390x/httpd-2.2-1.s390x.yaml @@ -0,0 +1,32 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.2 + version: 1 + context: e3b0c442 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.2.15-59.s390x + - httpd-doc-0:2.2.15-59.s390x +... diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/httpd-2.2.15-59.s390x.rpm b/data/tests/modules/modules/httpd-2.2-1/s390x/httpd-2.2.15-59.s390x.rpm new file mode 100644 index 0000000..1002970 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/s390x/httpd-2.2.15-59.s390x.rpm differ diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/httpd-doc-2.2.15-59.s390x.rpm b/data/tests/modules/modules/httpd-2.2-1/s390x/httpd-doc-2.2.15-59.s390x.rpm new file mode 100644 index 0000000..3fd44b4 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/s390x/httpd-doc-2.2.15-59.s390x.rpm differ diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/13e3f7c04b46c1682182e4d566add538d1d8ed37e61f7dbdc6e16aeaa4768805-other.xml.gz b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/13e3f7c04b46c1682182e4d566add538d1d8ed37e61f7dbdc6e16aeaa4768805-other.xml.gz new file mode 100644 index 0000000..ca5a7af Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/13e3f7c04b46c1682182e4d566add538d1d8ed37e61f7dbdc6e16aeaa4768805-other.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/1870278259386f08c27583d2575457f185d065fff15526a93fe30652a747d1a7-modules.yaml.gz b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/1870278259386f08c27583d2575457f185d065fff15526a93fe30652a747d1a7-modules.yaml.gz new file mode 100644 index 0000000..5865621 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/1870278259386f08c27583d2575457f185d065fff15526a93fe30652a747d1a7-modules.yaml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/acee6d3b27377f84fcfccb87b8f457c2def0851908367a5025c5b5e66e6f8a7f-filelists.sqlite.bz2 b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/acee6d3b27377f84fcfccb87b8f457c2def0851908367a5025c5b5e66e6f8a7f-filelists.sqlite.bz2 new file mode 100644 index 0000000..18e4217 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/acee6d3b27377f84fcfccb87b8f457c2def0851908367a5025c5b5e66e6f8a7f-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/bc47c370a43f00aed37066c4a4ed16549985892deb8ebbe300e644553fef5658-primary.sqlite.bz2 b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/bc47c370a43f00aed37066c4a4ed16549985892deb8ebbe300e644553fef5658-primary.sqlite.bz2 new file mode 100644 index 0000000..4fbe8aa Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/bc47c370a43f00aed37066c4a4ed16549985892deb8ebbe300e644553fef5658-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/d01175c963911d4feace8e30a699f870d3d815f48c37230c81dbe6bad595dd06-primary.xml.gz b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/d01175c963911d4feace8e30a699f870d3d815f48c37230c81dbe6bad595dd06-primary.xml.gz new file mode 100644 index 0000000..9783761 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/d01175c963911d4feace8e30a699f870d3d815f48c37230c81dbe6bad595dd06-primary.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/da9f29cfe99a1ed025c73cf82945a685aa3e2164509fe1b7bba24b735469d1f9-filelists.xml.gz b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/da9f29cfe99a1ed025c73cf82945a685aa3e2164509fe1b7bba24b735469d1f9-filelists.xml.gz new file mode 100644 index 0000000..cf18f05 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/da9f29cfe99a1ed025c73cf82945a685aa3e2164509fe1b7bba24b735469d1f9-filelists.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/e22de26db83948d25ec12d327c1794f8cad18c14f7021e5428306dd4a456f7c4-other.sqlite.bz2 b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/e22de26db83948d25ec12d327c1794f8cad18c14f7021e5428306dd4a456f7c4-other.sqlite.bz2 new file mode 100644 index 0000000..e3d8cb5 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/e22de26db83948d25ec12d327c1794f8cad18c14f7021e5428306dd4a456f7c4-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/repomd.xml b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/repomd.xml new file mode 100644 index 0000000..c6f1a59 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.2-1/s390x/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467019 + + d01175c963911d4feace8e30a699f870d3d815f48c37230c81dbe6bad595dd06 + fb5426b4b984cfa039a4ec4d47c93a45dd0388e0b9eccc18c95c7ecbbcfd415d + + 1528467019 + 708 + 2294 + + + da9f29cfe99a1ed025c73cf82945a685aa3e2164509fe1b7bba24b735469d1f9 + 475d46b12de29404dca4ffdf933318d0459dd8018980c7a58c9175455dbeb49c + + 1528467019 + 282 + 459 + + + 13e3f7c04b46c1682182e4d566add538d1d8ed37e61f7dbdc6e16aeaa4768805 + ab38e84274b93556fd50b76b44853885018eef718bd01f4f80ce104f4cf1c94b + + 1528467019 + 281 + 455 + + + bc47c370a43f00aed37066c4a4ed16549985892deb8ebbe300e644553fef5658 + 7adde6252385429fe5c2e1914d5b03d7de4c6af7442529d3f03dc71cb9aafe91 + + 1528467019 + 2016 + 106496 + 10 + + + acee6d3b27377f84fcfccb87b8f457c2def0851908367a5025c5b5e66e6f8a7f + 4bace08963d42824c4cba3b942bc53ac99687a8e1140937f984efb2d2dc6f292 + + 1528467019 + 763 + 28672 + 10 + + + e22de26db83948d25ec12d327c1794f8cad18c14f7021e5428306dd4a456f7c4 + fb86dfe21da8f237992cc0352c6a9dd1350558b295fefbcb8a9728a34dcf1ac0 + + 1528467019 + 732 + 24576 + 10 + + + 1870278259386f08c27583d2575457f185d065fff15526a93fe30652a747d1a7 + acf732b8ab840c475394aef2e522166a0833b266ebd42c75325dabd1b9fed15a + + 1531828717 + 266 + 468 + + diff --git a/data/tests/modules/modules/httpd-2.2-1/src/httpd-2.2-1.src.yaml b/data/tests/modules/modules/httpd-2.2-1/src/httpd-2.2-1.src.yaml new file mode 100644 index 0000000..df08363 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.2-1/src/httpd-2.2-1.src.yaml @@ -0,0 +1,31 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.2 + version: 1 + context: e3b0c442 + arch: src + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.2.15-59.src +... diff --git a/data/tests/modules/modules/httpd-2.2-1/src/httpd-2.2.15-59.src.rpm b/data/tests/modules/modules/httpd-2.2-1/src/httpd-2.2.15-59.src.rpm new file mode 100644 index 0000000..170f62f Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/src/httpd-2.2.15-59.src.rpm differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/httpd-2.2-1.x86_64.yaml b/data/tests/modules/modules/httpd-2.2-1/x86_64/httpd-2.2-1.x86_64.yaml new file mode 100644 index 0000000..443aa4c --- /dev/null +++ b/data/tests/modules/modules/httpd-2.2-1/x86_64/httpd-2.2-1.x86_64.yaml @@ -0,0 +1,32 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.2 + version: 1 + context: e3b0c442 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.2.15-59.x86_64 + - httpd-doc-0:2.2.15-59.x86_64 +... diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/httpd-2.2.15-59.x86_64.rpm b/data/tests/modules/modules/httpd-2.2-1/x86_64/httpd-2.2.15-59.x86_64.rpm new file mode 100644 index 0000000..7e242e6 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/x86_64/httpd-2.2.15-59.x86_64.rpm differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/httpd-doc-2.2.15-59.x86_64.rpm b/data/tests/modules/modules/httpd-2.2-1/x86_64/httpd-doc-2.2.15-59.x86_64.rpm new file mode 100644 index 0000000..09ef1ba Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/x86_64/httpd-doc-2.2.15-59.x86_64.rpm differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/0634a236b57c9970e8236ecfd2863644b4312e75a68d4f8755308a570658acfc-filelists.xml.gz b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/0634a236b57c9970e8236ecfd2863644b4312e75a68d4f8755308a570658acfc-filelists.xml.gz new file mode 100644 index 0000000..0130ac7 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/0634a236b57c9970e8236ecfd2863644b4312e75a68d4f8755308a570658acfc-filelists.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/0b604aa496f768e638dd6f804c33403cf0764fbc4d3cdb41037b9c59f6460e75-other.sqlite.bz2 b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/0b604aa496f768e638dd6f804c33403cf0764fbc4d3cdb41037b9c59f6460e75-other.sqlite.bz2 new file mode 100644 index 0000000..3f10a0b Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/0b604aa496f768e638dd6f804c33403cf0764fbc4d3cdb41037b9c59f6460e75-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/1f66590abb9d80a053e36fbbcd54e0c7cf69e2253e285598aa402d742302b3e2-other.xml.gz b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/1f66590abb9d80a053e36fbbcd54e0c7cf69e2253e285598aa402d742302b3e2-other.xml.gz new file mode 100644 index 0000000..73335c9 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/1f66590abb9d80a053e36fbbcd54e0c7cf69e2253e285598aa402d742302b3e2-other.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/42dfbd1f0acf7e60911c0cf4b6ad1ead428942ff45ea1cac17ddbc9597560704-primary.xml.gz b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/42dfbd1f0acf7e60911c0cf4b6ad1ead428942ff45ea1cac17ddbc9597560704-primary.xml.gz new file mode 100644 index 0000000..468eba2 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/42dfbd1f0acf7e60911c0cf4b6ad1ead428942ff45ea1cac17ddbc9597560704-primary.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/4d3534b47120b1d466d207384a419d02f21ae311b83f7fe07aad3e74c453a551-primary.sqlite.bz2 b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/4d3534b47120b1d466d207384a419d02f21ae311b83f7fe07aad3e74c453a551-primary.sqlite.bz2 new file mode 100644 index 0000000..c9356e9 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/4d3534b47120b1d466d207384a419d02f21ae311b83f7fe07aad3e74c453a551-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/550fd328b5f3aa1366c6bf1d2089f6726eac2efc273fec3e1c9547d0fd272439-modules.yaml.gz b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/550fd328b5f3aa1366c6bf1d2089f6726eac2efc273fec3e1c9547d0fd272439-modules.yaml.gz new file mode 100644 index 0000000..efdd600 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/550fd328b5f3aa1366c6bf1d2089f6726eac2efc273fec3e1c9547d0fd272439-modules.yaml.gz differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/92217ee1dd392000dc473547b3dba06cabc8676b2ca10c4ebe242b945c8ea4d2-filelists.sqlite.bz2 b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/92217ee1dd392000dc473547b3dba06cabc8676b2ca10c4ebe242b945c8ea4d2-filelists.sqlite.bz2 new file mode 100644 index 0000000..4a5c4a1 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/92217ee1dd392000dc473547b3dba06cabc8676b2ca10c4ebe242b945c8ea4d2-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/repomd.xml b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/repomd.xml new file mode 100644 index 0000000..693ef59 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.2-1/x86_64/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467018 + + 42dfbd1f0acf7e60911c0cf4b6ad1ead428942ff45ea1cac17ddbc9597560704 + ed7b471dc655638a913c4b98cb4ba0e3fb64a5b9a42b26f1c997eb15e056c6ab + + 1528467019 + 710 + 2296 + + + 0634a236b57c9970e8236ecfd2863644b4312e75a68d4f8755308a570658acfc + d97cbc9ddea65f9864fc70214fb5d3f42f584d66414446315ff64b22276fc98e + + 1528467019 + 284 + 461 + + + 1f66590abb9d80a053e36fbbcd54e0c7cf69e2253e285598aa402d742302b3e2 + 917c112272bbf8b1618047e4513e189862fb80f501c2f3368942dc3dde1b698a + + 1528467019 + 283 + 457 + + + 4d3534b47120b1d466d207384a419d02f21ae311b83f7fe07aad3e74c453a551 + 0f93cde034b3716c4dfc6fb276ef64e8b730362793ab64a3c4e577f99781d075 + + 1528467019 + 2026 + 106496 + 10 + + + 92217ee1dd392000dc473547b3dba06cabc8676b2ca10c4ebe242b945c8ea4d2 + 7f11cdcd362e4cab36eea20858bd3cbc5221d67443cb7ef3539ef03f30f32cff + + 1528467019 + 764 + 28672 + 10 + + + 0b604aa496f768e638dd6f804c33403cf0764fbc4d3cdb41037b9c59f6460e75 + 8a248c4e9c66d0e851c96f9fd8bdf1c63fed53e62722bb8a04c628bb82235979 + + 1528467019 + 736 + 24576 + 10 + + + 550fd328b5f3aa1366c6bf1d2089f6726eac2efc273fec3e1c9547d0fd272439 + 9bf4875009a12466f77d39f1fcd0360c0cf109b2b1a60512a20133b9217cd4a7 + + 1531828717 + 269 + 471 + + diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/httpd-2.4-1.i686.yaml b/data/tests/modules/modules/httpd-2.4-1/i686/httpd-2.4-1.i686.yaml new file mode 100644 index 0000000..8d7bf23 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/i686/httpd-2.4-1.i686.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 1 + context: 3b6beaf8 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-7.i686 + - httpd-doc-0:2.4.25-7.i686 + - libnghttp2-0:1.21.1-1.i686 +... diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/httpd-2.4.25-7.i686.rpm b/data/tests/modules/modules/httpd-2.4-1/i686/httpd-2.4.25-7.i686.rpm new file mode 100644 index 0000000..15b5e01 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/httpd-2.4.25-7.i686.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/httpd-doc-2.4.25-7.i686.rpm b/data/tests/modules/modules/httpd-2.4-1/i686/httpd-doc-2.4.25-7.i686.rpm new file mode 100644 index 0000000..7df6845 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/httpd-doc-2.4.25-7.i686.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/httpd.yaml b/data/tests/modules/modules/httpd-2.4-1/i686/httpd.yaml new file mode 100644 index 0000000..58b1bda --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/i686/httpd.yaml @@ -0,0 +1,7 @@ +document: modulemd-defaults +version: 1 +data: + module: httpd + stream: 2.4 + profiles: + 2.4: [default] diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/libnghttp2-1.21.1-1.i686.rpm b/data/tests/modules/modules/httpd-2.4-1/i686/libnghttp2-1.21.1-1.i686.rpm new file mode 100644 index 0000000..5a9b439 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/libnghttp2-1.21.1-1.i686.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/repodata/01513c613857f65e208d002e44c245fc9348370d2e230d5a9147859cc2440e3b-modules.yaml.gz b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/01513c613857f65e208d002e44c245fc9348370d2e230d5a9147859cc2440e3b-modules.yaml.gz new file mode 100644 index 0000000..9c688f0 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/01513c613857f65e208d002e44c245fc9348370d2e230d5a9147859cc2440e3b-modules.yaml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/repodata/49c3743df58e1b96d8e0101f2acd400e3e0fb727fc2801be142e2abc69ebe30f-filelists.xml.gz b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/49c3743df58e1b96d8e0101f2acd400e3e0fb727fc2801be142e2abc69ebe30f-filelists.xml.gz new file mode 100644 index 0000000..e1a9aa5 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/49c3743df58e1b96d8e0101f2acd400e3e0fb727fc2801be142e2abc69ebe30f-filelists.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/repodata/4bd94b7b17f27a3d6323fcac3e2f8445fb4c8cd3852f9c8e436f031190630ee2-filelists.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/4bd94b7b17f27a3d6323fcac3e2f8445fb4c8cd3852f9c8e436f031190630ee2-filelists.sqlite.bz2 new file mode 100644 index 0000000..9f3c27e Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/4bd94b7b17f27a3d6323fcac3e2f8445fb4c8cd3852f9c8e436f031190630ee2-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/repodata/876456a8161f53035adf586603e355198f241b8de4fcc107895515e223d5d592-other.xml.gz b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/876456a8161f53035adf586603e355198f241b8de4fcc107895515e223d5d592-other.xml.gz new file mode 100644 index 0000000..0259d0c Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/876456a8161f53035adf586603e355198f241b8de4fcc107895515e223d5d592-other.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/repodata/8e04d815eaeb276a31beba7b289607497c1d5ada7a89e64fe678249092925310-other.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/8e04d815eaeb276a31beba7b289607497c1d5ada7a89e64fe678249092925310-other.sqlite.bz2 new file mode 100644 index 0000000..5eae0eb Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/8e04d815eaeb276a31beba7b289607497c1d5ada7a89e64fe678249092925310-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/repodata/ad24e687e4f3af0583f63fcd4f0e1e93b3ec279f011c69c28aca38e742e44f50-primary.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/ad24e687e4f3af0583f63fcd4f0e1e93b3ec279f011c69c28aca38e742e44f50-primary.sqlite.bz2 new file mode 100644 index 0000000..22df5a2 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/ad24e687e4f3af0583f63fcd4f0e1e93b3ec279f011c69c28aca38e742e44f50-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/repodata/caf6347c2a45d04a7bb0dbff256380fa1ff7af97d5f27dca09b3e80cd05c57c7-primary.xml.gz b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/caf6347c2a45d04a7bb0dbff256380fa1ff7af97d5f27dca09b3e80cd05c57c7-primary.xml.gz new file mode 100644 index 0000000..2a3e1b7 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/caf6347c2a45d04a7bb0dbff256380fa1ff7af97d5f27dca09b3e80cd05c57c7-primary.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/i686/repodata/repomd.xml b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/repomd.xml new file mode 100644 index 0000000..afd2f50 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/i686/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467019 + + caf6347c2a45d04a7bb0dbff256380fa1ff7af97d5f27dca09b3e80cd05c57c7 + 4fca2f5cbfa6ab7cefe91c28524133f2720f73669be8d47fb3050db18f8c599a + + 1528467020 + 831 + 3352 + + + 49c3743df58e1b96d8e0101f2acd400e3e0fb727fc2801be142e2abc69ebe30f + 4ce6839566552e66814641338f04803d58950d1e7c463269b930278b43cbdaf0 + + 1528467020 + 340 + 623 + + + 876456a8161f53035adf586603e355198f241b8de4fcc107895515e223d5d592 + 83da2d6a35f13be3a4c34ecbbc1de48ea8c99bedf1e73b962378b5ffac5e8926 + + 1528467020 + 339 + 619 + + + ad24e687e4f3af0583f63fcd4f0e1e93b3ec279f011c69c28aca38e742e44f50 + d613a96848dfc08ada6fb0f9dc6c1b4f6f21939ab3a7dd2248b1988654981627 + + 1528467020 + 2213 + 106496 + 10 + + + 4bd94b7b17f27a3d6323fcac3e2f8445fb4c8cd3852f9c8e436f031190630ee2 + 80c79e50a5de27f5e51e5e831679d7fc6942815e3e95bbdaf2d1a3cd668718ee + + 1528467020 + 827 + 28672 + 10 + + + 8e04d815eaeb276a31beba7b289607497c1d5ada7a89e64fe678249092925310 + 1c92e2a8e32a36e2182fd837ea2b01717302815eaaba863a3dc8478612e2afee + + 1528467020 + 795 + 24576 + 10 + + + 01513c613857f65e208d002e44c245fc9348370d2e230d5a9147859cc2440e3b + 36004e77217e2e7a7082ed5f92a18ab63add84dd6e631754993fe0157e5cbc2a + + 1531828717 + 316 + 627 + + diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/httpd-2.4-1.s390x.yaml b/data/tests/modules/modules/httpd-2.4-1/s390x/httpd-2.4-1.s390x.yaml new file mode 100644 index 0000000..88cc630 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/s390x/httpd-2.4-1.s390x.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 1 + context: 3b6beaf8 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-7.s390x + - httpd-doc-0:2.4.25-7.s390x + - libnghttp2-0:1.21.1-1.s390x +... diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/httpd-2.4.25-7.s390x.rpm b/data/tests/modules/modules/httpd-2.4-1/s390x/httpd-2.4.25-7.s390x.rpm new file mode 100644 index 0000000..ece38b3 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/httpd-2.4.25-7.s390x.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/httpd-doc-2.4.25-7.s390x.rpm b/data/tests/modules/modules/httpd-2.4-1/s390x/httpd-doc-2.4.25-7.s390x.rpm new file mode 100644 index 0000000..f1add54 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/httpd-doc-2.4.25-7.s390x.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/httpd.yaml b/data/tests/modules/modules/httpd-2.4-1/s390x/httpd.yaml new file mode 100644 index 0000000..58b1bda --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/s390x/httpd.yaml @@ -0,0 +1,7 @@ +document: modulemd-defaults +version: 1 +data: + module: httpd + stream: 2.4 + profiles: + 2.4: [default] diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/libnghttp2-1.21.1-1.s390x.rpm b/data/tests/modules/modules/httpd-2.4-1/s390x/libnghttp2-1.21.1-1.s390x.rpm new file mode 100644 index 0000000..02f644b Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/libnghttp2-1.21.1-1.s390x.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/5d551a4c6dbf729c05160bdefb5ed00d26716c69c042cf01aab2565640cb22ac-modules.yaml.gz b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/5d551a4c6dbf729c05160bdefb5ed00d26716c69c042cf01aab2565640cb22ac-modules.yaml.gz new file mode 100644 index 0000000..cb197be Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/5d551a4c6dbf729c05160bdefb5ed00d26716c69c042cf01aab2565640cb22ac-modules.yaml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/69857c70a6451479ee0c0a0e37286dc00bca5a2faa482d4b1d212eb6136fa0aa-primary.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/69857c70a6451479ee0c0a0e37286dc00bca5a2faa482d4b1d212eb6136fa0aa-primary.sqlite.bz2 new file mode 100644 index 0000000..75dbe15 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/69857c70a6451479ee0c0a0e37286dc00bca5a2faa482d4b1d212eb6136fa0aa-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/819e86e32d196c28ae699db394ad42096e1413f9de33ea048a8cb679f9cb25af-other.xml.gz b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/819e86e32d196c28ae699db394ad42096e1413f9de33ea048a8cb679f9cb25af-other.xml.gz new file mode 100644 index 0000000..e9a640d Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/819e86e32d196c28ae699db394ad42096e1413f9de33ea048a8cb679f9cb25af-other.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/90e5b6c7980d346897cdc6ca48d18f1490cbc7b38c6882f0c897e1c2ec2eaa67-other.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/90e5b6c7980d346897cdc6ca48d18f1490cbc7b38c6882f0c897e1c2ec2eaa67-other.sqlite.bz2 new file mode 100644 index 0000000..0af0297 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/90e5b6c7980d346897cdc6ca48d18f1490cbc7b38c6882f0c897e1c2ec2eaa67-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/a56b68690d5c0d9c40a9995cd9faa7dab2c755feda01f3558054dd9a8ac57f96-filelists.xml.gz b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/a56b68690d5c0d9c40a9995cd9faa7dab2c755feda01f3558054dd9a8ac57f96-filelists.xml.gz new file mode 100644 index 0000000..6769c0b Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/a56b68690d5c0d9c40a9995cd9faa7dab2c755feda01f3558054dd9a8ac57f96-filelists.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/b03ed2bfa70647d3929298055edcd0d3cc70f6c9bb559f02abd197bf4de42cfd-primary.xml.gz b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/b03ed2bfa70647d3929298055edcd0d3cc70f6c9bb559f02abd197bf4de42cfd-primary.xml.gz new file mode 100644 index 0000000..097c32b Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/b03ed2bfa70647d3929298055edcd0d3cc70f6c9bb559f02abd197bf4de42cfd-primary.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/c9e0910dc42a296d290975c711256d8f05e77b7c3784ca995454e4dbf5569652-filelists.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/c9e0910dc42a296d290975c711256d8f05e77b7c3784ca995454e4dbf5569652-filelists.sqlite.bz2 new file mode 100644 index 0000000..3fce331 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/c9e0910dc42a296d290975c711256d8f05e77b7c3784ca995454e4dbf5569652-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/repomd.xml b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/repomd.xml new file mode 100644 index 0000000..109fe10 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/s390x/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467021 + + b03ed2bfa70647d3929298055edcd0d3cc70f6c9bb559f02abd197bf4de42cfd + e0c4bccdb5f7983dcecd7a0c0376a3ee147b0ce8b54a7ec54dcb370c2b7d784a + + 1528467021 + 832 + 3361 + + + a56b68690d5c0d9c40a9995cd9faa7dab2c755feda01f3558054dd9a8ac57f96 + 4876f0456ef65f04491cb767f220d85b435ac5cbe2794bbddbf81951d5dd0785 + + 1528467021 + 344 + 626 + + + 819e86e32d196c28ae699db394ad42096e1413f9de33ea048a8cb679f9cb25af + 0d0cadb4298a182fc7a0a44212b5d5606dc5e8327fe4764f87ef1c6c2e87be8c + + 1528467021 + 343 + 622 + + + 69857c70a6451479ee0c0a0e37286dc00bca5a2faa482d4b1d212eb6136fa0aa + 8f9000bd2a5726ff3db0788652abb24b79159c150fd984409c73c63ac766b4d9 + + 1528467021 + 2215 + 106496 + 10 + + + c9e0910dc42a296d290975c711256d8f05e77b7c3784ca995454e4dbf5569652 + bb26665eb001ebeb11fe20f93a666d2401d71ea8ad43e120911b1af4ad567f0e + + 1528467021 + 828 + 28672 + 10 + + + 90e5b6c7980d346897cdc6ca48d18f1490cbc7b38c6882f0c897e1c2ec2eaa67 + 20be4f6b9eb4020ea9f5dad9f5163230fee34d554c80aaa4d78742a6a8628820 + + 1528467021 + 805 + 24576 + 10 + + + 5d551a4c6dbf729c05160bdefb5ed00d26716c69c042cf01aab2565640cb22ac + f7436f25a9691aa30d5618dda78ebe18cb523080edfbbc987e3154e8e648be30 + + 1531828717 + 318 + 631 + + diff --git a/data/tests/modules/modules/httpd-2.4-1/src/httpd-2.4-1.src.yaml b/data/tests/modules/modules/httpd-2.4-1/src/httpd-2.4-1.src.yaml new file mode 100644 index 0000000..a14d07c --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/src/httpd-2.4-1.src.yaml @@ -0,0 +1,32 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 1 + context: 3b6beaf8 + arch: src + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-7.src + - libnghttp2-0:1.21.1-1.src +... diff --git a/data/tests/modules/modules/httpd-2.4-1/src/httpd-2.4.25-7.src.rpm b/data/tests/modules/modules/httpd-2.4-1/src/httpd-2.4.25-7.src.rpm new file mode 100644 index 0000000..f2518a2 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/src/httpd-2.4.25-7.src.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/src/libnghttp2-1.21.1-1.src.rpm b/data/tests/modules/modules/httpd-2.4-1/src/libnghttp2-1.21.1-1.src.rpm new file mode 100644 index 0000000..560a5f0 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/src/libnghttp2-1.21.1-1.src.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd-2.4-1.x86_64.yaml b/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd-2.4-1.x86_64.yaml new file mode 100644 index 0000000..e41bd31 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd-2.4-1.x86_64.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 1 + context: 3b6beaf8 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-7.x86_64 + - httpd-doc-0:2.4.25-7.x86_64 + - libnghttp2-0:1.21.1-1.x86_64 +... diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd-2.4.25-7.x86_64.rpm b/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd-2.4.25-7.x86_64.rpm new file mode 100644 index 0000000..0c25bca Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd-2.4.25-7.x86_64.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd-doc-2.4.25-7.x86_64.rpm b/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd-doc-2.4.25-7.x86_64.rpm new file mode 100644 index 0000000..4e23d62 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd-doc-2.4.25-7.x86_64.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd.yaml b/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd.yaml new file mode 100644 index 0000000..58b1bda --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/x86_64/httpd.yaml @@ -0,0 +1,7 @@ +document: modulemd-defaults +version: 1 +data: + module: httpd + stream: 2.4 + profiles: + 2.4: [default] diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/libnghttp2-1.21.1-1.x86_64.rpm b/data/tests/modules/modules/httpd-2.4-1/x86_64/libnghttp2-1.21.1-1.x86_64.rpm new file mode 100644 index 0000000..18203e8 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/libnghttp2-1.21.1-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/1d9f907984681afe87cf3db455db7e496006d9873e143ce91f57f48163c1242c-filelists.xml.gz b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/1d9f907984681afe87cf3db455db7e496006d9873e143ce91f57f48163c1242c-filelists.xml.gz new file mode 100644 index 0000000..c978412 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/1d9f907984681afe87cf3db455db7e496006d9873e143ce91f57f48163c1242c-filelists.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/7401efdadd4f7177d130643053c50bad88b71c853a5dfaf844f5b1917e529d85-filelists.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/7401efdadd4f7177d130643053c50bad88b71c853a5dfaf844f5b1917e529d85-filelists.sqlite.bz2 new file mode 100644 index 0000000..90ee855 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/7401efdadd4f7177d130643053c50bad88b71c853a5dfaf844f5b1917e529d85-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/8f9dd5e236731653e5a4487334ddcd48907822e38fd5310e769b4e288cca09b8-primary.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/8f9dd5e236731653e5a4487334ddcd48907822e38fd5310e769b4e288cca09b8-primary.sqlite.bz2 new file mode 100644 index 0000000..b266f8c Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/8f9dd5e236731653e5a4487334ddcd48907822e38fd5310e769b4e288cca09b8-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/c26d28065fddecf2a5ae53dc10a3abe9913a0a8dc5281149038af0809c60f771-primary.xml.gz b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/c26d28065fddecf2a5ae53dc10a3abe9913a0a8dc5281149038af0809c60f771-primary.xml.gz new file mode 100644 index 0000000..e5db717 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/c26d28065fddecf2a5ae53dc10a3abe9913a0a8dc5281149038af0809c60f771-primary.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/c5a113dc68969c8ec64fb2417682f442dd61d4befceb8133caa88c1b8332dc6e-other.xml.gz b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/c5a113dc68969c8ec64fb2417682f442dd61d4befceb8133caa88c1b8332dc6e-other.xml.gz new file mode 100644 index 0000000..fe5b905 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/c5a113dc68969c8ec64fb2417682f442dd61d4befceb8133caa88c1b8332dc6e-other.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/c737ef5a58c444520311f7471220f60814489e8e0821abebed1c8a3c132eb8a3-modules.yaml.gz b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/c737ef5a58c444520311f7471220f60814489e8e0821abebed1c8a3c132eb8a3-modules.yaml.gz new file mode 100644 index 0000000..b22d8e7 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/c737ef5a58c444520311f7471220f60814489e8e0821abebed1c8a3c132eb8a3-modules.yaml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/e9ab31d36533c2764cf3d4517296cd078a08744a4d1e277bc312a57e1977959e-other.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/e9ab31d36533c2764cf3d4517296cd078a08744a4d1e277bc312a57e1977959e-other.sqlite.bz2 new file mode 100644 index 0000000..6cb3e3c Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/e9ab31d36533c2764cf3d4517296cd078a08744a4d1e277bc312a57e1977959e-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/repomd.xml b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/repomd.xml new file mode 100644 index 0000000..5e8905b --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-1/x86_64/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467020 + + c26d28065fddecf2a5ae53dc10a3abe9913a0a8dc5281149038af0809c60f771 + eb626fd349f931342b269a75687afca6b014fd81fb3550a5be6005f90a22dce0 + + 1528467021 + 836 + 3364 + + + 1d9f907984681afe87cf3db455db7e496006d9873e143ce91f57f48163c1242c + 1042270209c355525420b6a558972ae3c46d83179db0cdba480bdd58c294d3b3 + + 1528467021 + 345 + 629 + + + c5a113dc68969c8ec64fb2417682f442dd61d4befceb8133caa88c1b8332dc6e + a54d25a79ed74974c8b08c707142de5317c316dea2fef44d7cfa2378e4069e9b + + 1528467021 + 345 + 625 + + + 8f9dd5e236731653e5a4487334ddcd48907822e38fd5310e769b4e288cca09b8 + fc781083b417f313dd9d4c37dc992d506a4a08c1ed057fe6f31af6f03d3d64b8 + + 1528467021 + 2225 + 106496 + 10 + + + 7401efdadd4f7177d130643053c50bad88b71c853a5dfaf844f5b1917e529d85 + 344b6331e63a1d3542a6040edbba1ae42c8982511228a4a9b102cbaed4e2ff65 + + 1528467021 + 816 + 28672 + 10 + + + e9ab31d36533c2764cf3d4517296cd078a08744a4d1e277bc312a57e1977959e + a779d67160cded915493c4ca3a7f91a715f694b39377981c4a3448d43a3470d5 + + 1528467021 + 806 + 24576 + 10 + + + c737ef5a58c444520311f7471220f60814489e8e0821abebed1c8a3c132eb8a3 + 57532accf9153cc4f51ce57a29378622fd23f64f2a4f8ae671b9939e4e75ce6c + + 1531828717 + 319 + 635 + + diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/httpd-2.4-2.i686.yaml b/data/tests/modules/modules/httpd-2.4-2/i686/httpd-2.4-2.i686.yaml new file mode 100644 index 0000000..38bf4b6 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-2/i686/httpd-2.4-2.i686.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 2 + context: 3b6beaf8 + arch: i686 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-8.i686 + - httpd-doc-0:2.4.25-8.i686 + - libnghttp2-0:1.21.1-1.i686 +... diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/httpd-2.4.25-8.i686.rpm b/data/tests/modules/modules/httpd-2.4-2/i686/httpd-2.4.25-8.i686.rpm new file mode 100644 index 0000000..62167c3 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/httpd-2.4.25-8.i686.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/httpd-doc-2.4.25-8.i686.rpm b/data/tests/modules/modules/httpd-2.4-2/i686/httpd-doc-2.4.25-8.i686.rpm new file mode 100644 index 0000000..6c0c0ce Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/httpd-doc-2.4.25-8.i686.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/libnghttp2-1.21.1-1.i686.rpm b/data/tests/modules/modules/httpd-2.4-2/i686/libnghttp2-1.21.1-1.i686.rpm new file mode 100644 index 0000000..61cb691 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/libnghttp2-1.21.1-1.i686.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/repodata/0860d05cdbbb821b652fd9f93258913d9c3f200c886612f179c26113a24d5e9d-other.xml.gz b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/0860d05cdbbb821b652fd9f93258913d9c3f200c886612f179c26113a24d5e9d-other.xml.gz new file mode 100644 index 0000000..e188946 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/0860d05cdbbb821b652fd9f93258913d9c3f200c886612f179c26113a24d5e9d-other.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/repodata/0d39bb01e072e5f21b723a180ee504255efe0f68aae2d1e406858e86af0e188b-filelists.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/0d39bb01e072e5f21b723a180ee504255efe0f68aae2d1e406858e86af0e188b-filelists.sqlite.bz2 new file mode 100644 index 0000000..e09daab Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/0d39bb01e072e5f21b723a180ee504255efe0f68aae2d1e406858e86af0e188b-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/repodata/2b65f2224de8f1e873e2c1c6b6853b0a9b7d3bc6181b6d7be99a7ec1e049ef57-modules.yaml.gz b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/2b65f2224de8f1e873e2c1c6b6853b0a9b7d3bc6181b6d7be99a7ec1e049ef57-modules.yaml.gz new file mode 100644 index 0000000..278acb2 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/2b65f2224de8f1e873e2c1c6b6853b0a9b7d3bc6181b6d7be99a7ec1e049ef57-modules.yaml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/repodata/4d2cdb7879963dd460741bf32b7d3d1fc6ca38d68ed10f8dc7fbfc3ccc967ef4-primary.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/4d2cdb7879963dd460741bf32b7d3d1fc6ca38d68ed10f8dc7fbfc3ccc967ef4-primary.sqlite.bz2 new file mode 100644 index 0000000..f1fc3cb Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/4d2cdb7879963dd460741bf32b7d3d1fc6ca38d68ed10f8dc7fbfc3ccc967ef4-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/repodata/6e0ccd539b8487c56b4be9c167dd1d518a8ff7354245f4593e817bfe5909bbc5-primary.xml.gz b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/6e0ccd539b8487c56b4be9c167dd1d518a8ff7354245f4593e817bfe5909bbc5-primary.xml.gz new file mode 100644 index 0000000..8390581 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/6e0ccd539b8487c56b4be9c167dd1d518a8ff7354245f4593e817bfe5909bbc5-primary.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/repodata/e2462308c4477e4740543028b0288c42942cd4984bbb37b95f4ba9794488484f-filelists.xml.gz b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/e2462308c4477e4740543028b0288c42942cd4984bbb37b95f4ba9794488484f-filelists.xml.gz new file mode 100644 index 0000000..520d4ff Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/e2462308c4477e4740543028b0288c42942cd4984bbb37b95f4ba9794488484f-filelists.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/repodata/e5cbbe3cdb9ff025a6f1a5c773473494a0ebef4b0b5c96ba5a40da869092af08-other.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/e5cbbe3cdb9ff025a6f1a5c773473494a0ebef4b0b5c96ba5a40da869092af08-other.sqlite.bz2 new file mode 100644 index 0000000..481b0fe Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/e5cbbe3cdb9ff025a6f1a5c773473494a0ebef4b0b5c96ba5a40da869092af08-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-2/i686/repodata/repomd.xml b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/repomd.xml new file mode 100644 index 0000000..efcdfdb --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-2/i686/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467021 + + 6e0ccd539b8487c56b4be9c167dd1d518a8ff7354245f4593e817bfe5909bbc5 + 80a9a400378cfbfa3e0d81cc3e0c8a6a3f7207c317eafc4cb453f1ad8730b4f6 + + 1528467022 + 833 + 3352 + + + e2462308c4477e4740543028b0288c42942cd4984bbb37b95f4ba9794488484f + be9f281c588f589d100006151e05b68be484a10e95d684d271b4e2631b8bef23 + + 1528467022 + 342 + 623 + + + 0860d05cdbbb821b652fd9f93258913d9c3f200c886612f179c26113a24d5e9d + 715e6e9a23f43d8107205f9964fcdcd9621451033ef2eb0ad70ca5183d31a7f6 + + 1528467022 + 341 + 619 + + + 4d2cdb7879963dd460741bf32b7d3d1fc6ca38d68ed10f8dc7fbfc3ccc967ef4 + 5276bd6df4d9b153c1b0cb64b59e604abcd1313619c641e5bf4857a7fb2daabf + + 1528467022 + 2204 + 106496 + 10 + + + 0d39bb01e072e5f21b723a180ee504255efe0f68aae2d1e406858e86af0e188b + 72ce067f4bcb417f1e242d601d239001f0c38d5ba3edc6ade6b73cb03e774066 + + 1528467022 + 816 + 28672 + 10 + + + e5cbbe3cdb9ff025a6f1a5c773473494a0ebef4b0b5c96ba5a40da869092af08 + 4c4f455aaa66b54ec70dd22d016bbcf50a097d90f96e03a2900fa884bce0dc2c + + 1528467022 + 805 + 24576 + 10 + + + 2b65f2224de8f1e873e2c1c6b6853b0a9b7d3bc6181b6d7be99a7ec1e049ef57 + 35e98277cd6fa95cc029816abf6457d540536e43d759240f1e68be31361b31e1 + + 1531828717 + 281 + 499 + + diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/httpd-2.4-2.s390x.yaml b/data/tests/modules/modules/httpd-2.4-2/s390x/httpd-2.4-2.s390x.yaml new file mode 100644 index 0000000..f69ac0e --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-2/s390x/httpd-2.4-2.s390x.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 2 + context: 3b6beaf8 + arch: s390x + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-8.s390x + - httpd-doc-0:2.4.25-8.s390x + - libnghttp2-0:1.21.1-1.s390x +... diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/httpd-2.4.25-8.s390x.rpm b/data/tests/modules/modules/httpd-2.4-2/s390x/httpd-2.4.25-8.s390x.rpm new file mode 100644 index 0000000..f3f9e73 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/httpd-2.4.25-8.s390x.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/httpd-doc-2.4.25-8.s390x.rpm b/data/tests/modules/modules/httpd-2.4-2/s390x/httpd-doc-2.4.25-8.s390x.rpm new file mode 100644 index 0000000..a69d404 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/httpd-doc-2.4.25-8.s390x.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/libnghttp2-1.21.1-1.s390x.rpm b/data/tests/modules/modules/httpd-2.4-2/s390x/libnghttp2-1.21.1-1.s390x.rpm new file mode 100644 index 0000000..1ae6432 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/libnghttp2-1.21.1-1.s390x.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/222784064998192225948bd42cfd4f309607ed2e956f35e853ec04f6b5bfff26-other.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/222784064998192225948bd42cfd4f309607ed2e956f35e853ec04f6b5bfff26-other.sqlite.bz2 new file mode 100644 index 0000000..924a559 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/222784064998192225948bd42cfd4f309607ed2e956f35e853ec04f6b5bfff26-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/2db9ffba74a218518e2f56343ae309fef90750996929790ed5f07da544d25e72-filelists.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/2db9ffba74a218518e2f56343ae309fef90750996929790ed5f07da544d25e72-filelists.sqlite.bz2 new file mode 100644 index 0000000..002559e Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/2db9ffba74a218518e2f56343ae309fef90750996929790ed5f07da544d25e72-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/43bd4784f0153369535272c70684af4380ae4c54066f0fde2ee346339c6f28e8-modules.yaml.gz b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/43bd4784f0153369535272c70684af4380ae4c54066f0fde2ee346339c6f28e8-modules.yaml.gz new file mode 100644 index 0000000..76e45b1 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/43bd4784f0153369535272c70684af4380ae4c54066f0fde2ee346339c6f28e8-modules.yaml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/6806a2295b024ee97d996690d5b0a1677004ab4a7a6d186a47876a2096f69697-primary.xml.gz b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/6806a2295b024ee97d996690d5b0a1677004ab4a7a6d186a47876a2096f69697-primary.xml.gz new file mode 100644 index 0000000..6ad5c24 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/6806a2295b024ee97d996690d5b0a1677004ab4a7a6d186a47876a2096f69697-primary.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/8aee83183505d5a433e991b9db12b46b046686c1ec8552bbe19de8da7f5ed4d2-other.xml.gz b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/8aee83183505d5a433e991b9db12b46b046686c1ec8552bbe19de8da7f5ed4d2-other.xml.gz new file mode 100644 index 0000000..8e3737d Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/8aee83183505d5a433e991b9db12b46b046686c1ec8552bbe19de8da7f5ed4d2-other.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/c04af70f97b52b59d2cf36632065217e804650a9e5e2f5dcfdd601ede350b702-filelists.xml.gz b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/c04af70f97b52b59d2cf36632065217e804650a9e5e2f5dcfdd601ede350b702-filelists.xml.gz new file mode 100644 index 0000000..21ad24f Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/c04af70f97b52b59d2cf36632065217e804650a9e5e2f5dcfdd601ede350b702-filelists.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/f6e9e967618ffc1bd9c7f9ec0a03d4824254bb351aa4c53657ef28a6f7cb9c77-primary.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/f6e9e967618ffc1bd9c7f9ec0a03d4824254bb351aa4c53657ef28a6f7cb9c77-primary.sqlite.bz2 new file mode 100644 index 0000000..0723114 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/f6e9e967618ffc1bd9c7f9ec0a03d4824254bb351aa4c53657ef28a6f7cb9c77-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/repomd.xml b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/repomd.xml new file mode 100644 index 0000000..9893541 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-2/s390x/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467022 + + 6806a2295b024ee97d996690d5b0a1677004ab4a7a6d186a47876a2096f69697 + 4c5d15c400150bca36dba259c5cfee2aecb6c6534a5727438ebfbc96765572b5 + + 1528467023 + 834 + 3361 + + + c04af70f97b52b59d2cf36632065217e804650a9e5e2f5dcfdd601ede350b702 + 4b09591a99d74bc5fcbfd22321517dbf2f6801dc5a6e7ab177e7810e09f462b3 + + 1528467023 + 341 + 626 + + + 8aee83183505d5a433e991b9db12b46b046686c1ec8552bbe19de8da7f5ed4d2 + 9e84851c5a65e877960b1c32ef7e4dd73570682df180608379e93252b970715d + + 1528467023 + 342 + 622 + + + f6e9e967618ffc1bd9c7f9ec0a03d4824254bb351aa4c53657ef28a6f7cb9c77 + 30c9c696a56d140755f825b486953256b5baf03bc14b6c984a3d3db7f0ef29bb + + 1528467023 + 2206 + 106496 + 10 + + + 2db9ffba74a218518e2f56343ae309fef90750996929790ed5f07da544d25e72 + 167bb07a5773423a5a0576ddc15c94f9ae21e671072126af4bed1db5090d16b2 + + 1528467023 + 829 + 28672 + 10 + + + 222784064998192225948bd42cfd4f309607ed2e956f35e853ec04f6b5bfff26 + 03d249591adb911e66b85e16e590aa8e92de44c0771c26ed13a88cf814dc0d61 + + 1528467023 + 816 + 24576 + 10 + + + 43bd4784f0153369535272c70684af4380ae4c54066f0fde2ee346339c6f28e8 + a6025cdd3cd10fe075e2cdd4daaa60c63eaac68c256bb879e24e09ba243bd71e + + 1531828717 + 283 + 503 + + diff --git a/data/tests/modules/modules/httpd-2.4-2/src/httpd-2.4-2.src.yaml b/data/tests/modules/modules/httpd-2.4-2/src/httpd-2.4-2.src.yaml new file mode 100644 index 0000000..dfe9a10 --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-2/src/httpd-2.4-2.src.yaml @@ -0,0 +1,32 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 2 + context: 3b6beaf8 + arch: src + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-8.src + - libnghttp2-0:1.21.1-1.src +... diff --git a/data/tests/modules/modules/httpd-2.4-2/src/httpd-2.4.25-8.src.rpm b/data/tests/modules/modules/httpd-2.4-2/src/httpd-2.4.25-8.src.rpm new file mode 100644 index 0000000..86e0462 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/src/httpd-2.4.25-8.src.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/src/libnghttp2-1.21.1-1.src.rpm b/data/tests/modules/modules/httpd-2.4-2/src/libnghttp2-1.21.1-1.src.rpm new file mode 100644 index 0000000..d78b150 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/src/libnghttp2-1.21.1-1.src.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/httpd-2.4-2.x86_64.yaml b/data/tests/modules/modules/httpd-2.4-2/x86_64/httpd-2.4-2.x86_64.yaml new file mode 100644 index 0000000..e49983e --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-2/x86_64/httpd-2.4-2.x86_64.yaml @@ -0,0 +1,33 @@ +--- +document: modulemd +version: 2 +data: + name: httpd + stream: 2.4 + version: 2 + context: 3b6beaf8 + arch: x86_64 + summary: Fake module + description: >- + Fake module + license: + module: + - LGPLv2 + dependencies: + - requires: + base-runtime: [f26] + profiles: + default: + rpms: + - httpd + doc: + rpms: + - httpd-doc + buildopts: + rpms: {} + artifacts: + rpms: + - httpd-0:2.4.25-8.x86_64 + - httpd-doc-0:2.4.25-8.x86_64 + - libnghttp2-0:1.21.1-1.x86_64 +... diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/httpd-2.4.25-8.x86_64.rpm b/data/tests/modules/modules/httpd-2.4-2/x86_64/httpd-2.4.25-8.x86_64.rpm new file mode 100644 index 0000000..b20cea6 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/httpd-2.4.25-8.x86_64.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/httpd-doc-2.4.25-8.x86_64.rpm b/data/tests/modules/modules/httpd-2.4-2/x86_64/httpd-doc-2.4.25-8.x86_64.rpm new file mode 100644 index 0000000..cfdbc3c Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/httpd-doc-2.4.25-8.x86_64.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/libnghttp2-1.21.1-1.x86_64.rpm b/data/tests/modules/modules/httpd-2.4-2/x86_64/libnghttp2-1.21.1-1.x86_64.rpm new file mode 100644 index 0000000..545ad1a Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/libnghttp2-1.21.1-1.x86_64.rpm differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/143f547f02063d5221cc099f8fe693e9abf3456fdf3d4afe5f95b1cf81403d9d-other.xml.gz b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/143f547f02063d5221cc099f8fe693e9abf3456fdf3d4afe5f95b1cf81403d9d-other.xml.gz new file mode 100644 index 0000000..e76a766 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/143f547f02063d5221cc099f8fe693e9abf3456fdf3d4afe5f95b1cf81403d9d-other.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/38229572e59980be53dc8b9d3741e2b46877b3ce7a049f968066c1eca0757dff-primary.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/38229572e59980be53dc8b9d3741e2b46877b3ce7a049f968066c1eca0757dff-primary.sqlite.bz2 new file mode 100644 index 0000000..327ebf0 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/38229572e59980be53dc8b9d3741e2b46877b3ce7a049f968066c1eca0757dff-primary.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/62ed5cb5877c1995260ea3deeaf517c1335d41a26fa56bbf791e0b8848debf57-modules.yaml.gz b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/62ed5cb5877c1995260ea3deeaf517c1335d41a26fa56bbf791e0b8848debf57-modules.yaml.gz new file mode 100644 index 0000000..0aa140d Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/62ed5cb5877c1995260ea3deeaf517c1335d41a26fa56bbf791e0b8848debf57-modules.yaml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/6774c709909c85579b646dad8422b8a62fc4a4d3630d2c76944abb2f045e0b4c-primary.xml.gz b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/6774c709909c85579b646dad8422b8a62fc4a4d3630d2c76944abb2f045e0b4c-primary.xml.gz new file mode 100644 index 0000000..bc0b11b Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/6774c709909c85579b646dad8422b8a62fc4a4d3630d2c76944abb2f045e0b4c-primary.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/8bab2a03f45ea12b1612b5fecdc6137cf69412d5810cebe1620d90eb2e562f8f-filelists.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/8bab2a03f45ea12b1612b5fecdc6137cf69412d5810cebe1620d90eb2e562f8f-filelists.sqlite.bz2 new file mode 100644 index 0000000..9d92c27 Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/8bab2a03f45ea12b1612b5fecdc6137cf69412d5810cebe1620d90eb2e562f8f-filelists.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/c3d8bd9d381397223a8b957d3813fbdeb3c700b6937a347dfbc90dbb0492640f-filelists.xml.gz b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/c3d8bd9d381397223a8b957d3813fbdeb3c700b6937a347dfbc90dbb0492640f-filelists.xml.gz new file mode 100644 index 0000000..3fa0f4c Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/c3d8bd9d381397223a8b957d3813fbdeb3c700b6937a347dfbc90dbb0492640f-filelists.xml.gz differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/cb63c3e8e5fc7fc855701a2b1d78c54ca76932fc3ace708a2212d527ce2aba90-other.sqlite.bz2 b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/cb63c3e8e5fc7fc855701a2b1d78c54ca76932fc3ace708a2212d527ce2aba90-other.sqlite.bz2 new file mode 100644 index 0000000..7e82d6e Binary files /dev/null and b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/cb63c3e8e5fc7fc855701a2b1d78c54ca76932fc3ace708a2212d527ce2aba90-other.sqlite.bz2 differ diff --git a/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/repomd.xml b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/repomd.xml new file mode 100644 index 0000000..f12776d --- /dev/null +++ b/data/tests/modules/modules/httpd-2.4-2/x86_64/repodata/repomd.xml @@ -0,0 +1,63 @@ + + + 1528467022 + + 6774c709909c85579b646dad8422b8a62fc4a4d3630d2c76944abb2f045e0b4c + 93995f27eb7aed89f1ff4861408b7934f8869934530f11d71fd483e33a5b25db + + 1528467022 + 837 + 3364 + + + c3d8bd9d381397223a8b957d3813fbdeb3c700b6937a347dfbc90dbb0492640f + eae6920641e178c009b7fb16f9d9559dc2a230569fff808ebf3fac274060d4b7 + + 1528467022 + 341 + 629 + + + 143f547f02063d5221cc099f8fe693e9abf3456fdf3d4afe5f95b1cf81403d9d + d31d06936f529a9fb9912d3168c1cdaf3b39b376e0c1e612cb70adb20df7b35d + + 1528467022 + 341 + 625 + + + 38229572e59980be53dc8b9d3741e2b46877b3ce7a049f968066c1eca0757dff + 33a821c29a3c09375356a9a761995c7b13bed4872b63f4e9d4a7510f22bb40b4 + + 1528467022 + 2216 + 106496 + 10 + + + 8bab2a03f45ea12b1612b5fecdc6137cf69412d5810cebe1620d90eb2e562f8f + e56d0f881b9392d93e39c93fc1187914f4e9b87262342ab6471d1f0d7a671a76 + + 1528467022 + 829 + 28672 + 10 + + + cb63c3e8e5fc7fc855701a2b1d78c54ca76932fc3ace708a2212d527ce2aba90 + be8fa87ffd184f35da5de60d2cd01f5b4034b461d441a13e623ab7a4ccc9d65a + + 1528467022 + 814 + 24576 + 10 + + + 62ed5cb5877c1995260ea3deeaf517c1335d41a26fa56bbf791e0b8848debf57 + 31c281474f93b893c9f365b435d1929fb2fb1c99c2646cb6732bd97b14984b3c + + 1531828717 + 284 + 507 + + diff --git a/data/tests/modules/specs/_create_modulemd.py b/data/tests/modules/specs/_create_modulemd.py new file mode 100755 index 0000000..64b21cb --- /dev/null +++ b/data/tests/modules/specs/_create_modulemd.py @@ -0,0 +1,101 @@ +#!/usr/bin/python + + +import os +import json +import hashlib + +import gi + +gi.require_version('Modulemd', '1.0') +from gi.repository import Modulemd + +MODULES_DIR = os.path.join(os.path.dirname(__file__), "..", "modules") +SPECS_DIR = os.path.join(os.path.dirname(__file__), "..", "specs") + + +def parse_module_id(module_id): + return module_id.rsplit("-", 2) + + +for module_id in os.listdir(MODULES_DIR): + if module_id.startswith("_"): + continue + + name, stream, version = parse_module_id(module_id) + + profiles_file = os.path.join(SPECS_DIR, module_id, "profiles.json") + if os.path.isfile(profiles_file): + with open(profiles_file, "r") as f: + profiles = json.load(f) + else: + profiles = {} + + for arch in os.listdir(os.path.join(MODULES_DIR, module_id)): + if arch == "noarch": + continue + + module_dir = os.path.join(MODULES_DIR, module_id, arch) + rpms = [i for i in os.listdir(module_dir) if i.endswith(".rpm")] + + noarch_module_dir = os.path.join(MODULES_DIR, module_id, "noarch") + if os.path.isdir(noarch_module_dir): + noarch_rpms = [i for i in os.listdir(noarch_module_dir) if i.endswith(".rpm")] + else: + noarch_rpms = [] + + rpms = sorted(set(rpms) | set(noarch_rpms)) + + # HACK: force epoch to make test data compatible with libmodulemd >= 1.4.0 + rpms_with_epoch = [] + for i in rpms: + n, v, ra = i.rsplit("-", 2) + nevra = "%s-0:%s-%s" % (n, v, ra) + rpms_with_epoch.append(nevra) + rpms = rpms_with_epoch + + mmd = Modulemd.Module() + mmd.set_mdversion(int(2)) + mmd.set_name(name) + mmd.set_stream(stream) + mmd.set_version(int(version)) + # context is set later, computed from runtime deps + mmd.set_arch(arch) + sset = Modulemd.SimpleSet() + sset.add("LGPLv2") + mmd.set_module_licenses(sset) + mmd.set_summary("Fake module") + mmd.set_description(mmd.get_summary()) + artifacts = Modulemd.SimpleSet() + for rpm in rpms: + #mmd.add_module_component(rpm.rsplit("-", 2)[0], "") + artifacts.add(rpm[:-4]) + mmd.set_rpm_artifacts(artifacts) + for profile_name in profiles: + profile = Modulemd.Profile() + profile.set_name(profile_name) + profile_rpms = Modulemd.SimpleSet() + profile_rpms.set(profiles[profile_name]["rpms"]) + profile.set_rpms(profile_rpms) + mmd.add_profile(profile) + + if name == "httpd": + dependencies = Modulemd.Dependencies() + if stream == "2.4": + dependencies.add_requires_single("base-runtime", "f26") + elif stream == "2.2": + dependencies.add_requires("base-runtime", []) + mmd.add_dependencies(dependencies) + + # iterate through all deps and create context hash in a repeatable manner + context_hash = hashlib.sha256() + for dependencies in mmd.peek_dependencies(): + for dep_name, dep_streams in dependencies.peek_requires().items(): + if dep_streams: + for dep_stream in dep_streams.get(): + context_hash.update("%s:%s" % (dep_name, dep_stream)) + else: + context_hash.update(dep_name) + mmd.set_context(context_hash.hexdigest()[:8]) + + Modulemd.dump([mmd], os.path.join(module_dir, "%s.%s.yaml" % (module_id, arch))) diff --git a/data/tests/modules/specs/_createrepo_c_modularity_hack.py b/data/tests/modules/specs/_createrepo_c_modularity_hack.py new file mode 100755 index 0000000..f38992b --- /dev/null +++ b/data/tests/modules/specs/_createrepo_c_modularity_hack.py @@ -0,0 +1,59 @@ +#!/usr/bin/python + + +import os +import argparse +import subprocess +import tempfile + +import gi +gi.require_version('Modulemd', '1.0') +from gi.repository import Modulemd + + +def get_parser(): + """ + Construct argument parser. + + :returns: ArgumentParser object with arguments set up. + :rtype: argparse.ArgumentParser + """ + parser = argparse.ArgumentParser( + description="Scan directory for modulemd yaml files and inject them into repodata.", + formatter_class=argparse.ArgumentDefaultsHelpFormatter, + ) + parser.add_argument( + "path", + metavar="directory_to_index", + ) + return parser + + +def index_modulemd_files(repo_path): + result = [] + for fn in sorted(os.listdir(repo_path)): + if not fn.endswith(".yaml"): + continue + yaml_path = os.path.join(repo_path, fn) + mmd = Modulemd.objects_from_file_ext(yaml_path) + result.append(mmd[0][0]) + return result + + +def modify_repo(repo_path, modules): + tmp = tempfile.mkdtemp() + path = os.path.join(tmp, "modules.yaml") + for module in modules: + Modulemd.dump(modules, path) + subprocess.check_call(["modifyrepo_c", "--mdtype=modules", path, + os.path.join(repo_path, "repodata")]) + os.unlink(path) + os.rmdir(tmp) + + +if __name__ == "__main__": + parser = get_parser() + args = parser.parse_args() + + modules = index_modulemd_files(args.path) + modify_repo(args.path, modules) diff --git a/data/tests/modules/specs/_non-modular/grub2.spec b/data/tests/modules/specs/_non-modular/grub2.spec new file mode 100644 index 0000000..d3ee8e2 --- /dev/null +++ b/data/tests/modules/specs/_non-modular/grub2.spec @@ -0,0 +1,33 @@ +Name: grub2 +Version: 2.02 +Release: 0.40 +License: LGPLv2 +Summary: Fake package + +Requires: filesystem + +%description +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files + + +%changelog diff --git a/data/tests/modules/specs/_non-modular/httpd-provides-name-version-release.spec b/data/tests/modules/specs/_non-modular/httpd-provides-name-version-release.spec new file mode 100644 index 0000000..fbe4988 --- /dev/null +++ b/data/tests/modules/specs/_non-modular/httpd-provides-name-version-release.spec @@ -0,0 +1,50 @@ +Name: httpd-provides-name-version-release +Version: 3.0 +Release: 1 +License: LGPLv2 +Summary: Fake package + +Requires: glibc + +Provides: httpd = %{version}-%{release} + +%description +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +%package doc +Summary: Fake package + +%description doc +Fake package + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files debuginfo +%files doc + + +%changelog diff --git a/data/tests/modules/specs/_non-modular/httpd-provides-name.spec b/data/tests/modules/specs/_non-modular/httpd-provides-name.spec new file mode 100644 index 0000000..0ae65df --- /dev/null +++ b/data/tests/modules/specs/_non-modular/httpd-provides-name.spec @@ -0,0 +1,50 @@ +Name: httpd-provides-name +Version: 3.0 +Release: 1 +License: LGPLv2 +Summary: Fake package + +Requires: glibc + +Provides: httpd + +%description +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +%package doc +Summary: Fake package + +%description doc +Fake package + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files debuginfo +%files doc + + +%changelog diff --git a/data/tests/modules/specs/_non-modular/httpd.spec b/data/tests/modules/specs/_non-modular/httpd.spec new file mode 100644 index 0000000..14fbe4e --- /dev/null +++ b/data/tests/modules/specs/_non-modular/httpd.spec @@ -0,0 +1,48 @@ +Name: httpd +Version: 2.2.10 +Release: 1 +License: LGPLv2 +Summary: Fake package + +Requires: glibc + +%description +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +%package doc +Summary: Fake package + +%description doc +Fake package + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files debuginfo +%files doc + + +%changelog diff --git a/data/tests/modules/specs/_non-modular/libnghttp2.spec b/data/tests/modules/specs/_non-modular/libnghttp2.spec new file mode 100644 index 0000000..72735cd --- /dev/null +++ b/data/tests/modules/specs/_non-modular/libnghttp2.spec @@ -0,0 +1,39 @@ +Name: libnghttp2 +Version: 1.21.1 +Release: 1.1 +License: LGPLv2 +Summary: Fake package + +%description +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files debuginfo + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-f26-1/basesystem.spec b/data/tests/modules/specs/base-runtime-f26-1/basesystem.spec new file mode 100644 index 0000000..a021b4a --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-1/basesystem.spec @@ -0,0 +1,35 @@ +Name: basesystem +Version: 11 +Release: 3 +License: LGPLv2 +Summary: Fake package + +Requires: filesystem + +BuildArch: noarch + +%description +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-f26-1/bash.spec b/data/tests/modules/specs/base-runtime-f26-1/bash.spec new file mode 100644 index 0000000..6b68e7a --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-1/bash.spec @@ -0,0 +1,56 @@ +Name: bash +Version: 4.4.12 +Release: 2 +License: LGPLv2 +Summary: Fake package + +Requires: glibc +%if %__isa_bits == 32 +Requires: libpthread.so.0(GLIBC_2.0) +%else +Requires: libpthread.so.0(GLIBC_2.3)(64bit) +%endif + +%description +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +%package doc +Summary: Fake package +BuildArch: noarch +Requires: %{name} + +%description doc +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files debuginfo +%files doc + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-f26-1/filesystem.spec b/data/tests/modules/specs/base-runtime-f26-1/filesystem.spec new file mode 100644 index 0000000..2535030 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-1/filesystem.spec @@ -0,0 +1,32 @@ +Name: filesystem +Version: 3.2 +Release: 40 +License: LGPLv2 +Summary: Fake package + + +%description +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-f26-1/glibc.spec b/data/tests/modules/specs/base-runtime-f26-1/glibc.spec new file mode 100644 index 0000000..968a8be --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-1/glibc.spec @@ -0,0 +1,77 @@ +Name: glibc +Version: 2.25 +Release: 4 +License: LGPLv2 +Summary: Fake package + +Requires: %{name}-common = %{version}-%{release} +Requires: basesystem +%if %__isa_bits == 32 +Provides: libc.so.6() +Provides: libpthread.so.0(GLIBC_2.0) +%else +Provides: libc.so.6()(64bit) +Provides: libpthread.so.0(GLIBC_2.3)(64bit) +%endif + +%description +Fake package + +%package common +Summary: Fake package + +%description common +Fake package + +%package -n dummy-nscd +Summary: Fake package + +%description -n dummy-nscd +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + +%package debuginfo-common +Summary: Fake package +Group: Development/Debug + +%description debuginfo-common +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%if %__isa_bits == 32 +%ghost /usr/lib/libc.so.6 +%else +%ghost /usr/lib64/libc.so.6 +%endif + +%files common +%files -n dummy-nscd +%files debuginfo +%files debuginfo-common + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-f26-1/kernel.spec b/data/tests/modules/specs/base-runtime-f26-1/kernel.spec new file mode 100644 index 0000000..7a70e7a --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-1/kernel.spec @@ -0,0 +1,46 @@ +Name: kernel +Version: 4.11.0 +Release: 1 +License: LGPLv2 +Summary: Fake package + +%description +Fake package + +%package headers +Summary: Fake package + +%description headers +Fake package + +%package doc +Summary: Fake package +BuildArch: noarch + +%description doc +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files headers +%files doc + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-f26-1/profiles.json b/data/tests/modules/specs/base-runtime-f26-1/profiles.json new file mode 100644 index 0000000..2796c6f --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-1/profiles.json @@ -0,0 +1,8 @@ +{ + "minimal": { + "rpms": ["glibc"] + }, + "default": { + "rpms": ["glibc", "bash", "systemd", "kernel"] + } +} \ No newline at end of file diff --git a/data/tests/modules/specs/base-runtime-f26-1/systemd.spec b/data/tests/modules/specs/base-runtime-f26-1/systemd.spec new file mode 100644 index 0000000..f5c6faf --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-1/systemd.spec @@ -0,0 +1,31 @@ +Name: systemd +Version: 233 +Release: 3 +License: LGPLv2 +Summary: Fake package + +%description +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-f26-2/basesystem.spec b/data/tests/modules/specs/base-runtime-f26-2/basesystem.spec new file mode 120000 index 0000000..6019f34 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-2/basesystem.spec @@ -0,0 +1 @@ +../base-runtime-f26-1/basesystem.spec \ No newline at end of file diff --git a/data/tests/modules/specs/base-runtime-f26-2/bash.spec b/data/tests/modules/specs/base-runtime-f26-2/bash.spec new file mode 120000 index 0000000..cb59f9a --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-2/bash.spec @@ -0,0 +1 @@ +../base-runtime-f26-1/bash.spec \ No newline at end of file diff --git a/data/tests/modules/specs/base-runtime-f26-2/filesystem.spec b/data/tests/modules/specs/base-runtime-f26-2/filesystem.spec new file mode 120000 index 0000000..3c7181c --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-2/filesystem.spec @@ -0,0 +1 @@ +../base-runtime-f26-1/filesystem.spec \ No newline at end of file diff --git a/data/tests/modules/specs/base-runtime-f26-2/glibc.spec b/data/tests/modules/specs/base-runtime-f26-2/glibc.spec new file mode 100644 index 0000000..5ee5b06 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-2/glibc.spec @@ -0,0 +1,77 @@ +Name: glibc +Version: 2.25.90 +Release: 2 +License: LGPLv2 +Summary: Fake package + +Requires: %{name}-common = %{version}-%{release} +Requires: basesystem +%if %__isa_bits == 32 +Provides: libc.so.6() +Provides: libpthread.so.0(GLIBC_2.0) +%else +Provides: libc.so.6()(64bit) +Provides: libpthread.so.0(GLIBC_2.3)(64bit) +%endif + +%description +Fake package + +%package common +Summary: Fake package + +%description common +Fake package + +%package -n dummy-nscd +Summary: Fake package + +%description -n dummy-nscd +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + +%package debuginfo-common +Summary: Fake package +Group: Development/Debug + +%description debuginfo-common +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%if %__isa_bits == 32 +%ghost /usr/lib/libc.so.6 +%else +%ghost /usr/lib64/libc.so.6 +%endif + +%files common +%files -n dummy-nscd +%files debuginfo +%files debuginfo-common + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-f26-2/kernel.spec b/data/tests/modules/specs/base-runtime-f26-2/kernel.spec new file mode 120000 index 0000000..716ed80 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-2/kernel.spec @@ -0,0 +1 @@ +../base-runtime-f26-1/kernel.spec \ No newline at end of file diff --git a/data/tests/modules/specs/base-runtime-f26-2/profiles.json b/data/tests/modules/specs/base-runtime-f26-2/profiles.json new file mode 120000 index 0000000..6dc02e7 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-2/profiles.json @@ -0,0 +1 @@ +../base-runtime-f26-1/profiles.json \ No newline at end of file diff --git a/data/tests/modules/specs/base-runtime-f26-2/systemd.spec b/data/tests/modules/specs/base-runtime-f26-2/systemd.spec new file mode 120000 index 0000000..61d26ca --- /dev/null +++ b/data/tests/modules/specs/base-runtime-f26-2/systemd.spec @@ -0,0 +1 @@ +../base-runtime-f26-1/systemd.spec \ No newline at end of file diff --git a/data/tests/modules/specs/base-runtime-rhel73-1/basesystem.spec b/data/tests/modules/specs/base-runtime-rhel73-1/basesystem.spec new file mode 100644 index 0000000..b6f1e23 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-rhel73-1/basesystem.spec @@ -0,0 +1,35 @@ +Name: basesystem +Version: 10.0 +Release: 7 +License: LGPLv2 +Summary: Fake package + +Requires: filesystem + +BuildArch: noarch + +%description +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-rhel73-1/bash.spec b/data/tests/modules/specs/base-runtime-rhel73-1/bash.spec new file mode 100644 index 0000000..90ad789 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-rhel73-1/bash.spec @@ -0,0 +1,56 @@ +Name: bash +Version: 4.2.46 +Release: 21 +License: LGPLv2 +Summary: Fake package + +Requires: glibc +%if %__isa_bits == 32 +Requires: libpthread.so.0(GLIBC_2.0) +%else +Requires: libpthread.so.0(GLIBC_2.3)(64bit) +%endif + +%description +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +%package doc +Summary: Fake package +BuildArch: noarch +Requires: %{name} + +%description doc +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files debuginfo +%files doc + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-rhel73-1/filesystem.spec b/data/tests/modules/specs/base-runtime-rhel73-1/filesystem.spec new file mode 100644 index 0000000..8e5e545 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-rhel73-1/filesystem.spec @@ -0,0 +1,32 @@ +Name: filesystem +Version: 3.2 +Release: 21 +License: LGPLv2 +Summary: Fake package + + +%description +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-rhel73-1/glibc.spec b/data/tests/modules/specs/base-runtime-rhel73-1/glibc.spec new file mode 100644 index 0000000..c2cd19a --- /dev/null +++ b/data/tests/modules/specs/base-runtime-rhel73-1/glibc.spec @@ -0,0 +1,77 @@ +Name: glibc +Version: 2.17 +Release: 157 +License: LGPLv2 +Summary: Fake package + +Requires: %{name}-common = %{version}-%{release} +Requires: basesystem +%if %__isa_bits == 32 +Provides: libc.so.6() +Provides: libpthread.so.0(GLIBC_2.0) +%else +Provides: libc.so.6()(64bit) +Provides: libpthread.so.0(GLIBC_2.3)(64bit) +%endif + +%description +Fake package + +%package common +Summary: Fake package + +%description common +Fake package + +%package -n dummy-nscd +Summary: Fake package + +%description -n dummy-nscd +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + +%package debuginfo-common +Summary: Fake package +Group: Development/Debug + +%description debuginfo-common +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%if %__isa_bits == 32 +%ghost /usr/lib/libc.so.6 +%else +%ghost /usr/lib64/libc.so.6 +%endif + +%files common +%files -n dummy-nscd +%files debuginfo +%files debuginfo-common + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-rhel73-1/kernel.spec b/data/tests/modules/specs/base-runtime-rhel73-1/kernel.spec new file mode 100644 index 0000000..48db092 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-rhel73-1/kernel.spec @@ -0,0 +1,46 @@ +Name: kernel +Version: 3.10.0 +Release: 514 +License: LGPLv2 +Summary: Fake package + +%description +Fake package + +%package headers +Summary: Fake package + +%description headers +Fake package + +%package doc +Summary: Fake package +BuildArch: noarch + +%description doc +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files headers +%files doc + + +%changelog diff --git a/data/tests/modules/specs/base-runtime-rhel73-1/profiles.json b/data/tests/modules/specs/base-runtime-rhel73-1/profiles.json new file mode 120000 index 0000000..6dc02e7 --- /dev/null +++ b/data/tests/modules/specs/base-runtime-rhel73-1/profiles.json @@ -0,0 +1 @@ +../base-runtime-f26-1/profiles.json \ No newline at end of file diff --git a/data/tests/modules/specs/base-runtime-rhel73-1/systemd.spec b/data/tests/modules/specs/base-runtime-rhel73-1/systemd.spec new file mode 100644 index 0000000..462e64f --- /dev/null +++ b/data/tests/modules/specs/base-runtime-rhel73-1/systemd.spec @@ -0,0 +1,31 @@ +Name: systemd +Version: 219 +Release: 30 +License: LGPLv2 +Summary: Fake package + +%description +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files + + +%changelog diff --git a/data/tests/modules/specs/build.sh b/data/tests/modules/specs/build.sh new file mode 100755 index 0000000..d0bad50 --- /dev/null +++ b/data/tests/modules/specs/build.sh @@ -0,0 +1,53 @@ +#!/bin/bash + + +# run this script to (re-)generate module repos + + +# Requirements: +# * createrepo_c +# * rpmbuild + + +export LC_ALL=C + +set -e + + +DIR=$(dirname $(readlink -f $0)) +ARCHES="i686 x86_64 s390x" + + +./_create_modulemd.py + + +for target in $ARCHES; do + cp ../defaults/httpd.yaml ../modules/httpd-2.4-1/$target/ +done + +for module in $DIR/*-*-* $DIR/_non-modular; do + module_name=$(basename $module) + for target in $ARCHES; do + repo_path=$DIR/../modules/$module_name/$target + repo_path_all=$DIR/../modules/_all/$target + + mkdir -p $repo_path_all + cp $repo_path/* $repo_path_all/ || : + + createrepo_c $repo_path + if [ "_non-modular" != "$module_name" ] + then + ./_createrepo_c_modularity_hack.py $repo_path + fi + done +done + + +for target in $ARCHES; do + repo_path=$DIR/../modules/_all/$target + createrepo_c $repo_path + ./_createrepo_c_modularity_hack.py $repo_path +done + + +echo "DONE: Test data created" diff --git a/data/tests/modules/specs/httpd-2.2-1/httpd.spec b/data/tests/modules/specs/httpd-2.2-1/httpd.spec new file mode 100644 index 0000000..e0fd383 --- /dev/null +++ b/data/tests/modules/specs/httpd-2.2-1/httpd.spec @@ -0,0 +1,48 @@ +Name: httpd +Version: 2.2.15 +Release: 59 +License: LGPLv2 +Summary: Fake package + +Requires: glibc + +%description +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +%package doc +Summary: Fake package + +%description doc +Fake package + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files debuginfo +%files doc + + +%changelog diff --git a/data/tests/modules/specs/httpd-2.2-1/profiles.json b/data/tests/modules/specs/httpd-2.2-1/profiles.json new file mode 100644 index 0000000..9b8c71b --- /dev/null +++ b/data/tests/modules/specs/httpd-2.2-1/profiles.json @@ -0,0 +1,8 @@ +{ + "default": { + "rpms": ["httpd"] + }, + "doc": { + "rpms": ["httpd-doc"] + } +} \ No newline at end of file diff --git a/data/tests/modules/specs/httpd-2.4-1/httpd.spec b/data/tests/modules/specs/httpd-2.4-1/httpd.spec new file mode 100644 index 0000000..e401598 --- /dev/null +++ b/data/tests/modules/specs/httpd-2.4-1/httpd.spec @@ -0,0 +1,49 @@ +Name: httpd +Version: 2.4.25 +Release: 7 +License: LGPLv2 +Summary: Fake package + +Requires: glibc +Requires: libnghttp2 + +%description +Fake package + +%package doc +Summary: Fake package + +%description doc +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files doc +%files debuginfo + + +%changelog diff --git a/data/tests/modules/specs/httpd-2.4-1/libnghttp2.spec b/data/tests/modules/specs/httpd-2.4-1/libnghttp2.spec new file mode 100644 index 0000000..8e1232d --- /dev/null +++ b/data/tests/modules/specs/httpd-2.4-1/libnghttp2.spec @@ -0,0 +1,39 @@ +Name: libnghttp2 +Version: 1.21.1 +Release: 1 +License: LGPLv2 +Summary: Fake package + +%description +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files debuginfo + + +%changelog diff --git a/data/tests/modules/specs/httpd-2.4-1/profiles.json b/data/tests/modules/specs/httpd-2.4-1/profiles.json new file mode 120000 index 0000000..d237291 --- /dev/null +++ b/data/tests/modules/specs/httpd-2.4-1/profiles.json @@ -0,0 +1 @@ +../httpd-2.2-1/profiles.json \ No newline at end of file diff --git a/data/tests/modules/specs/httpd-2.4-2/httpd.spec b/data/tests/modules/specs/httpd-2.4-2/httpd.spec new file mode 100644 index 0000000..1729e43 --- /dev/null +++ b/data/tests/modules/specs/httpd-2.4-2/httpd.spec @@ -0,0 +1,49 @@ +Name: httpd +Version: 2.4.25 +Release: 8 +License: LGPLv2 +Summary: Fake package + +Requires: glibc +Requires: libnghttp2 + +%description +Fake package + +%package doc +Summary: Fake package + +%description doc +Fake package + +%package debuginfo +Summary: Fake package +Group: Development/Debug + +%description debuginfo +Fake package + + +#%prep +#%setup -q + + +%build +echo OK + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%files doc +%files debuginfo + + +%changelog diff --git a/data/tests/modules/specs/httpd-2.4-2/libnghttp2.spec b/data/tests/modules/specs/httpd-2.4-2/libnghttp2.spec new file mode 120000 index 0000000..3025983 --- /dev/null +++ b/data/tests/modules/specs/httpd-2.4-2/libnghttp2.spec @@ -0,0 +1 @@ +../httpd-2.4-1/libnghttp2.spec \ No newline at end of file diff --git a/data/tests/modules/specs/httpd-2.4-2/profiles.json b/data/tests/modules/specs/httpd-2.4-2/profiles.json new file mode 120000 index 0000000..d237291 --- /dev/null +++ b/data/tests/modules/specs/httpd-2.4-2/profiles.json @@ -0,0 +1 @@ +../httpd-2.2-1/profiles.json \ No newline at end of file diff --git a/data/tests/modules/yum.repos.d/test.repo.in b/data/tests/modules/yum.repos.d/test.repo.in new file mode 100644 index 0000000..d0cadcc --- /dev/null +++ b/data/tests/modules/yum.repos.d/test.repo.in @@ -0,0 +1,6 @@ +[test] +name=Test +baseurl=file://@CMAKE_SOURCE_DIR@/data/tests/modules/modules/_all/x86_64/ +enabled=1 +gpgcheck=0 +metadata_expire=0 diff --git a/data/tests/yum.repos.d/bumblebee.repo b/data/tests/yum.repos.d/bumblebee.repo new file mode 100644 index 0000000..cd2d12e --- /dev/null +++ b/data/tests/yum.repos.d/bumblebee.repo @@ -0,0 +1,18 @@ +[bumblebee] +name=bumblebee for fedora Linux $releasever - $basearch - Base +baseurl= + http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora$releasever/ +failovermethod=priority +enabled=1 +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-bumblebeepublic + +[bumblebee-source] +name=bumblebee for fedora Linux $releasever - $basearch - Source +baseurl= + http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora$releasever/SRPMS +failovermethod=priority +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-bumblebeepublic +gpgcheck=1 + diff --git a/data/tests/yum.repos.d/local.repo b/data/tests/yum.repos.d/local.repo new file mode 100644 index 0000000..3760a36 --- /dev/null +++ b/data/tests/yum.repos.d/local.repo @@ -0,0 +1,6 @@ +[local] +name=Local +baseurl=file:///tmp/repo +enabled=1 +gpgcheck=0 +metadata_expire=1d diff --git a/data/tests/yum.repos.d/redhat.repo b/data/tests/yum.repos.d/redhat.repo new file mode 100644 index 0000000..9061d26 --- /dev/null +++ b/data/tests/yum.repos.d/redhat.repo @@ -0,0 +1,5 @@ +[redhat] +name=Red Hat +baseurl=http://www.redhat.com/ +enabled=0 +gpgcheck=0 diff --git a/data/tests/yum.repos.d/whitespace.repo b/data/tests/yum.repos.d/whitespace.repo new file mode 100644 index 0000000..21586d9 --- /dev/null +++ b/data/tests/yum.repos.d/whitespace.repo @@ -0,0 +1,9 @@ +[whitespace] +name=repo file with whitespace at the end +baseurl=http://whitespace +enabled=1 +gpgcheck=0 + + + + diff --git a/docs/hawkey/CMakeLists.txt b/docs/hawkey/CMakeLists.txt new file mode 100644 index 0000000..63c7672 --- /dev/null +++ b/docs/hawkey/CMakeLists.txt @@ -0,0 +1,32 @@ +# html and man documentation are separate targets, apparently there's no way to +# tell sphinx-build to do them both in one go: + + +if (WITH_HTML OR WITH_MAN) + find_program(SPHINX_PROGRAM NAMES "sphinx-build-${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") + if(NOT EXISTS ${SPHINX_PROGRAM}) + find_program(SPHINX_PROGRAM NAMES sphinx-build-${PYTHON_VERSION_MAJOR}) + endif() + if(NOT EXISTS ${SPHINX_PROGRAM}) + find_program(SPHINX_PROGRAM NAMES sphinx-build) + endif() + if(NOT EXISTS ${SPHINX_PROGRAM}) + message(FATAL_ERROR "Sphinx program not found." ) + endif() +endif() + +if(WITH_HTML) + add_custom_target(doc-html + PYTHONPATH=${CMAKE_BINARY_DIR}/src/python ${SPHINX_PROGRAM} -b html + ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/html + COMMENT "Building html documentation" + ) +endif() +if(WITH_MAN) + add_custom_target(doc-man ALL + PYTHONPATH=${CMAKE_BINARY_DIR}/src/python ${SPHINX_PROGRAM} -b man + ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/man + COMMENT "Building manpage documentation" + ) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/hawkey.3 DESTINATION share/man/man3) +endif() diff --git a/docs/hawkey/changes.rst b/docs/hawkey/changes.rst new file mode 100644 index 0000000..6f86baf --- /dev/null +++ b/docs/hawkey/changes.rst @@ -0,0 +1,714 @@ +.. + Copyright (C) 2014-2015 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +************* + API Changes +************* + +.. contents:: + +Introduction +============ + +This document describes the API changes the library users should be aware of before upgrading to each respective version. It is our plan to have the amount of changes requiring changing the client code go to a minimum after the library hits the 1.0.0 version. + +Depracated API items (classes, methods, etc.) are designated as such in this document. The first release where support for such items can be dropped entirely must be issued at *least five months* after the issue of the release that announced the deprecation and at the same time have, relatively to the deprecating release, either: + +* a higher major version number, or +* a higher minor version number, or +* a patchlevel number that is *by at least five* greater. + +These criteria are likely to tighten in the future as hawkey matures. + +Actual changes in the API are then announced in this document as well. ABI changes including changes in functions' parameter counts or types or removal of public symbols from ``libhawkey`` imply an increase in the library's SONAME version. + + +Changes in 0.2.10 +================= + +Python bindings +--------------- + +:meth:`Query.filter` now returns a new instance of :class:`Query`, the same as +the original with the new filtering applied. This allows for greater flexibility +handling the :class:`Query` objects and resembles the way ``QuerySets`` behave in +Django. + +In practice the following code will stop working as expected:: + + q = hawkey.Query(self.sack) + q.filter(name__eq="flying") + # processing the query ... + +It needs to be changed to:: + + q = hawkey.Query(self.sack) + q = q.filter(name__eq="flying") + # processing the query ... + +The original semantics is now available via the :meth:`Query.filterm` method, so +the following will also work:: + + q = hawkey.Query(self.sack) + q.filterm(name__eq="flying") + # processing the query ... + +Changes in 0.2.11 +================= + +Python bindings +--------------- + +In Python's :class:`Package` instances accessors for string attributes now +return None instead of the empty string if the attribute is missing (for instance +a ``pkg.sourcerpm`` now returns None if ``pkg`` is a source rpm package +already). + +This change is towards a more conventional Python practice. Also, this leaves the +empty string return value free to be used when it is actually the case. + +Changes in 0.3.0 +================ + +Core +---- + +Query: key for reponame filtering +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The Query key value used for filtering by the repo name is ``HY_PKG_REPONAME`` +now (was ``HY_PKG_REPO``). The old value was misleading. + +Repo initialization +^^^^^^^^^^^^^^^^^^^ + +``hy_repo_create()`` for Repo object initialization now needs to be passed a +name of the repository. + +.. _changes_query_installs: + +Query installs obsoleted +^^^^^^^^^^^^^^^^^^^^^^^^ + +All Goal methods accepting Query as the means of selecting packages, such as +``hy_goal_install_query()`` have been replaced with their Selector +counterparts. Selector structures have been introduced for the particular +purpose of specifying a package that best matches the given criteria and at the +same time is suitable for installation. For a discussion of this decision see +:ref:`rationale_selectors`. + + +Python bindings +--------------- + +Query: filtering by repository with the reponame key +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Similar change happened in Python, the following constructs:: + + q = q.filter(repo="updates") + +need to be changed to:: + + q = q.filter(reponame="updates") + +The old version of this didn't allow using the same string to both construct the +query and dynamically get the reponame attribute from the returned packages +(used e.g. in DNF to search by user-specified criteria). + +Package: removed methods for direct EVR comparison +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The following will no longer work:: + + if pkg.evr_eq(some_other_pkg): + ... + +Instead use the result of ``pkg.evr_cmp``, for instance:: + + if pkg.evr_cmp(some_other_pkg) == 0: + ... + +This function compares only the EVR part of a package, not the name. Since it +rarely make sense to compare versions of packages of different names, the +following is suggested:: + + if pkg == some_other_pkg: + ... + +Repo initialization +^^^^^^^^^^^^^^^^^^^ + +All instantiations of :class:`hawkey.Repo` now must be given the name of the +Repo. The following will now fail:: + + r = hawkey.Repo() + r.name = "fedora" + +Use this instead:: + + r = hawkey.Repo("fedora") + +Query installs obsoleted +^^^^^^^^^^^^^^^^^^^^^^^^ + +See :ref:`changes_query_installs` in the C section. In Python Queries will no +longer work as goal target specifiers, the following will fail:: + + q = hawkey.Query(sack) + q.filter(name="gimp") + goal.install(query=q) + +Instead use:: + + sltr = hawkey.Selector(sack) + sltr.set(name="gimp") + goal.install(select=sltr) + +Or a convenience notation:: + + goal.install(name="gimp") + +Changes in 0.3.1 +================ + +Query: ``hy_query_filter_package_in()`` takes a new parameter +------------------------------------------------------------- + +``keyname`` parameter was added to the function signature. The new parameter +allows filtering by a specific relation to the resulting packages, for +instance:: + + hy_query_filter_package_in(q, HY_PKG_OBSOLETES, HY_EQ, pset) + +only leaves the packages obsoleting a package in ``pset`` a part of the result. + +Removed ``hy_query_filter_obsoleting()`` +---------------------------------------- + +The new version of ``hy_query_filter_package_in()`` handles this now, see above. + +In Python, the following is no longer supported:: + + q = query.filter(obsoleting=1) + +The equivalent new syntax is:: + + installed = hawkey.Query(sack).filter(reponame=SYSTEM_REPO_NAME) + q = query.filter(obsoletes=installed) + +Changes in 0.3.2 +================ + +Removed ``hy_packagelist_of_obsoletes``. +---------------------------------------- + +The function was not systematic. Same result is achieved by obtaining obsoleting +reldeps from a package and then trying to find the installed packages that +provide it. In Python:: + + q = hawkey.Query(sack).filter(reponame=SYSTEM_REPO_NAME, provides=pkg.obsoletes) + +Changes in 0.3.3 +================ + +Renamed ``hy_package_get_nvra`` to ``hy_package_get_nevra`` +----------------------------------------------------------- + +The old name was by error, the functionality has not changed: this function has +always returned the full NEVRA, skipping the epoch part when it's 0. + +Changes in 0.3.4 +================ + +Python bindings +--------------- + +``pkg.__repr__()`` is more verbose now +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Previously, ``repr(pkg)`` would yield for instance ``<_hawkey.Package object, +id: 5>``. Now more complete information is present, including the package's +NEVRA and repository: ````. + +Also notice that the representation now mentions the final ``hawkey.Package`` +type, not ``_hawkey.Package``. Note that these are currently the same. + +Changes in 0.3.8 +================ + +Core +---- + +New parameter ``rootdir`` to ``hy_sack_create()`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +``hy_sack_create()`` now accepts third argument, ``rootdir``. This can be used +to tell Hawkey that we are intending to do transactions in a changeroot, not in +the current root. It effectively makes use of the RPM database found under +``rootdir``. To make your code compile in 0.3.8 without changing functionality, change:: + + HySack sack = hy_sack_create(cachedir, arch); + +to:: + + HySack sack = hy_sack_create(cachedir, arch, NULL); + +Python bindings +--------------- + +Forms recognized by ``Subject`` are no longer an instance-scope setting +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +It became necessary to differentiate between the default forms used by +``subject.nevra_possibilities()`` and +``subject.nevra_possibilities_real()``. Therefore there is little sense in +setting the default form for an entire ``Subject`` instance. The following +code:: + + subj = hawkey.Subject("input", form=hawkey.FORM_NEVRA) + result = list(subj.nevra_possibilities()) + +is thus replaced by:: + + subj = hawkey.Subject("input") + result = list(subj.nevra_possibilities(form=hawkey.FORM_NEVRA)) + +Changes in 0.3.9 +================ + +Core +---- + +Flags for ``hy_sack_create`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +``hy_sack_create()`` now accepts fourth argument, ``flags``, introduced to +modify the sack behavior with boolean flags. Currently only one flag is +supported, ``HY_MAKE_CACHE_DIR``, which causes the cache directory to be created +if it doesn't exist yet. To preserve the previous behavior, change the +following:: + + HySack sack = hy_sack_create(cachedir, arch, rootdir); + +into:: + + HySack sack = hy_sack_create(cachedir, arch, rootdir, HY_MAKE_CACHE_DIR); + +``hy_sack_get_cache_path`` is renamed to ``hy_sack_get_cache_dir`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Update your code by mechanically replacing the name. + + +Python bindings +--------------- + +``make_cache_dir`` for Sack's constructor +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +A new sack by default no longer automatically creates the cache directory. To +get the old behavior, append ``make_cache_dir=True`` to the +:meth:`.Sack.__init__` arguments, that is change the following:: + + sack = hawkey.Sack(...) + +to:: + + sack = hawkey.Sack(..., make_cache_dir=True) + + +``cache_path`` property of ``Sack`` renamed to ``cache_dir`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Reflects the similar change in C API. + +Changes in 0.3.11 +================= + +.. _0_3_11_core-label: + +Core +---- + +``hy_goal_package_obsoletes()`` removed, ``hy_goal_list_obsoleted_by_package()`` provided instead +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +``hy_goal_package_obsoletes()`` was flawed in that it only returned a single +obsoleted package (in general, package can obsolete arbitrary number of packages +and upgrade a package of the same name which is also reported as an +obsolete). Use ``hy_goal_list_obsoleted_by_package()`` instead, to see the +complete set of packages that inclusion of the given package in an RPM +transaction will cause to be removed. + +``hy_goal_list_erasures()`` does not report obsoletes +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +In other words, ``hy_goal_list_erasures()`` and ``hy_goal_list_obsoleted()`` +return disjoint sets. + + +Python bindings +--------------- + +Directly reflecting the :ref:`core changes <0_3_11_core-label>`. In particular, +instead of:: + + obsoleted_pkg = goal.package_obsoletes(pkg) + +use:: + + obsoleted = goal.obsoleted_by_package(pkg) # list + obsoleted_pkg = obsoleted[0] + +Changes in 0.4.5 +================= + +Core +---- + +Query: ``hy_query_filter_latest()`` now filter latest packages ignoring architecture +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +For old function behavior use new function ``hy_query_filter_latest_per_arch()`` + +Python bindings +--------------- + +In Python's :class:`Query` option ``latest`` in :meth:`Query.filter` now filter +only the latest packages ignoring architecture. The original semantics for filtering +latest packages for each arch is now available via ``latest_per_arch`` option. + +For example there are these packages in sack:: + + glibc-2.17-4.fc19.x86_64 + glibc-2.16-24.fc18.x86_64 + glibc-2.16-24.fc18.i686 + + >>> q = hawkey.Query(self.sack).filter(name="glibc") + >>> map(str, q.filter(latest=True)) + ['glibc-2.17-4.fc19.x86_64'] + + >>> map(str, q.filter(latest_per_arch=True)) + ['glibc-2.17-4.fc19.x86_64', 'glibc-2.16-24.fc18.i686'] + +Changes in 0.4.13 +================= + +Core +---- + +Deprecated ``hy_package_get_update_*`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The functions were deprecated because there can be multiple advisories referring +to a single package. Please use the new function ``hy_package_get_advisories()`` +which returns all these advisories. New functions ``hy_advisory_get_*`` provide +the data retrieved by the deprecated functions. + +The only exception is the ``hy_package_get_update_severity()`` which will be +dropped without any replacement. However advisory types and severity levels are +distinguished from now and the type is accessible via ``hy_advisory_get_type()``. +Thus enum ``HyUpdateSeverity`` was also deprecated. A new ``HyAdvisoryType`` +should be used instead. + +The old functions will be dropped after 2014-07-07. + +Changes in 0.4.15 +================= + +.. _0_4_15_core-label: + +Core +---- + +``hy_goal_write_debugdata()`` takes a directory parameter +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +``hy_goal_write_debugdata()`` has a new `const char *dir` argument to communicate the target directory for the debugging data. The old call:: + + hy_goal_write_debugdata(goal); + +should be changed to achieve the same behavior to:: + + hy_goal_write_debugdata(goal, "./debugdata"); + +Python bindings +--------------- + +``Goal.write_debugdata()`` takes a directory parameter +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Analogous to :ref:`core changes <0_4_15_core-label>`. + +Package: string attributes are represented by Unicode object +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Attributes ``baseurl``, ``location``, ``sourcerpm``, ``version``, ``release``, ``name``, ``arch``, ``description``, ``evr``, ``license``, ``packager``, ``reponame``, ``summary`` and ``url`` of Package object return Unicode string. + + +Changes in 0.4.18 +================= + +Core +---- + +Deprecated ``hy_advisory_get_filenames`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The function was deprecated because we need more information about packages +listed in an advisory than just file names. Please use the new function +``hy_advisory_get_packages()`` in combination with +``hy_advisorypkg_get_string()`` to obtain the data originally provided by the +deprecated function. + +The old function will be dropped after 2014-10-15 AND no sooner than in 0.4.21. + +Python bindings +--------------- + +``Repo()`` does not accept ``cost`` keyword argument +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Instead of:: + + r = hawkey.Repo('name', cost=30) + +use:: + + r = hawkey.Repo('name') + r.cost = 30 + +Also previously when no ``cost`` was given it defaulted to 1000. Now the default is 0. Both these aspects were present by mistake and the new interface is consistent with the C library. + +Deprecated ``_hawkey.Advisory.filenames`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The attribute was deprecated because the underlying C function was also +deprecated. Please use the new attribute ``packages`` and the attribute +``filename`` of the returned objects to obtain the data originally provided by +the deprecated attribute. + +The old attribute will be dropped after 2014-10-15 AND no sooner than in 0.4.21. + + +Changes in 0.4.19 +================= + +Python bindings +--------------- + +Advisory attributes in Unicode +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +All string attributes of ``Advisory`` and ``AdvisoryRef`` objects (except the +deprecated ``filenames`` attribute) are Unicode objects now. + + +Changes in 0.5.2 +================= + +Core +---- + +``hy_chksum_str`` returns NULL +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Previously, the function ``hy_chksum_str`` would cause a segmentation fault when it was used +with incorrect type value. Now it correctly returns NULL if type parameter does not correspond +to any of expected values. + + +Changes in 0.5.3 +================ + +Core +---- + +New parameter ``logfile`` to ``hy_sack_create()`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +``hy_sack_create()`` now accepts fifth argument, ``logfile`` to customize log file path. +If NULL parameter as ``logfile`` is given, then all debug records are written to ``hawkey.log`` +in ``cachedir``. To make your code compile in 0.5.3 without changing functionality, change:: + + HySack sack = hy_sack_create(cachedir, arch, rootdir, 0); + +to:: + + HySack sack = hy_sack_create(cachedir, arch, rootdir, NULL, 0); + +Deprecated ``hy_create_cmdline_repo()`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The function will be removed since `hy_add_cmdline_package` creates cmdline repository automatically. + +The function will be dropped after 2015-06-23 AND no sooner than in 0.5.8. + +Python bindings +--------------- + +New optional parameter ``logfile`` to ``Sack`` constructor +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This addition lets user specify log file path from :meth:`.Sack.__init__` + +``cache_path`` property of ``Sack`` renamed to ``cache_dir`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This change was already announced but it actually never happened. + +Deprecated ``Sack`` method ``create_cmdline_repo()`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The method will be removed since :meth:`.Sack.add_cmdline_package` creates cmdline repository automatically. + +The method will be dropped after 2015-06-23 AND no sooner than in 0.5.8. + + +Changes in 0.5.4 +================ + +Python bindings +--------------- + +Goal: ``install()`` takes a new optional parameter +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +If the ``optional`` parameter is set to ``True``, hawkey silently skips packages that can not +be installed. + + +Changes in 0.5.5 +================ + +Core +---- + +Renamed ``hy_sack_load_yum_repo`` to ``hy_sack_load_repo`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Hawkey is package manager agnostic and the ``yum`` phrase could be misleading. + +The function will be dropped after 2015-10-27 AND no sooner than in 0.5.8. + +Python bindings +--------------- + +Sack method `load_yum_repo` has been renamed to :meth:`.Sack.load_repo` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Hawkey is package manager agnostic and the ``yum`` phrase could be misleading. + +The method will be dropped after 2015-10-27 AND no sooner than in 0.5.8. + + +Changes in 0.5.7 +================ + +Python bindings +--------------- + +Package: file attribute is represented by list of Unicode objects +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Sack: `list_arches` method returns list of Unicode objects +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + +Changes in 0.5.9 +================ + +Core +---- + +Deprecated ``hy_goal_req_has_distupgrade()``, ``hy_goal_req_has_erase()`` and ``hy_goal_req_has_upgrade()`` functions +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +To make your code compile in 0.5.9 without changing functionality, change:: + + hy_goal_req_has_distupgrade_all(goal) + hy_goal_req_has_erase(goal) + hy_goal_req_has_upgrade_all(goal) + +to:: + + hy_goal_has_actions(goal, HY_DISTUPGRADE_ALL) + hy_goal_has_actions(goal, HY_ERASE) + hy_goal_has_actions(goal, HY_UPGRADE_ALL) + +respectively + + +Python bindings +--------------- + +Deprecated Goal methods :meth:`Goal.req_has_distupgrade_all`, :meth:`Goal.req_has_erase` and :meth:`Goal.req_has_upgrade_all` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +To make your code compatible with hawkey 0.5.9 without changing functionality, +change:: + + goal.req_has_distupgrade_all() + goal.req_has_erase() + goal.req_has_upgrade_all() + +to:: + + goal.actions & hawkey.DISTUPGRADE_ALL + goal.actions & hawkey.ERASE + goal.actions & hawkey.UPGRADE_ALL + +respectively + + +Changes in 0.6.2 +================ + +Core +---- + +The ``hy_advisory_get_filenames()`` API call, the corresponding Python +property ``filenames`` of class :class:`Advisory` are removed. +Instead, iterate over ``hy_advisory_get_packages()`` with +``hy_advisorypkg_get_string()`` and ``HY_ADVISORYPKG_FILENAME``. No +known hawkey API consumers were using this call. + +Hawkey now has a dependency on GLib. Aside from the above +``hy_advisory_get_filenames()`` call, the Python API is fully +preserved. The C API has minor changes, but the goal is to avoid +causing a significant amount of porting work for existing consumers. + +The ``hy_package_get_files`` API call now returns a ``char **``, +allocated via `g_malloc`. Free with `g_strfreev`. + +The ``HyStringArray`` type is removed, as nothing now uses it. + +:class:`HyPackageList` is now just a :class:`GPtrArray`, though +the existing API is converted into wrappers. Notably, this means +you can now use ``g_ptr_array_unref()``. + + +Python bindings +--------------- + +Aside from the one change below, the Python bindings should be +unaffected by the C API changes. + +Advisory: The ``filename`` property is removed along with the C API +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/hawkey/conf.py b/docs/hawkey/conf.py new file mode 100644 index 0000000..93330c2 --- /dev/null +++ b/docs/hawkey/conf.py @@ -0,0 +1,265 @@ +# -*- coding: utf-8 -*- +# +# Hawkey documentation build configuration file, created by +# sphinx-quickstart on Tue Aug 7 11:06:24 2012. +# +# This file is execfile()d with the current directory set to its containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +#sys.path.insert(0, os.path.abspath('.')) + +import os +import re + +_dirname = os.path.dirname(__file__) + +# -- General configuration ----------------------------------------------------- + +# If your documentation needs a minimal Sphinx version, state it here. +#needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be extensions +# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +extensions = [] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix of source filenames. +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u'Hawkey' +copyright = u'2012-2015, Red Hat, Licensed under GPLv2+' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. + +def version_readout(): + fn = os.path.join(_dirname, '../../VERSION.cmake') + with open(fn) as f: + lines = f.readlines() + + pat = re.compile(r"\d+") + major = pat.findall(lines[0])[0] + minor = pat.findall(lines[1])[0] + micro = pat.findall(lines[2])[0] + + return "{}.{}.{}".format(major, minor, micro) + +version = version_readout() +# The full version, including alpha/beta/rc tags. +release = '%s-1' % version + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +#language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = [] + +# The reST default role (used for this markup: `text`) to use for all documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + + +# -- Options for HTML output --------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +html_theme = 'default' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. If None, it defaults to +# " v documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = None + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Output file base name for HTML help builder. +htmlhelp_basename = 'Hawkeydoc' + + +# -- Options for LaTeX output -------------------------------------------------- + +latex_elements = { +# The paper size ('letterpaper' or 'a4paper'). +#'papersize': 'letterpaper', + +# The font size ('10pt', '11pt' or '12pt'). +#'pointsize': '10pt', + +# Additional stuff for the LaTeX preamble. +#'preamble': '', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, author, documentclass [howto/manual]). +latex_documents = [ + ('index', 'Hawkey.tex', u'Hawkey Documentation', + u'Aleš Kozumplík', 'manual'), +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = None + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True + + +# -- Options for manual page output -------------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + ('index', 'hawkey', u'Hawkey Documentation', + [u'Aleš Kozumplík'], 3) +] + +# If true, show URL addresses after external links. +#man_show_urls = False + + +# -- Options for Texinfo output ------------------------------------------------ + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + ('index', 'Hawkey', u'Hawkey Documentation', + u'Aleš Kozumplík', 'Hawkey', 'One line description of project.', + 'Miscellaneous'), +] + +# Documents to append as an appendix to all manuals. +#texinfo_appendices = [] + +# If false, no module index is generated. +#texinfo_domain_indices = True + +# How to display URL addresses: 'footnote', 'no', or 'inline'. +#texinfo_show_urls = 'footnote' + +rst_prolog = """ +.. default-domain:: py +.. _libsolv: https://github.com/openSUSE/libsolv +.. _bugzilla: https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=hawkey + +""" diff --git a/docs/hawkey/faq.rst b/docs/hawkey/faq.rst new file mode 100644 index 0000000..73de5c6 --- /dev/null +++ b/docs/hawkey/faq.rst @@ -0,0 +1,61 @@ +.. + Copyright (C) 2014 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +**** +FAQ +**** + +.. contents:: + +Getting Started +=============== + +How do I build it? +------------------ + +See the `README `_. + +Are there examples using hawkey? +-------------------------------- + +Yes, look at: + +* `unit tests `_ +* `The Hawkey Testing Hack `_ +* a more complex example is `DNF `_, the Yum fork using hawkey for backend. + +Using Hawkey +============ + +How do I obtain the repo metadata files to feed to Hawkey? +---------------------------------------------------------- + +It is entirely up to you. Hawkey does not provide any means to do this +automatically, for instance from your `/etc/yum.repos.d` configuration. Use or +build tools to do that. For instance, both Yum and DNF deals with the same +problem and inside they employ `urlgrabber `_ to +fetch the files. A general solution if you work in C is for instance `libcurl +`_. If you are building a nice downloading library that +integrates well with hawkey, let us know. + +Why is a tool to do the downloads not integrated into Hawkey? +------------------------------------------------------------- + +Because downloading things from remote servers is a differnt domain full of its +own complexities like HTTPS, parallel downloads, error handling and error +recovery to name a few. Downloading is a concern that can be naturally separated +from other parts of package metadata managing. diff --git a/docs/hawkey/index.rst b/docs/hawkey/index.rst new file mode 100644 index 0000000..2e29207 --- /dev/null +++ b/docs/hawkey/index.rst @@ -0,0 +1,39 @@ +.. + Copyright (C) 2014 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +#################################### + Hawkey, the libsolv API Simplified +#################################### + +Contents: + +.. toctree:: + :maxdepth: 1 + + changes + faq + tutorial-py + reference-py + rationale + +Indices and tables + + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` + diff --git a/docs/hawkey/rationale.rst b/docs/hawkey/rationale.rst new file mode 100644 index 0000000..525b631 --- /dev/null +++ b/docs/hawkey/rationale.rst @@ -0,0 +1,62 @@ +.. + Copyright (C) 2014 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +**************** +Design Rationale +**************** + +.. highlight:: c +.. _rationale_selectors: + +Selectors are not Queries +========================= + +Since both a Query and a Selector work to limit the set of all Sack's packages +to a subset, it can be suggested the two concepts should be the same and +e.g. Queries should be used for Goal specifications instead of Selectors:: + + // create sack, goal, ... + HyQuery q = hy_query_create(sack); + hy_query_filter(q, HY_PKG_NAME, HY_EQ, "anaconda") + hy_goal_install_query(q) + +This arrangment was in fact used in hawkey prior to version 0.3.0, just because +Queries looked like a convenient structure to hold this kind of information. It +was unfortunately confusing for the programmers: notice how evaluating the Query +``q`` would generally produce several packages (``anaconda`` for different +architectures and then different versions) but somehow when the same Query is +passed into the goal methods it always results in up to one pacakge selected for +the operation. This is a principal discrepancy. Further, Query is universal and +allows one to limit the package set with all sorts of criteria, matched in +different ways (substrings, globbing, set operation) while Selectors only +support few. Finally, while a fresh Query with no filters applied corresponds to +all packages of the Sack, a fresh Selector with no limits set is of no meaning. + +An alternative to introducing a completely different concept was adding a +separate constructor function for Query, one that would from the start designate +the Query to only accept settings compatible with its purpose of becoming the +selecting element in a Goal operation (in Python this would probably be +implemented as a subclass of Query). But that would break client's assumptions +about Query (`the unofficial C++ FAQ +`_ takes up the topic). + +*Implementation note*: Selectors reflect the kind of specifications that can be +directly translated into Libsolv jobs, without actually searching for a concrete +package to put there. In other words, Selectors are specifically designed not to +iterate over the package data (with exceptions, like glob matching) like Queries +do. While Hawkey mostly aims to hide any twists and complexities of the +underlying library, in this case the combined reasons warrant a concession. diff --git a/docs/hawkey/reference-py-constants.rst b/docs/hawkey/reference-py-constants.rst new file mode 100644 index 0000000..b3cccd8 --- /dev/null +++ b/docs/hawkey/reference-py-constants.rst @@ -0,0 +1,28 @@ +.. + Copyright (C) 2015 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +********************** +Module level constants +********************** + +.. data:: hawkey.CMDLINE_REPO_NAME + + The string name of the command line repository. + +.. data:: hawkey.SYSTEM_REPO_NAME + + The string name of the system repository. diff --git a/docs/hawkey/reference-py-errors.rst b/docs/hawkey/reference-py-errors.rst new file mode 100644 index 0000000..5c2f1b6 --- /dev/null +++ b/docs/hawkey/reference-py-errors.rst @@ -0,0 +1,52 @@ +.. + Copyright (C) 2015 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +************** +Error handling +************** + +When an error or an unexpected event occurs during a Hawkey routine, an +exception is raised: + +* if it is a general error that could be common to other Python programs, one of + the standard Python built-in exceptions is raised. For instance, ``IOError`` + and ``TypeError`` can be raised from Hawkey. + +* programming errors within Hawkey that cause unexpected or invalid states raise + the standard ``AssertionError``. These should be reported as bugs against + Hawkey. + +* programming errors due to incorrect use of the library usually produce + ``hawkey.ValueException`` or one of its subclasses, ``QueryException`` (poorly + formed Query) or ``ArchException`` (unrecognized architecture). + +* sometimes there is a close call between blaming the error on an input + parameter or on something else, beyond the programmer's + control. ``hawkey.RuntimeException`` is generally used in this case. + +* ``hawkey.ValidationException`` is raised when a function call performs a + preliminary check before proceeding with the main operation and this check + fails. + +The class hierarchy for Hawkey exceptions is:: + + +-- hawkey.Exception + +-- hawkey.ValueException + | +-- hawkey.QueryException + | +-- hawkey.ArchException + +-- hawkey.RuntimeException + +-- hawkey.ValidationException diff --git a/docs/hawkey/reference-py-repo.rst b/docs/hawkey/reference-py-repo.rst new file mode 100644 index 0000000..47ad11d --- /dev/null +++ b/docs/hawkey/reference-py-repo.rst @@ -0,0 +1,76 @@ +.. + Copyright (C) 2015 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +************ +Repositories +************ + +.. class:: hawkey.Repo + + Instances of :class:`hawkey.Repo` point to metadata of packages that are + available to be installed. The metadata are expected to be in the "rpm-md" + format. `librepo `_ may help you with + downloading the required files. + + .. attribute:: cost + + An integer specifying a relative cost of accessing this repository. This + value is compared when the priorities of two repositories are the same. The + repository with *the lowest cost* is picked. It is useful to make the + library prefer on-disk repositories to remote ones. + + .. attribute:: filelists_fn + + A valid string path to the readable "filelists" XML file if set. + + .. attribute:: name + + A string name of the repository. + + .. attribute:: presto_fn + + A valid string path to the readable "prestodelta.xml" (also called + "deltainfo.xml") file if set. + + .. attribute:: primary_fn + + A valid string path to the readable "primary" XML file if set. + + .. attribute:: priority + + An integer priority value of this repository. If there is more than one + candidate package for a particular operation, the one from the repository + with *the lowest priority* value is picked, possibly despite being less + convenient otherwise (e.g. by being a lower version). + + .. attribute:: repomd_fn + + A valid string path to the readable "repomd.xml" file if set. + + .. attribute:: updateinfo_fn + + A valid string path to the readable "updateinfo.xml" file if set. + + .. method:: __init__(name) + + Initialize the repository with empty :attr:`repomd_fn`, :attr:`primary_fn`, + :attr:`filelists_fn` and :attr:`presto_fn`. The priority and the cost are + set to ``0``. + + `name` is a string giving the name of the repository. The name should not + be equal to :const:`hawkey.SYSTEM_REPO_NAME` nor + :const:`hawkey.CMDLINE_REPO_NAME` diff --git a/docs/hawkey/reference-py-sack.rst b/docs/hawkey/reference-py-sack.rst new file mode 100644 index 0000000..6e598e6 --- /dev/null +++ b/docs/hawkey/reference-py-sack.rst @@ -0,0 +1,169 @@ +.. + Copyright (C) 2015 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +******************************************* +Sack---The fundamental hawkey structure +******************************************* + +.. class:: hawkey.Sack + + Instances of :class:`hawkey.Sack` represent collections of packages. An + application typically needs at least one instance because it provides much of + the hawkey's functionality. + + .. warning:: Any package instance is not supposed to work interchangeably between + :class:`hawkey.Query`, :class:`hawkey.Selector` or :class:`hawkey.Goal` + created from different :class:`hawkey.Sack`. Usually for common tasks + there is no need to initialize two or more `Sacks` in your program. + Sacks cannot be deeply copied. + + .. attribute:: cache_dir + + A read-only string property giving the path to the location where a + metadata cache is stored. + + .. attribute:: installonly + + A write-only sequence of strings property setting the provide names of + packages that should only ever be installed, never upgraded. + + .. attribute:: installonly_limit + + A write-only integer property setting how many installonly packages with + the same name are allowed to be installed concurrently. If ``0``, any + number of packages can be installed. + + .. method:: __init__(\ + cachedir=_CACHEDIR, arch=_ARCH, rootdir=_ROOTDIR, pkgcls=hawkey.Package, \ + pkginitval=None, make_cache_dir=False, logfile=_LOGFILE) + + Initialize the sack with a default cache directory, log file location set + to ``hawkey.log`` in the cache directory, an automatically detected + architecture and the current root (``/``) as an installroot. The cache is + disabled by default. + + `cachedir` is a string giving a path of a cache location. + + `arch` is a string specifying an architecture. + + `rootdir` is a string giving a path to an installroot. + + `pkgcls` is a class of packages retrieved from the sack. The class' + ``__init__`` method must accept two arguments. The first argument is a tuple + of the sack and the ID of the package. The second argument is the + `pkginitval` argument. `pkginitval` cannot be ``None`` if `pkgcls` is + specified. + + `make_cache_dir` is a boolean that specifies whether the cache should be + used to speedup loading of repositories or not (see + :ref:`\building_and_reusing_the_repo_cache-label`). + + `logfile` is a string giving a path of a log file location. + + .. method:: __len__() + + Returns the number of the packages loaded into the sack. + + .. method:: add_cmdline_package(filename) + + Add a package to a command line repository and return it. The package is specified as a string `filename` of an RPM file. The command line repository will be automatically created if doesn't exist already. It could be referenced later by :const:`hawkey.CMDLINE_REPO_NAME` name. + + .. method:: add_excludes(packages) + + Add a sequence of packages that cannot be fetched by Queries nor Selectors. + + .. method:: add_includes(packages) + + Add a sequence of the only packages that can be fetched by Queries or + Selectors. + + This is the inverse operation of :meth:`add_excludes`. Any package that + is not in the union of all the included packages is excluded. This works in + conjunction with exclude and doesn't override it. So, if you both include + and exclude the same package, the package is considered excluded no matter + of the order. + + .. method:: disable_repo(name) + + Disable the repository identified by a string *name*. Packages in that + repository cannot be fetched by Queries nor Selectors. + + .. method:: enable_repo(name) + + Enable the repository identified by a string *name*. Packages in that + repository can be fetched by Queries or Selectors. + + .. warning:: Execution of :meth:`add_excludes`, :meth:`add_includes`, + :meth:`disable_repo` or :meth:`enable_repo` methods could cause + inconsistent results in previously evaluated :class:`.Query`, + :class:`.Selector` or :class:`.Goal`. The rule of thumb is + to exclude/include packages, enable/disable repositories at first and + then do actual computing using :class:`.Query`, :class:`.Selector` + or :class:`.Goal`. For more details see + `developer discussion `_. + + .. method:: evr_cmp(evr1, evr2) + + Compare two EVR strings and return a negative integer if *evr1* < *evr2*, + zero if *evr1* == *evr2* or a positive integer if *evr1* > *evr2*. + + .. method:: get_running_kernel() + + Detect and return the package of the currently running kernel. If the + package cannot be found, ``None`` is returned. + + .. method:: list_arches() + + List strings giving all the supported architectures. + + .. method:: load_system_repo(repo=None, build_cache=False) + + Load the information about the packages in the system repository (in Fedora + it is the RPM database) into the sack. This makes the dependency solving + aware of the already installed packages. The system repository is always + set to :const:`hawkey.SYSTEM_REPO_NAME`. The information is not written to + the cache by default. + + `repo` is an optional :class:`.Repo` object that represents the system + repository. The object is updated during the loading. + + `build_cache` is a boolean that specifies whether the information should be + written to the cache (see :ref:`\building_and_reusing_the_repo_cache-label`). + + .. method:: load_repo(\ + repo, build_cache=False, load_filelists=False, load_presto=False, \ + load_updateinfo=False) + + Load the information about the packages in a :class:`.Repo` into the sack. + This makes the dependency solving aware of these packages. The information + is not written to the cache by default. + + `repo` is the :class:`.Repo` object to be processed. At least its + :attr:`.Repo.repomd_fn` must be set. If the cache has to be updated, + :attr:`.Repo.primary_fn` is needed too. Some information about the loading + process and some results of it are written into the internal state of the + repository object. + + `build_cache` is a boolean that specifies whether the information should be + written to the cache (see :ref:`\building_and_reusing_the_repo_cache-label`). + + `load_filelists`, `load_presto` and `load_updateinfo` are booleans that + specify whether the :attr:`.Repo.filelists_fn`, :attr:`.Repo.presto_fn` and + :attr:`.Repo.updateinfo_fn` files of the repository should be processed. + These files may contain information needed for dependency solving, + downloading or querying of some packages. Enable it if you are not sure (see + :ref:`\case_for_loading_the_filelists-label`). diff --git a/docs/hawkey/reference-py.rst b/docs/hawkey/reference-py.rst new file mode 100644 index 0000000..8b0d303 --- /dev/null +++ b/docs/hawkey/reference-py.rst @@ -0,0 +1,59 @@ +.. + Copyright (C) 2014-2015 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +****************************** +python-hawkey Reference Manual +****************************** + +.. contents:: + + +Introduction +============ + +This reference manual describes Python API to the library. For a quick start +take a look at :doc:`tutorial-py`. To be sure that you are familiar with our +deprecation policy, see :doc:`changes`. + +.. NOTE:: + + The API consists of exactly those elements described in this document, items + not documented here can change from release to release. Opening a `bugzilla`_ + if certain needed functionality is not exposed is the right thing to do. + +.. WARNING:: + + The manual is not complete yet - the features are being added incrementally + these days. + + +Contents +======== + +API Documentation Contents + +.. toctree:: + :maxdepth: 2 + + reference-py-sack + reference-py-errors + reference-py-constants + reference-py-repo + +Indices: + +* :ref:`genindex` diff --git a/docs/hawkey/tutorial-py.rst b/docs/hawkey/tutorial-py.rst new file mode 100644 index 0000000..fce3d7d --- /dev/null +++ b/docs/hawkey/tutorial-py.rst @@ -0,0 +1,302 @@ +.. + Copyright (C) 2014-2015 Red Hat, Inc. + + This copyrighted material is made available to anyone wishing to use, + modify, copy, or redistribute it subject to the terms and conditions of + the GNU General Public License v.2, or (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY expressed or implied, including the implied warranties of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. You should have received a copy of the + GNU General Public License along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. Any Red Hat trademarks that are incorporated in the + source code or documentation are not subject to the GNU General Public + License and may only be used or replicated with the express permission of + Red Hat, Inc. + +************************ + python-hawkey Tutorial +************************ + +.. contents:: + +.. IMPORTANT:: + + Please consult every usage of the library with :doc:`reference-py` to be sure + what are you doing. The examples mentioned here are supposed to be as simple + as possible and may ignore some minor corner cases. + +Setup +===== + +First of, make sure hawkey is installed on your system, this should work from your terminal:: + + >>> import hawkey + +The Sack Object +=============== + +*Sack* is an abstraction for a collection of packages. Sacks in hawkey are +toplevel objects carrying much of hawkey's of functionality. You'll want to +create one:: + + >>> sack = hawkey.Sack() + >>> len(sack) + 0 + +Initially, the sack contains no packages. + +Loading RPMDB +============= + +hawkey is a lib for listing, querying and resolving dependencies of *packages* +from *repositories*. On most linux distributions you always have at least *the +system repo* (in Fedora it is the RPM database). To load it:: + + >>> sack.load_system_repo() + >>> len(sack) + 1683 + +Hawkey always knows the name of every repository. The system repository is always +set to :const:`hawkey.SYSTEM_REPO_NAME`. and the client is responsible for naming +the available repository metadata. + +Loading Repositories +==================== + +Let's be honest here: all the fun in packaging comes from packages you haven't +installed yet. Information about them, their *metadata*, can be obtained from +different sources and typically they are downloaded from an HTTP mirror (another +possibilities are FTP server, NFS mount, DVD distribution media, etc.). Hawkey +does not provide any means to discover and obtain the metadata locally: it is up +to the client to provide valid readable paths to the repository metadata XML +files. Structures used for passing the information to hawkey are the hawkey +:class:`Repos `. Suppose we somehow obtained the metadata and placed it in +``/home/akozumpl/tmp/repodata``. We can then load the metadata into hawkey:: + + >>> path = "/home/akozumpl/tmp/repodata/%s" + >>> repo = hawkey.Repo("experimental") + >>> repo.repomd_fn = path % "repomd.xml" + >>> repo.primary_fn = path % "f7753a2636cc89d70e8aaa1f3c08413ab78462ca9f48fd55daf6dedf9ab0d5db-primary.xml.gz" + >>> repo.filelists_fn = path % "0261e25e8411f4f5e930a70fa249b8afd5e86bb9087d7739b55be64b76d8a7f6-filelists.xml.gz" + >>> sack.load_repo(repo, load_filelists=True) + >>> len(sack) + 1685 + +The number of packages in the Sack will increase by the number of packages found +in the repository (two in this case, it is an experimental repo after all). + +.. _case_for_loading_the_filelists-label: + +Case for Loading the Filelists +============================== + +What the ``load_filelists=True`` argument to :meth:`~hawkey.Sack.load_repo` above does is +instruct hawkey to process the ``filelists.xml.gz`` file we passed in and +which contains structured list of absolute paths to all files of all packages +within the repo. This information can be used for two purposes: + +* Finding a package providing given file. For instance, you need the file + ``/usr/share/man/man3/fprintf.3.gz`` which is not installed. Consulting + filelists (directly or through hawkey) can reveal the file is in the + ``man-pages`` package. + +* Depsolving. Some packages require concrete files as their dependencies. To + know if these are resolvable and how, the solver needs to know what package + provides what files. + +Some files provided by a package (e.g those in ``/usr/bin``) are always visible +even without loading the filelists. Well-behaved packages requiring only those +can be thus resolved directly. Unortunately, there are packages that don't +behave and it is hard to tell in advance when you'll deal with one. + +The strategy for using ``load_filelists=True`` is thus: + +* Use it if you know you'll do resolving (i.e. you'll use :class:`Goal`). + +* Use it if you know you'll be trying to match files to their packages. + +* Use it if you are not sure. + +.. _building_and_reusing_the_repo_cache-label: + +Building and Reusing the Repo Cache +=================================== + +Internally to hold the package information and perform canonical resolving +hawkey uses `Libsolv`_. One great benefit this library offers is providing +writing and reading of metadata cache files in libsolv's own binary format +(files with ``.solv`` extension, typically). At a cost of few hundreds of +milliseconds, using the solv files reduces repo load times from seconds to tens +of milliseconds. It is thus a good idea to write and use the solv files every +time you plan to use the same repo for more than one Sack (which is at least +every time your hawkey program is run). To do that use ``build_cache=True`` with +:meth:`~.Sack.load_repo` and :meth:`~.Sack.load_system_repo`:: + + >>> sack = hawkey.Sack(make_cache_dir=True) + >>> sack.load_system_repo(build_cache=True) + +By default, Hawkey creates ``@System.cache`` under the +``/var/tmp/hawkey--`` directory. This is the hawkey +cache directory, which you can always delete later (deleting the cache files in +the process). The ``.solv`` files are picked up automatically the next time you +try to create a hawkey sack. Except for a much higher speed of the operation +this will be completely transparent to you: + + >>> s2 = hawkey.Sack() + >>> s2.load_system_repo() + +By the way, the cache directory (if not set otherwise) also contains a logfile +with some boring debugging information. + +Queries +======= + +Query is the means in hawkey of finding a package based on one or more criteria +(name, version, repository of origin). Its interface is loosely based on +`Django's QuerySets +`_, the main concepts being: + +* a fresh Query object matches all packages in the Sack and the selection is + gradually narrowed down by calls to :meth:`Query.filter` + +* applying a :meth:`Query.filter` does not start to evaluate the Query, i.e. the + Query is lazy. Query is only evaluated when we explicitly tell it to or when + we start to iterate it. + +* use Python keyword arguments to :meth:`Query.filter` to specify the filtering + criteria. + +For instance, let's say I want to find all installed packages which name ends +with ``gtk``:: + + >>> q = hawkey.Query(sack).filter(reponame=hawkey.SYSTEM_REPO_NAME, name__glob='*gtk') + >>> for pkg in q: + ... print str(pkg) + ... + NetworkManager-gtk-1:0.9.4.0-9.git20120521.fc17.x86_64 + authconfig-gtk-6.2.1-1.fc17.x86_64 + clutter-gtk-1.2.0-1.fc17.x86_64 + libchamplain-gtk-0.12.2-1.fc17.x86_64 + libreport-gtk-2.0.10-3.fc17.x86_64 + pinentry-gtk-0.8.1-6.fc17.x86_64 + python-slip-gtk-0.2.20-2.fc17.noarch + transmission-gtk-2.50-2.fc17.x86_64 + usermode-gtk-1.109-1.fc17.x86_64 + webkitgtk-1.8.1-2.fc17.x86_64 + xdg-user-dirs-gtk-0.9-1.fc17.x86_64 + +Or I want to find the latest version of all ``python`` packages the Sack knows of:: + + >>> q.clear() + >>> q = q.filter(name='python', latest_per_arch=True) + >>> for pkg in q: + ... print str(pkg) + ... + python-2.7.3-6.fc17.x86_64 + +You can also test a :class:`Query` for its truth value. It will be true whenever +the query matched at least one package:: + + >>> q = hawkey.Query(sack).filter(file='/boot/vmlinuz-3.3.4-5.fc17.x86_64') + >>> if q: + ... print 'match' + ... + match + >>> q = hawkey.Query(sack).filter(file='/booty/vmlinuz-3.3.4-5.fc17.x86_64') + >>> if q: + ... print 'match' + ... + >>> if not q: + ... print 'no match' + ... + no match + +.. NOTE:: + + If the Query hasn't been evaluated already then it is evaluated whenever it's + length is taken (either via ``len(q)`` or ``q.count()``), when it is tested for + truth and when it is explicitly evaluated with ``q.run()``. + +Resolving things with Goals +=========================== + +Many :class:`~.Sack` sessions culminate in a bout of dependency resolving, that +is answering a question along the lines of "I have a package X in a repository +here, what other packages do I need to install/update to have X installed and +all its dependencies recursively satisfied?" Suppose we want to install `the RTS +game Spring `_. First let's locate the latest version of +the package in repositories:: + + >>> q = hawkey.Query(sack).filter(name='spring', latest_per_arch=True) + >>> pkg = hawkey.Query(sack).filter(name='spring', latest_per_arch=True)[0] + >>> str(pkg) + 'spring-88.0-2.fc17.x86_64' + >>> pkg.reponame + 'fedora' + +Then build the :class:`Goal` object and tell it our goal is installing the +``pkg``. Then we fire off the libsolv's dependency resolver by running the +goal:: + + >>> g = hawkey.Goal(sack) + >>> g.install(pkg) + >>> g.run() + True + +``True`` as a return value here indicates that libsolv could find a solution to +our goal. This is not always the case, there are plenty of situations when there +is no solution, the most common one being a package should be installed but one +of its dependencies is missing from the sack. + +The three methods :meth:`Goal.list_installs`, :meth:`Goal.list_upgrades` and +:meth:`Goal.list_erasures` can show which packages should be +installed/upgraded/erased to satisfy the packaging goal we set out to achieve +(the mapping of :func:`str` over the results below ensures human readable +package names instead of numbers are presented):: + + >>> map(str, g.list_installs()) + ['spring-88.0-2.fc17.x86_64', 'spring-installer-20090316-10.fc17.x86_64', 'springlobby-0.139-3.fc17.x86_64', 'spring-maps-default-0.1-8.fc17.noarch', 'wxBase-2.8.12-4.fc17.x86_64', 'wxGTK-2.8.12-4.fc17.x86_64', 'rb_libtorrent-0.15.9-1.fc17.x86_64', 'GeoIP-1.4.8-2.1.fc17.x86_64'] + >>> map(str, g.list_upgrades()) + [] + >>> map(str, g.list_erasures()) + [] + +So what does it tell us? That given the state of the given system and the given +repository we used, 8 packages need to be installed, +``spring-88.0-2.fc17.x86_64`` itself included. No packages need to be upgraded +or erased. + +Selector Installs +----------------- + +For certain simple and commonly used queries we can do installs +directly. Instead of executing a query however we instantiate and pass the +:meth:`Goal.install` method a :class:`Selector`: + + >>> g = hawkey.Goal(sack) + >>> sltr = hawkey.Selector(sack).set(name='emacs-nox') + >>> g.install(select=sltr) + >>> g.run() + True + >>> map(str, g.list_installs()) + ['spring-88.0-2.fc17.x86_64', 'spring-installer-20090316-10.fc17.x86_64', 'springlobby-0.139-3.fc17.x86_64', 'spring-maps-default-0.1-8.fc17.noarch', 'wxBase-2.8.12-4.fc17.x86_64', 'wxGTK-2.8.12-4.fc17.x86_64', 'rb_libtorrent-0.15.9-1.fc17.x86_64', 'GeoIP-1.4.8-2.1.fc17.x86_64'] + >>> len(g.list_upgrades()) + 0 + >>> len(g.list_erasures()) + 0 + +Notice we arrived at the same result as before, when a query was constructed and +iterated first. What :class:`Selector` does when passed to :meth:`Goal.install` +is tell hawkey to examine its settings and without evaluating it as a +:class:`Query` it instructs libsolv to find *the best matching package* for it +and add that for installation. It saves user some decisions like which version +should be installed or what architecture (this gets very relevant with multiarch +libraries). + +So Selectors usually only install a single package. If you mean to install *all +packages* matching an arbitrarily complex query, just use the method describe +above:: + + >>> map(goal.install, q) diff --git a/docs/history/history.uxf b/docs/history/history.uxf new file mode 100644 index 0000000..a5682fb --- /dev/null +++ b/docs/history/history.uxf @@ -0,0 +1,691 @@ + + + 8 + + UMLClass + + 904 + 480 + 144 + 144 + + <TRANS_ITEM> +-- +id +trans_id +item_id +repo_id +action +reason +state + +bg=yellow +halign=center + + + + + UMLClass + + 808 + 344 + 144 + 56 + + REPO +-- +id +repoid + +bg=yellow +halign=center + + + + + UMLClass + + 1120 + 480 + 144 + 144 + + TRANS +-- +id +dt_begin +dt_end +rpmdb_version_begin +rpmdb_version_end +releasever +user_id +cmdline +state + +bg=yellow +halign=center + + + + + Relation + + 1040 + 512 + 96 + 40 + + m1=0..n +m2=1 + + + 10.0;20.0;100.0;20.0 + + + UMLClass + + 696 + 480 + 144 + 80 + + ITEM +-- +id +item_type + +bg=yellow +halign=center + + + + + Relation + + 832 + 520 + 88 + 32 + + m1=1 +m2=0..n + 10.0;10.0;90.0;10.0 + + + UMLClass + + 1120 + 688 + 144 + 80 + + CONSOLE_OUTPUT +-- +id +trans_id +file_descriptor +line + +bg=yellow +halign=center + + + + + Relation + + 1184 + 616 + 24 + 88 + + m1=* + + + 10.0;90.0;10.0;10.0 + + + UMLClass + + 984 + 344 + 144 + 56 + + ITEM_STATE +-- +id +name + +bg=yellow +halign=center + + + + + Relation + + 1008 + 392 + 40 + 104 + + m1=0..n +m2=1 + 10.0;110.0;10.0;10.0 + + + UMLClass + + 1120 + 248 + 144 + 72 + + TRANS_WITH +-- +id +trans_id +item_id + +bg=yellow +halign=center + + + + + Relation + + 1192 + 312 + 40 + 184 + + m1=0..n +m2=1 + 10.0;10.0;10.0;210.0 + + + Relation + + 760 + 280 + 376 + 216 + + m1=0..n +m2=1 + 450.0;10.0;10.0;10.0;10.0;250.0 + + + UMLClass + + 688 + 128 + 144 + 48 + + config +-- +key +value + + +bg=white +halign=center + + + + + UMLClass + + 416 + 464 + 144 + 112 + + RPM +-- +item_id +name +epoch +version +release +arch + +bg=yellow +halign=center + + + + + Relation + + 552 + 512 + 88 + 32 + + m1=0..1 + 10.0;10.0;90.0;10.0 + + + UMLClass + + 168 + 656 + 144 + 96 + + MODULEMD +- +id +modulemd_stream_id +version +context +arch + + +halign=center +lt=. + + + + + Relation + + 928 + 392 + 40 + 104 + + m1=0..n +m2=1 + 10.0;110.0;10.0;10.0 + + + UMLClass + + 392 + 800 + 216 + 88 + + <MODULEMD_TRANSACTION_ITEM> +- +id +modulemd_stream_id +modulemd_profile_id (NULL) +transaction_item_id + + +halign=center +lt=. + + + + Relation + + 496 + 720 + 40 + 96 + + m1=0..1 +m2=0..n +lt=. + 10.0;10.0;10.0;100.0 + + + Relation + + 600 + 592 + 320 + 272 + + m1=1 +m2=0..n +lt=. + + 380.0;10.0;140.0;10.0;140.0;310.0;10.0;310.0 + + + UMLClass + + 432 + 304 + 144 + 96 + + COMPS_GROUP +-- +item_id +groupid +name +translated_name +// pkg_types: mandatory, default, optional +pkg_types +// pkg_types -> rpm_types? + +bg=yellow +halign=center + + + + + UMLSpecialState + + 624 + 504 + 32 + 32 + + type=decision + + + + Relation + + 648 + 504 + 64 + 40 + + m1=1 + + 60.0;20.0;10.0;20.0 + + + Relation + + 568 + 344 + 88 + 176 + + m1=0..1 + 10.0;10.0;90.0;10.0;90.0;200.0 + + + Relation + + 544 + 528 + 112 + 184 + + m1=0..1 +lt=. + 10.0;200.0;120.0;200.0;120.0;10.0 + + + UMLClass + + 432 + 144 + 144 + 96 + + COMPS_ENVIRONMENT +-- +item_id +environmentid +name +translated_name +pkg_types + +bg=yellow +halign=center + + + + + UMLClass + + 392 + 656 + 160 + 72 + + MODULEMD_PROFILE +- +item_id +modulemd_id +name + + +halign=center +lt=. + + + + Relation + + 304 + 680 + 104 + 32 + + m1=1 +m2=0..n +lt=. + 10.0;10.0;110.0;10.0 + + + UMLClass + + 168 + 808 + 144 + 80 + + MODULEMD_STREAM +- +id +name +stream + + +halign=center +lt=. + + + + Relation + + 232 + 744 + 40 + 80 + + lt=. +m1=1 +m2=0..n + + 10.0;80.0;10.0;10.0 + + + Relation + + 304 + 832 + 104 + 32 + + lt=. +m1=0..n +m2=0..1 + 10.0;10.0;110.0;10.0 + + + UMLPackage + + 160 + 608 + 456 + 304 + + Modules +-- +bg=#FFFFFF +layer=-1 +lt=. + + + + + UMLPackage + + 160 + 120 + 456 + 288 + + Comps Groups +-- +bg=#d0d0d0 +layer=-1 + + + + + Relation + + 568 + 184 + 88 + 336 + + m1=0..1 + 10.0;10.0;90.0;10.0;90.0;400.0 + + + UMLClass + + 176 + 304 + 184 + 96 + + COMPS_GROUP_PACKAGE +-- +id +group_id +name +installed +pkg_type + +bg=yellow +halign=center + +layer=1 + + + + Relation + + 352 + 344 + 96 + 32 + + m1=1 +m2=0..n + 10.0;10.0;100.0;10.0 + + + UMLClass + + 176 + 144 + 184 + 96 + + COMPS_ENVIRONMENT_GROUP +-- +id +environment_id +groupid +installed +group_type + +bg=yellow +halign=center + +layer=1 + + + + Relation + + 352 + 184 + 96 + 32 + + m1=1 +m2=0..n + 10.0;10.0;100.0;10.0 + + + UMLPackage + + 160 + 432 + 456 + 160 + + RPMs +-- +bg=#d0d0d0 +layer=-1 + + + + + UMLPackage + + 688 + 216 + 584 + 560 + + Transaction +-- +bg=#d0d0d0 +layer=-1 + + + + + UMLClass + + 904 + 688 + 144 + 80 + + ITEM_REPLACED_BY +-- +trans_item_id +by_trans_item_id + +bg=yellow +halign=center + + + + + Relation + + 968 + 616 + 40 + 88 + + m1=0..n +m2=0..n + 10.0;90.0;10.0;10.0 + + diff --git a/docs/history/readme.md b/docs/history/readme.md new file mode 100644 index 0000000..b818048 --- /dev/null +++ b/docs/history/readme.md @@ -0,0 +1,3 @@ +# Unified DNF history database diagram +- use [Umletino](http://www.umlet.com/umletino/umletino.html) or [Umlet](http://www.umlet.com/) to view, edit or export +- in case of question please contact Eduard Čuba diff --git a/docs/libdnf/CMakeLists.txt b/docs/libdnf/CMakeLists.txt new file mode 100644 index 0000000..1a538b6 --- /dev/null +++ b/docs/libdnf/CMakeLists.txt @@ -0,0 +1,54 @@ +configure_file("version.xml.in" ${CMAKE_CURRENT_SOURCE_DIR}/version.xml) + +if(WITH_GTKDOC) + find_package(GtkDoc REQUIRED) + + if(GTKDOC_FOUND) + add_custom_command(OUTPUT doc-scan + COMMAND ${GTKDOC_SCAN_EXE} + --source-dir=${CMAKE_SOURCE_DIR}/libdnf + --module=libdnf + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + ) + + add_custom_command(OUTPUT doc-mkdb + COMMAND ${GTKDOC_MKDB_EXE} + --sgml-mode + --output-format=xml + --module=libdnf + --source-dir=${CMAKE_SOURCE_DIR}/libdnf + DEPENDS doc-scan + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + ) + + add_custom_command(OUTPUT doc-mkhtml + COMMAND ${GTKDOC_MKHTML_EXE} + libdnf + ${CMAKE_SOURCE_DIR}/docs/libdnf/libdnf-docs.sgml + DEPENDS doc-mkdb + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/html" + ) + add_custom_target(doc-gtk DEPENDS doc-scan doc-mkdb doc-mkhtml) + else() + message(FATAL_ERROR "gtk-doc not found") + endif() + + install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/html/ DESTINATION share/gtk-doc/html/libdnf) +endif() + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf.py.in ${CMAKE_CURRENT_BINARY_DIR}/conf.py) + +add_custom_target(doxygen + doxygen ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile + COMMENT "Building doxygen xml files" +) +add_custom_target(sphinx-html + sphinx-build -c ${CMAKE_CURRENT_BINARY_DIR} -b html + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR}/_build + COMMENT "Building html documentation" +) +add_custom_target(doc) +add_dependencies(sphinx-html doxygen) +add_dependencies(doc sphinx-html) diff --git a/docs/libdnf/Doxyfile.in b/docs/libdnf/Doxyfile.in new file mode 100644 index 0000000..61d1140 --- /dev/null +++ b/docs/libdnf/Doxyfile.in @@ -0,0 +1,2470 @@ +# Doxyfile 1.8.13 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a double hash (##) is considered a comment and is placed in +# front of the TAG it is preceding. +# +# All text after a single hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists, items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (\" \"). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all text +# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv +# built into libc) for the transcoding. See +# https://www.gnu.org/software/libiconv/ for the list of possible encodings. +# The default value is: UTF-8. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by +# double-quotes, unless you are using Doxywizard) that should identify the +# project for which the documentation is generated. This name is used in the +# title of most generated pages and in a few other places. +# The default value is: My Project. + +PROJECT_NAME = "My Project" + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. This +# could be handy for archiving the generated documentation or if some version +# control system is used. + +PROJECT_NUMBER = + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer a +# quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify a logo or an icon that is included +# in the documentation. The maximum height of the logo should not exceed 55 +# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy +# the logo to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path +# into which the generated documentation will be written. If a relative path is +# entered, it will be relative to the location where doxygen was started. If +# left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- +# directories (in 2 levels) under the output directory of each output format and +# will distribute the generated files over these directories. Enabling this +# option can be useful when feeding doxygen a huge amount of source files, where +# putting all generated files in the same directory would otherwise causes +# performance problems for the file system. +# The default value is: NO. + +CREATE_SUBDIRS = NO + +# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII +# characters to appear in the names of generated files. If set to NO, non-ASCII +# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode +# U+3044. +# The default value is: NO. + +ALLOW_UNICODE_NAMES = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, +# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), +# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, +# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), +# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, +# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, +# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, +# Ukrainian and Vietnamese. +# The default value is: English. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member +# descriptions after the members that are listed in the file and class +# documentation (similar to Javadoc). Set to NO to disable this. +# The default value is: YES. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief +# description of a member or function before the detailed description +# +# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. +# The default value is: YES. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator that is +# used to form the text in various listings. Each string in this list, if found +# as the leading text of the brief description, will be stripped from the text +# and the result, after processing the whole list, is used as the annotated +# text. Otherwise, the brief description is used as-is. If left blank, the +# following values are used ($name is automatically replaced with the name of +# the entity):The $name class, The $name widget, The $name file, is, provides, +# specifies, contains, represents, a, an and the. + +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# doxygen will generate a detailed section even if there is only a brief +# description. +# The default value is: NO. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. +# The default value is: NO. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path +# before files name in the file list and in the header files. If set to NO the +# shortest path that makes the file name unique will be used +# The default value is: YES. + +FULL_PATH_NAMES = NO + +# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. +# Stripping is only done if one of the specified strings matches the left-hand +# part of the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the path to +# strip. +# +# Note that you can specify absolute paths here, but also relative paths, which +# will be relative from the directory where doxygen is started. +# This tag requires that the tag FULL_PATH_NAMES is set to YES. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the +# path mentioned in the documentation of a class, which tells the reader which +# header file to include in order to use a class. If left blank only the name of +# the header file containing the class definition is used. Otherwise one should +# specify the list of include paths that are normally passed to the compiler +# using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but +# less readable) file names. This can be useful is your file systems doesn't +# support long names like on DOS, Mac, or CD-ROM. +# The default value is: NO. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the +# first line (until the first dot) of a Javadoc-style comment as the brief +# description. If set to NO, the Javadoc-style will behave just like regular Qt- +# style comments (thus requiring an explicit @brief command for a brief +# description.) +# The default value is: NO. + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first +# line (until the first dot) of a Qt-style comment as the brief description. If +# set to NO, the Qt-style will behave just like regular Qt-style comments (thus +# requiring an explicit \brief command for a brief description.) +# The default value is: NO. + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a +# multi-line C++ special comment block (i.e. a block of //! or /// comments) as +# a brief description. This used to be the default behavior. The new default is +# to treat a multi-line C++ comment block as a detailed description. Set this +# tag to YES if you prefer the old behavior instead. +# +# Note that setting this tag to YES also means that rational rose comments are +# not recognized any more. +# The default value is: NO. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the +# documentation from any documented member that it re-implements. +# The default value is: YES. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new +# page for each member. If set to NO, the documentation of a member will be part +# of the file/class/namespace that contains it. +# The default value is: NO. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen +# uses this value to replace tabs by spaces in code fragments. +# Minimum value: 1, maximum value: 16, default value: 4. + +TAB_SIZE = 4 + +# This tag can be used to specify a number of aliases that act as commands in +# the documentation. An alias has the form: +# name=value +# For example adding +# "sideeffect=@par Side Effects:\n" +# will allow you to put the command \sideeffect (or @sideeffect) in the +# documentation, which will result in a user-defined paragraph with heading +# "Side Effects:". You can put \n's in the value part of an alias to insert +# newlines. + +ALIASES = + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding "class=itcl::class" +# will allow you to use the command class in the itcl::class meaning. + +TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources +# only. Doxygen will then generate output that is more tailored for C. For +# instance, some of the names that are used will be different. The list of all +# members will be omitted, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or +# Python sources only. Doxygen will then generate output that is more tailored +# for that language. For instance, namespaces will be presented as packages, +# qualified scopes will look different, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources. Doxygen will then generate output that is tailored for Fortran. +# The default value is: NO. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for VHDL. +# The default value is: NO. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given +# extension. Doxygen has a built-in mapping, but you can override or extend it +# using this tag. The format is ext=language, where ext is a file extension, and +# language is one of the parsers supported by doxygen: IDL, Java, Javascript, +# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: +# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: +# Fortran. In the later case the parser tries to guess whether the code is fixed +# or free formatted code, this is the default for Fortran type files), VHDL. For +# instance to make doxygen treat .inc files as Fortran files (default is PHP), +# and .f files as C (default is Fortran), use: inc=Fortran f=C. +# +# Note: For files without extension you can use no_extension as a placeholder. +# +# Note that for custom extensions you also need to set FILE_PATTERNS otherwise +# the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments +# according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you can +# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in +# case of backward compatibilities issues. +# The default value is: YES. + +MARKDOWN_SUPPORT = YES + +# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up +# to that level are automatically included in the table of contents, even if +# they do not have an id attribute. +# Note: This feature currently applies only to Markdown headings. +# Minimum value: 0, maximum value: 99, default value: 0. +# This tag requires that the tag MARKDOWN_SUPPORT is set to YES. + +TOC_INCLUDE_HEADINGS = 0 + +# When enabled doxygen tries to link words that correspond to documented +# classes, or namespaces to their corresponding documentation. Such a link can +# be prevented in individual cases by putting a % sign in front of the word or +# globally by setting AUTOLINK_SUPPORT to NO. +# The default value is: YES. + +AUTOLINK_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should set this +# tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); +# versus func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. +# The default value is: NO. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. +# The default value is: NO. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: +# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen +# will parse them like normal C++ but will assume all classes use public instead +# of private inheritance when no explicit protection keyword is present. +# The default value is: NO. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate +# getter and setter methods for a property. Setting this option to YES will make +# doxygen to replace the get and set methods by a property in the documentation. +# This will only work if the methods are indeed getting or setting a simple +# type. If this is not the case, or you want to show the methods anyway, you +# should set this option to NO. +# The default value is: YES. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. +# The default value is: NO. + +DISTRIBUTE_GROUP_DOC = NO + +# If one adds a struct or class to a group and this option is enabled, then also +# any nested class or struct is added to the same group. By default this option +# is disabled and one has to add nested compounds explicitly via \ingroup. +# The default value is: NO. + +GROUP_NESTED_COMPOUNDS = NO + +# Set the SUBGROUPING tag to YES to allow class member groups of the same type +# (for instance a group of public functions) to be put as a subgroup of that +# type (e.g. under the Public Functions section). Set it to NO to prevent +# subgrouping. Alternatively, this can be done per class using the +# \nosubgrouping command. +# The default value is: YES. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions +# are shown inside the group in which they are included (e.g. using \ingroup) +# instead of on a separate page (for HTML and Man pages) or section (for LaTeX +# and RTF). +# +# Note that this feature does not work in combination with +# SEPARATE_MEMBER_PAGES. +# The default value is: NO. + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions +# with only public data fields or simple typedef fields will be shown inline in +# the documentation of the scope in which they are defined (i.e. file, +# namespace, or group documentation), provided this scope is documented. If set +# to NO, structs, classes, and unions are shown on a separate page (for HTML and +# Man pages) or section (for LaTeX and RTF). +# The default value is: NO. + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or +# enum is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically be +# useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. +# The default value is: NO. + +TYPEDEF_HIDES_STRUCT = NO + +# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This +# cache is used to resolve symbols given their name and scope. Since this can be +# an expensive process and often the same symbol appears multiple times in the +# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small +# doxygen will become slower. If the cache is too large, memory is wasted. The +# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range +# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 +# symbols. At the end of a run doxygen will report the cache usage and suggest +# the optimal cache size from a speed point of view. +# Minimum value: 0, maximum value: 9, default value: 0. + +LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in +# documentation are documented, even if no documentation was available. Private +# class members and static file members will be hidden unless the +# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. +# Note: This will also disable the warnings about undocumented members that are +# normally produced when WARNINGS is set to YES. +# The default value is: NO. + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will +# be included in the documentation. +# The default value is: NO. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal +# scope will be included in the documentation. +# The default value is: NO. + +EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be +# included in the documentation. +# The default value is: NO. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined +# locally in source files will be included in the documentation. If set to NO, +# only classes defined in header files are included. Does not have any effect +# for Java sources. +# The default value is: YES. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. If set to YES, local methods, +# which are defined in the implementation section but not in the interface are +# included in the documentation. If set to NO, only methods in the interface are +# included. +# The default value is: NO. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base name of +# the file that contains the anonymous namespace. By default anonymous namespace +# are hidden. +# The default value is: NO. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all +# undocumented members inside documented classes or files. If set to NO these +# members will be included in the various overviews, but no documentation +# section is generated. This option has no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. If set +# to NO, these classes will be included in the various overviews. This option +# has no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend +# (class|struct|union) declarations. If set to NO, these declarations will be +# included in the documentation. +# The default value is: NO. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any +# documentation blocks found inside the body of a function. If set to NO, these +# blocks will be appended to the function's detailed documentation block. +# The default value is: NO. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation that is typed after a +# \internal command is included. If the tag is set to NO then the documentation +# will be excluded. Set it to YES to include the internal documentation. +# The default value is: NO. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file +# names in lower-case letters. If set to YES, upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. +# The default value is: system dependent. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with +# their full class and namespace scopes in the documentation. If set to YES, the +# scope will be hidden. +# The default value is: NO. + +HIDE_SCOPE_NAMES = NO + +# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will +# append additional text to a page's title, such as Class Reference. If set to +# YES the compound reference will be hidden. +# The default value is: NO. + +HIDE_COMPOUND_REFERENCE= NO + +# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of +# the files that are included by a file in the documentation of that file. +# The default value is: YES. + +SHOW_INCLUDE_FILES = YES + +# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each +# grouped member an include statement to the documentation, telling the reader +# which file to include in order to use the member. +# The default value is: NO. + +SHOW_GROUPED_MEMB_INC = NO + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include +# files with double quotes in the documentation rather than with sharp brackets. +# The default value is: NO. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the +# documentation for inline members. +# The default value is: YES. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the +# (detailed) documentation of file and class members alphabetically by member +# name. If set to NO, the members will appear in declaration order. +# The default value is: YES. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief +# descriptions of file, namespace and class members alphabetically by member +# name. If set to NO, the members will appear in declaration order. Note that +# this will also influence the order of the classes in the class list. +# The default value is: NO. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the +# (brief and detailed) documentation of class members so that constructors and +# destructors are listed first. If set to NO the constructors will appear in the +# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. +# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief +# member documentation. +# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting +# detailed member documentation. +# The default value is: NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy +# of group names into alphabetical order. If set to NO the group names will +# appear in their defined order. +# The default value is: NO. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by +# fully-qualified names, including namespaces. If set to NO, the class list will +# be sorted only by class name, not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the alphabetical +# list. +# The default value is: NO. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper +# type resolution of all parameters of a function it will reject a match between +# the prototype and the implementation of a member function even if there is +# only one candidate or it is obvious which candidate to choose by doing a +# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still +# accept a match between prototype and implementation in such cases. +# The default value is: NO. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo +# list. This list is created by putting \todo commands in the documentation. +# The default value is: YES. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test +# list. This list is created by putting \test commands in the documentation. +# The default value is: YES. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug +# list. This list is created by putting \bug commands in the documentation. +# The default value is: YES. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO) +# the deprecated list. This list is created by putting \deprecated commands in +# the documentation. +# The default value is: YES. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional documentation +# sections, marked by \if ... \endif and \cond +# ... \endcond blocks. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the +# initial value of a variable or macro / define can have for it to appear in the +# documentation. If the initializer consists of more lines than specified here +# it will be hidden. Use a value of 0 to hide initializers completely. The +# appearance of the value of individual variables and macros / defines can be +# controlled using \showinitializer or \hideinitializer command in the +# documentation regardless of this setting. +# Minimum value: 0, maximum value: 10000, default value: 30. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at +# the bottom of the documentation of classes and structs. If set to YES, the +# list will mention the files that were used to generate the documentation. +# The default value is: YES. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This +# will remove the Files entry from the Quick Index and from the Folder Tree View +# (if specified). +# The default value is: YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces +# page. This will remove the Namespaces entry from the Quick Index and from the +# Folder Tree View (if specified). +# The default value is: YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command command input-file, where command is the value of the +# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided +# by doxygen. Whatever the program writes to standard output is used as the file +# version. For an example see the documentation. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. To create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. You can +# optionally specify a file name after the option, if omitted DoxygenLayout.xml +# will be used as the name of the layout file. +# +# Note that if you run doxygen from a directory containing a file called +# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE +# tag is left empty. + +LAYOUT_FILE = + +# The CITE_BIB_FILES tag can be used to specify one or more bib files containing +# the reference definitions. This must be a list of .bib files. The .bib +# extension is automatically appended if omitted. This requires the bibtex tool +# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info. +# For LaTeX the style of the bibliography can be controlled using +# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the +# search path. See also \cite for info how to create references. + +CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# Configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated to +# standard output by doxygen. If QUIET is set to YES this implies that the +# messages are off. +# The default value is: NO. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES +# this implies that the warnings are on. +# +# Tip: Turn warnings on while writing the documentation. +# The default value is: YES. + +WARNINGS = YES + +# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate +# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag +# will automatically be disabled. +# The default value is: YES. + +WARN_IF_UNDOCUMENTED = YES + +# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some parameters +# in a documented function, or documenting parameters that don't exist or using +# markup commands wrongly. +# The default value is: YES. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that +# are documented, but have no documentation for their parameters or return +# value. If set to NO, doxygen will only warn about wrong or incomplete +# parameter documentation, but not about the absence of documentation. +# The default value is: NO. + +WARN_NO_PARAMDOC = NO + +# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when +# a warning is encountered. +# The default value is: NO. + +WARN_AS_ERROR = NO + +# The WARN_FORMAT tag determines the format of the warning messages that doxygen +# can produce. The string should contain the $file, $line, and $text tags, which +# will be replaced by the file and line number from which the warning originated +# and the warning text. Optionally the format may contain $version, which will +# be replaced by the version of the file (if it could be obtained via +# FILE_VERSION_FILTER) +# The default value is: $file:$line: $text. + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning and error +# messages should be written. If left blank the output is written to standard +# error (stderr). + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# Configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag is used to specify the files and/or directories that contain +# documented source files. You may enter file names like myfile.cpp or +# directories like /usr/src/myproject. Separate the files or directories with +# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING +# Note: If this tag is empty the current directory is searched. + +INPUT = @CMAKE_SOURCE_DIR@/libdnf/ + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses +# libiconv (or the iconv built into libc) for the transcoding. See the libiconv +# documentation (see: https://www.gnu.org/software/libiconv/) for the list of +# possible encodings. +# The default value is: UTF-8. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and +# *.h) to filter out the source-files in the directories. +# +# Note that for custom extensions or not directly supported extensions you also +# need to set EXTENSION_MAPPING for the extension otherwise the files are not +# read by doxygen. +# +# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp, +# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, +# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, +# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, +# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf and *.qsf. + +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.idl \ + *.ddl \ + *.odl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.cs \ + *.d \ + *.php \ + *.php4 \ + *.php5 \ + *.phtml \ + *.inc \ + *.m \ + *.markdown \ + *.md \ + *.mm \ + *.dox \ + *.py \ + *.pyw \ + *.f90 \ + *.f95 \ + *.f03 \ + *.f08 \ + *.f \ + *.for \ + *.tcl \ + *.vhd \ + *.vhdl \ + *.ucf \ + *.qsf + +# The RECURSIVE tag can be used to specify whether or not subdirectories should +# be searched for input files as well. +# The default value is: NO. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. +# The default value is: NO. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories use the pattern */test/* + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or directories +# that contain example code fragments that are included (see the \include +# command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank all +# files are included. + +EXAMPLE_PATTERNS = * + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude commands +# irrespective of the value of the RECURSIVE tag. +# The default value is: NO. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or directories +# that contain images that are to be included in the documentation (see the +# \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command: +# +# +# +# where is the value of the INPUT_FILTER tag, and is the +# name of an input file. Doxygen will then use the output that the filter +# program writes to standard output. If FILTER_PATTERNS is specified, this tag +# will be ignored. +# +# Note that the filter must not add or remove lines; it is applied before the +# code is scanned, but not when the output code is generated. If lines are added +# or removed, the anchors will not be placed correctly. +# +# Note that for custom extensions or not directly supported extensions you also +# need to set EXTENSION_MAPPING for the extension otherwise the files are not +# properly processed by doxygen. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: pattern=filter +# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how +# filters are used. If the FILTER_PATTERNS tag is empty or if none of the +# patterns match the file name, INPUT_FILTER is applied. +# +# Note that for custom extensions or not directly supported extensions you also +# need to set EXTENSION_MAPPING for the extension otherwise the files are not +# properly processed by doxygen. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will also be used to filter the input files that are used for +# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). +# The default value is: NO. + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and +# it is also possible to disable source filtering for a specific pattern using +# *.ext= (so without naming a filter). +# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. + +FILTER_SOURCE_PATTERNS = + +# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that +# is part of the input, its contents will be placed on the main page +# (index.html). This can be useful if you have a project on for instance GitHub +# and want to reuse the introduction page also for the doxygen output. + +USE_MDFILE_AS_MAINPAGE = + +#--------------------------------------------------------------------------- +# Configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will be +# generated. Documented entities will be cross-referenced with these sources. +# +# Note: To get rid of all source code in the generated output, make sure that +# also VERBATIM_HEADERS is set to NO. +# The default value is: NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body of functions, +# classes and enums directly into the documentation. +# The default value is: NO. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any +# special comment blocks from generated source code fragments. Normal C, C++ and +# Fortran comments will always remain visible. +# The default value is: YES. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES then for each documented +# function all documented functions referencing it will be listed. +# The default value is: NO. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES then for each documented function +# all documented entities called/used by that function will be listed. +# The default value is: NO. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set +# to YES then the hyperlinks from functions in REFERENCES_RELATION and +# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will +# link to the documentation. +# The default value is: YES. + +REFERENCES_LINK_SOURCE = YES + +# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the +# source code will show a tooltip with additional information such as prototype, +# brief description and links to the definition and documentation. Since this +# will make the HTML file larger and loading of large files a bit slower, you +# can opt to disable this feature. +# The default value is: YES. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +SOURCE_TOOLTIPS = YES + +# If the USE_HTAGS tag is set to YES then the references to source code will +# point to the HTML generated by the htags(1) tool instead of doxygen built-in +# source browser. The htags tool is part of GNU's global source tagging system +# (see https://www.gnu.org/software/global/global.html). You will need version +# 4.8.6 or higher. +# +# To use it do the following: +# - Install the latest version of global +# - Enable SOURCE_BROWSER and USE_HTAGS in the config file +# - Make sure the INPUT points to the root of the source tree +# - Run doxygen as normal +# +# Doxygen will invoke htags (and that will in turn invoke gtags), so these +# tools must be available from the command line (i.e. in the search path). +# +# The result: instead of the source browser generated by doxygen, the links to +# source code will now point to the output of htags. +# The default value is: NO. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a +# verbatim copy of the header file for each class for which an include is +# specified. Set to NO to disable this. +# See also: Section \class. +# The default value is: YES. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# Configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all +# compounds will be generated. Enable this if the project contains a lot of +# classes, structs, unions or interfaces. +# The default value is: YES. + +ALPHABETICAL_INDEX = YES + +# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in +# which the alphabetical index list will be split. +# Minimum value: 1, maximum value: 20, default value: 5. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all classes will +# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag +# can be used to specify a prefix (or a list of prefixes) that should be ignored +# while generating the index headers. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output +# The default value is: YES. + +GENERATE_HTML = NO + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each +# generated HTML page (for example: .htm, .php, .asp). +# The default value is: .html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a user-defined HTML header file for +# each generated HTML page. If the tag is left blank doxygen will generate a +# standard header. +# +# To get valid HTML the header file that includes any scripts and style sheets +# that doxygen needs, which is dependent on the configuration options used (e.g. +# the setting GENERATE_TREEVIEW). It is highly recommended to start with a +# default header using +# doxygen -w html new_header.html new_footer.html new_stylesheet.css +# YourConfigFile +# and then modify the file new_header.html. See also section "Doxygen usage" +# for information on how to generate the default header that doxygen normally +# uses. +# Note: The header is subject to change so you typically have to regenerate the +# default header when upgrading to a newer version of doxygen. For a description +# of the possible markers and block names see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each +# generated HTML page. If the tag is left blank doxygen will generate a standard +# footer. See HTML_HEADER for more information on how to generate a default +# footer and what special commands can be used inside the footer. See also +# section "Doxygen usage" for information on how to generate the default footer +# that doxygen normally uses. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style +# sheet that is used by each HTML page. It can be used to fine-tune the look of +# the HTML output. If left blank doxygen will generate a default style sheet. +# See also section "Doxygen usage" for information on how to generate the style +# sheet that doxygen normally uses. +# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as +# it is more robust and this tag (HTML_STYLESHEET) will in the future become +# obsolete. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_STYLESHEET = + +# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined +# cascading style sheets that are included after the standard style sheets +# created by doxygen. Using this option one can overrule certain style aspects. +# This is preferred over using HTML_STYLESHEET since it does not replace the +# standard style sheet and is therefore more robust against future updates. +# Doxygen will copy the style sheet files to the output directory. +# Note: The order of the extra style sheet files is of importance (e.g. the last +# style sheet in the list overrules the setting of the previous ones in the +# list). For an example see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that the +# files will be copied as-is; there are no commands or markers available. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen +# will adjust the colors in the style sheet and background images according to +# this color. Hue is specified as an angle on a colorwheel, see +# https://en.wikipedia.org/wiki/Hue for more information. For instance the value +# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 +# purple, and 360 is red again. +# Minimum value: 0, maximum value: 359, default value: 220. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors +# in the HTML output. For a value of 0 the output will use grayscales only. A +# value of 255 will produce the most vivid colors. +# Minimum value: 0, maximum value: 255, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the +# luminance component of the colors in the HTML output. Values below 100 +# gradually make the output lighter, whereas values above 100 make the output +# darker. The value divided by 100 is the actual gamma applied, so 80 represents +# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not +# change the gamma. +# Minimum value: 40, maximum value: 240, default value: 80. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting this +# to YES can help to show when doxygen was last run and thus if the +# documentation is up to date. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_TIMESTAMP = NO + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_DYNAMIC_SECTIONS = NO + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries +# shown in the various tree structured indices initially; the user can expand +# and collapse entries dynamically later on. Doxygen will expand the tree to +# such a level that at most the specified number of entries are visible (unless +# a fully collapsed tree already exceeds this amount). So setting the number of +# entries 1 will produce a full collapsed tree by default. 0 is a special value +# representing an infinite number of entries and will result in a full expanded +# tree by default. +# Minimum value: 0, maximum value: 9999, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files will be +# generated that can be used as input for Apple's Xcode 3 integrated development +# environment (see: https://developer.apple.com/tools/xcode/), introduced with +# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a +# Makefile in the HTML output directory. Running make will produce the docset in +# that directory and running make install will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at +# startup. See https://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_DOCSET = NO + +# This tag determines the name of the docset feed. A documentation feed provides +# an umbrella under which multiple documentation sets from a single provider +# (such as a company or product suite) can be grouped. +# The default value is: Doxygen generated docs. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# This tag specifies a string that should uniquely identify the documentation +# set bundle. This should be a reverse domain-name style string, e.g. +# com.mycompany.MyDocSet. Doxygen will append .docset to the name. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. +# The default value is: org.doxygen.Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. +# The default value is: Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three +# additional HTML index files: index.hhp, index.hhc, and index.hhk. The +# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop +# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on +# Windows. +# +# The HTML Help Workshop contains a compiler that can convert all HTML output +# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML +# files are now used as the Windows 98 help format, and will replace the old +# Windows help format (.hlp) on all Windows platforms in the future. Compressed +# HTML files also contain an index, a table of contents, and you can search for +# words in the documentation. The HTML workshop also contains a viewer for +# compressed HTML files. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_HTMLHELP = NO + +# The CHM_FILE tag can be used to specify the file name of the resulting .chm +# file. You can add a path in front of the file if the result should not be +# written to the html output directory. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_FILE = + +# The HHC_LOCATION tag can be used to specify the location (absolute path +# including file name) of the HTML help compiler (hhc.exe). If non-empty, +# doxygen will try to run the HTML help compiler on the generated index.hhp. +# The file has to be specified with full path. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +HHC_LOCATION = + +# The GENERATE_CHI flag controls if a separate .chi index file is generated +# (YES) or that it should be included in the main .chm file (NO). +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +GENERATE_CHI = NO + +# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) +# and project file content. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_INDEX_ENCODING = + +# The BINARY_TOC flag controls whether a binary table of contents is generated +# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it +# enables the Previous and Next buttons. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members to +# the table of contents of the HTML help documentation and to the tree view. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that +# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help +# (.qch) of the generated HTML documentation. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify +# the file name of the resulting .qch file. The path specified is relative to +# the HTML output folder. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help +# Project output. For more information please see Qt Help Project / Namespace +# (see: http://doc.qt.io/qt-4.8/qthelpproject.html#namespace). +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt +# Help Project output. For more information please see Qt Help Project / Virtual +# Folders (see: http://doc.qt.io/qt-4.8/qthelpproject.html#virtual-folders). +# The default value is: doc. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_VIRTUAL_FOLDER = doc + +# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom +# filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://doc.qt.io/qt-4.8/qthelpproject.html#custom-filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://doc.qt.io/qt-4.8/qthelpproject.html#custom-filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's filter section matches. Qt Help Project / Filter Attributes (see: +# http://doc.qt.io/qt-4.8/qthelpproject.html#filter-attributes). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_SECT_FILTER_ATTRS = + +# The QHG_LOCATION tag can be used to specify the location of Qt's +# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the +# generated .qhp file. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be +# generated, together with the HTML files, they form an Eclipse help plugin. To +# install this plugin and make it available under the help contents menu in +# Eclipse, the contents of the directory containing the HTML and XML files needs +# to be copied into the plugins directory of eclipse. The name of the directory +# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. +# After copying Eclipse needs to be restarted before the help appears. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the Eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have this +# name. Each documentation set should have its own identifier. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# If you want full control over the layout of the generated HTML pages it might +# be necessary to disable the index and replace it with your own. The +# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top +# of each HTML page. A value of NO enables the index and the value YES disables +# it. Since the tabs in the index contain the same information as the navigation +# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. If the tag +# value is set to YES, a side panel will be generated containing a tree-like +# index structure (just like the one that is generated for HTML Help). For this +# to work a browser that supports JavaScript, DHTML, CSS and frames is required +# (i.e. any modern browser). Windows users are probably better off using the +# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can +# further fine-tune the look of the index. As an example, the default style +# sheet generated by doxygen has an example that shows how to put an image at +# the root of the tree instead of the PROJECT_NAME. Since the tree basically has +# the same information as the tab index, you could consider setting +# DISABLE_INDEX to YES when enabling this option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_TREEVIEW = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that +# doxygen will group on one line in the generated HTML documentation. +# +# Note that a value of 0 will completely suppress the enum values from appearing +# in the overview section. +# Minimum value: 0, maximum value: 20, default value: 4. +# This tag requires that the tag GENERATE_HTML is set to YES. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used +# to set the initial width (in pixels) of the frame in which the tree is shown. +# Minimum value: 0, maximum value: 1500, default value: 250. +# This tag requires that the tag GENERATE_HTML is set to YES. + +TREEVIEW_WIDTH = 250 + +# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to +# external symbols imported via tag files in a separate window. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of LaTeX formulas included as images in +# the HTML documentation. When you change the font size after a successful +# doxygen run you need to manually remove any form_*.png images from the HTML +# output directory to force them to be regenerated. +# Minimum value: 8, maximum value: 50, default value: 10. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are not +# supported properly for IE 6.0, but are supported on all modern browsers. +# +# Note that when changing this option you need to delete any form_*.png files in +# the HTML output directory before the changes have effect. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see +# https://www.mathjax.org) which uses client side Javascript for the rendering +# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX +# installed or if you want to formulas look prettier in the HTML output. When +# enabled you may also need to install MathJax separately and configure the path +# to it using the MATHJAX_RELPATH option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +USE_MATHJAX = NO + +# When MathJax is enabled you can set the default output format to be used for +# the MathJax output. See the MathJax site (see: +# http://docs.mathjax.org/en/latest/output.html) for more details. +# Possible values are: HTML-CSS (which is slower, but has the best +# compatibility), NativeMML (i.e. MathML) and SVG. +# The default value is: HTML-CSS. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_FORMAT = HTML-CSS + +# When MathJax is enabled you need to specify the location relative to the HTML +# output directory using the MATHJAX_RELPATH option. The destination directory +# should contain the MathJax.js script. For instance, if the mathjax directory +# is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax +# Content Delivery Network so you can quickly see the result without installing +# MathJax. However, it is strongly recommended to install a local copy of +# MathJax from https://www.mathjax.org before deployment. +# The default value is: http://cdn.mathjax.org/mathjax/latest. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest + +# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax +# extension names that should be enabled during MathJax rendering. For example +# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_EXTENSIONS = + +# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces +# of code that will be used on startup of the MathJax code. See the MathJax site +# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an +# example see the documentation. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_CODEFILE = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box for +# the HTML output. The underlying search engine uses javascript and DHTML and +# should work on any modern browser. Note that when using HTML help +# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) +# there is already a search function so this one should typically be disabled. +# For large projects the javascript based search engine can be slow, then +# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to +# search using the keyboard; to jump to the search box use + S +# (what the is depends on the OS and browser, but it is typically +# , /