Hello community, here is the log from the commit of package microdnf for openSUSE:Factory checked in at 2020-12-02 13:57:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/microdnf (Old) and /work/SRC/openSUSE:Factory/.microdnf.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "microdnf" Wed Dec 2 13:57:19 2020 rev:2 rq:851724 version:3.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/microdnf/microdnf.changes 2020-01-19 20:58:36.604087204 +0100 +++ /work/SRC/openSUSE:Factory/.microdnf.new.5913/microdnf.changes 2020-12-02 13:57:24.017749225 +0100 @@ -1,0 +2,14 @@ +Sun Nov 29 23:25:59 UTC 2020 - Neal Gompa <[email protected]> + +- Update to 3.5.1 + + Add module enable and disable commands + + Add reports of module changes + + Add "module enable" command + + Add subcommands support + + Print info about obsoleted packages before transaction (rh#1855542) + + Relicense to GPLv2+ +- Backport fixes from upstream + + Patch: 0001-Add-support-for-setting-allow_vendor_change.patch + + Patch: 0001-Add-support-for-setting-a-platform-module-ID.patch + +------------------------------------------------------------------- Old: ---- microdnf-3.4.0.tar.gz New: ---- 0001-Add-support-for-setting-a-platform-module-ID.patch 0001-Add-support-for-setting-allow_vendor_change.patch microdnf-3.5.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ microdnf.spec ++++++ --- /var/tmp/diff_new_pack.7NmwE6/_old 2020-12-02 13:57:24.597749837 +0100 +++ /var/tmp/diff_new_pack.7NmwE6/_new 2020-12-02 13:57:24.597749837 +0100 @@ -15,17 +15,21 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%global libdnf_version 0.43.1 +%global libdnf_version 0.55.0 Name: microdnf -Version: 3.4.0 +Version: 3.5.1 Release: 0 Summary: Lightweight implementation of DNF in C Group: System/Packages -License: GPL-3.0-or-later +License: GPL-2.0-or-later URL: https://github.com/rpm-software-management/microdnf Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +# Backports from upstream +Patch0001: 0001-Add-support-for-setting-allow_vendor_change.patch +Patch0002: 0001-Add-support-for-setting-a-platform-module-ID.patch + BuildRequires: gcc BuildRequires: meson >= 0.36.0 BuildRequires: pkgconfig(glib-2.0) >= 2.44.0 ++++++ 0001-Add-support-for-setting-a-platform-module-ID.patch ++++++ From 5621aa58e4cf808e37e91f6a56dcb12c486a65d0 Mon Sep 17 00:00:00 2001 From: Neal Gompa <[email protected]> Date: Fri, 20 Nov 2020 06:01:16 -0500 Subject: [PATCH] Add support for setting a platform module ID Now that Micro DNF supports modularity, we need to be able to selectively override what it detects as the platform module when working with installroots that have modular content when they differ from the host. --- dnf/dnf-main.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dnf/dnf-main.c b/dnf/dnf-main.c index 8ccc7f3..fdc44ce 100644 --- a/dnf/dnf-main.c +++ b/dnf/dnf-main.c @@ -132,6 +132,20 @@ process_global_option (const gchar *option_name, } } } + else if (strcmp (setopt[0], "module_platform_id") == 0) + { + const char *module_platform_id = setopt[1]; + if (module_platform_id[0] != '\0') + { + dnf_context_set_platform_module (ctx, module_platform_id); + } + else + { + local_error = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, + "Empty value in: %s", value); + ret = FALSE; + } + } else if (strcmp (setopt[0], "cachedir") == 0) { cachedir_used = TRUE; @@ -227,7 +241,7 @@ static const GOptionEntry global_opts[] = { { "refresh", '\0', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &opt_refresh, "Set metadata as expired before running the command", NULL }, { "releasever", '\0', G_OPTION_FLAG_NONE, G_OPTION_ARG_CALLBACK, process_global_option, "Override the value of $releasever in config and repo files", "RELEASEVER" }, { "setopt", '\0', G_OPTION_FLAG_NONE, G_OPTION_ARG_CALLBACK, process_global_option, - "Override a configuration option (install_weak_deps=0/1, allow_vendor_change=0/1, cachedir=<path>, reposdir=<path1>,<path2>,..., tsflags=nodocs/test, varsdir=<path1>,<path2>,...)", "<option>=<value>" }, + "Override a configuration option (install_weak_deps=0/1, allow_vendor_change=0/1, module_platform_id=<name:stream>, cachedir=<path>, reposdir=<path1>,<path2>,..., tsflags=nodocs/test, varsdir=<path1>,<path2>,...)", "<option>=<value>" }, { NULL } }; -- 2.28.0 ++++++ 0001-Add-support-for-setting-allow_vendor_change.patch ++++++ From 7419ab465a04af525e39005e33ff869647c6bde2 Mon Sep 17 00:00:00 2001 From: Neal Gompa <[email protected]> Date: Mon, 16 Nov 2020 08:53:03 -0500 Subject: [PATCH] Add support for setting allow_vendor_change --- dnf/dnf-main.c | 22 +++++++++++++++++++++- 1 file changed, 22 insertions(+) diff --git a/dnf/dnf-main.c b/dnf/dnf-main.c index 94df08a..8ccc7f3 100644 --- a/dnf/dnf-main.c +++ b/dnf/dnf-main.c @@ -30,6 +30,7 @@ typedef enum { ARG_DEFAULT, ARG_FALSE, ARG_TRUE } BoolArgs; static BoolArgs opt_install_weak_deps = ARG_DEFAULT; +static BoolArgs opt_allow_vendor_change = ARG_DEFAULT; static gboolean opt_yes = TRUE; static gboolean opt_nodocs = FALSE; static gboolean opt_best = FALSE; @@ -165,6 +166,20 @@ process_global_option (const gchar *option_name, ret = FALSE; } } + else if (strcmp (setopt[0], "allow_vendor_change") == 0) + { + const char *setopt_val = setopt[1]; + if (setopt_val[0] == '1' && setopt_val[1] == '\0') + opt_allow_vendor_change = ARG_TRUE; + else if (setopt_val[0] == '0' && setopt_val[1] == '\0') + opt_allow_vendor_change = ARG_FALSE; + else + { + local_error = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, + "Invalid boolean value \"%s\" in: %s", setopt[1], value); + ret = FALSE; + } + } else if (strcmp (setopt[0], "reposdir") == 0) { reposdir_used = TRUE; @@ -212,7 +227,7 @@ static const GOptionEntry global_opts[] = { { "refresh", '\0', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &opt_refresh, "Set metadata as expired before running the command", NULL }, { "releasever", '\0', G_OPTION_FLAG_NONE, G_OPTION_ARG_CALLBACK, process_global_option, "Override the value of $releasever in config and repo files", "RELEASEVER" }, { "setopt", '\0', G_OPTION_FLAG_NONE, G_OPTION_ARG_CALLBACK, process_global_option, - "Override a configuration option (install_weak_deps=0/1, cachedir=<path>, reposdir=<path1>,<path2>,..., tsflags=nodocs/test, varsdir=<path1>,<path2>,...)", "<option>=<value>" }, + "Override a configuration option (install_weak_deps=0/1, allow_vendor_change=0/1, cachedir=<path>, reposdir=<path1>,<path2>,..., tsflags=nodocs/test, varsdir=<path1>,<path2>,...)", "<option>=<value>" }, { NULL } }; @@ -497,6 +512,11 @@ main (int argc, else if (opt_install_weak_deps == ARG_FALSE) dnf_context_set_install_weak_deps (FALSE); + if (opt_allow_vendor_change == ARG_TRUE) + dnf_context_set_allow_vendor_change (TRUE); + else if (opt_allow_vendor_change == ARG_FALSE) + dnf_context_set_allow_vendor_change (FALSE); + if (opt_best && opt_nobest) { error = g_error_new_literal(G_OPTION_ERROR, -- 2.28.0 ++++++ microdnf-3.4.0.tar.gz -> microdnf-3.5.1.tar.gz ++++++ ++++ 2229 lines of diff (skipped) _______________________________________________ openSUSE Commits mailing list -- [email protected] To unsubscribe, email [email protected] List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/[email protected]
