Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package microdnf for openSUSE:Factory checked in at 2021-02-17 18:09:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/microdnf (Old) and /work/SRC/openSUSE:Factory/.microdnf.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "microdnf" Wed Feb 17 18:09:47 2021 rev:5 rq:871460 version:3.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/microdnf/microdnf.changes 2021-02-07 15:18:07.445678112 +0100 +++ /work/SRC/openSUSE:Factory/.microdnf.new.28504/microdnf.changes 2021-02-17 18:09:51.629858162 +0100 @@ -1,0 +2,7 @@ +Fri Feb 12 14:38:21 UTC 2021 - Neal Gompa <[email protected]> + +- Update to 3.7.1 + + Bump minimum version of libdnf to 0.56.0 + + Fix download subcommand to build with glib2 2.44.0 + +------------------------------------------------------------------- Old: ---- microdnf-3.7.0.tar.gz New: ---- microdnf-3.7.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ microdnf.spec ++++++ --- /var/tmp/diff_new_pack.taL8Ka/_old 2021-02-17 18:09:52.433858820 +0100 +++ /var/tmp/diff_new_pack.taL8Ka/_new 2021-02-17 18:09:52.437858823 +0100 @@ -15,10 +15,10 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%global libdnf_version 0.55.2 +%global libdnf_version 0.56.0 Name: microdnf -Version: 3.7.0 +Version: 3.7.1 Release: 0 Summary: Lightweight implementation of DNF in C Group: System/Packages ++++++ microdnf-3.7.0.tar.gz -> microdnf-3.7.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/microdnf-3.7.0/CMakeLists.txt new/microdnf-3.7.1/CMakeLists.txt --- old/microdnf-3.7.0/CMakeLists.txt 2021-02-03 03:25:30.000000000 +0100 +++ new/microdnf-3.7.1/CMakeLists.txt 2021-02-12 00:45:26.000000000 +0100 @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 2.8.5) project (microdnf C) -set (PROJECT_VERSION 3.7.0) +set (PROJECT_VERSION 3.7.1) list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) @@ -18,7 +18,7 @@ pkg_check_modules (GLIB REQUIRED glib-2.0>=2.44.0) pkg_check_modules (GOBJECT REQUIRED gobject-2.0>=2.44.0) pkg_check_modules (PEAS REQUIRED libpeas-1.0>=1.20.0) -pkg_check_modules (LIBDNF REQUIRED libdnf>=0.55.2) +pkg_check_modules (LIBDNF REQUIRED libdnf>=0.56.0) pkg_check_modules (SCOLS REQUIRED smartcols) set (PKG_LIBDIR ${CMAKE_INSTALL_FULL_LIBDIR}/dnf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/microdnf-3.7.0/dnf/plugins/download/dnf-command-download.c new/microdnf-3.7.1/dnf/plugins/download/dnf-command-download.c --- old/microdnf-3.7.0/dnf/plugins/download/dnf-command-download.c 2021-02-03 03:25:30.000000000 +0100 +++ new/microdnf-3.7.1/dnf/plugins/download/dnf-command-download.c 2021-02-12 00:45:26.000000000 +0100 @@ -50,6 +50,21 @@ return buf_len >= val_len && memcmp (buf + buf_len - val_len, val, val_len) == 0; } +/* Implements the functionality of the "g_ptr_array_extend_and_steal" function. + * The function was added to glib in version 2.62. We don't want to require a newer glib. */ +static void +ptr_array_extend_and_steal (GPtrArray *array_to_extend, GPtrArray *array) +{ + guint origin_len = array_to_extend->len; + g_ptr_array_set_size (array_to_extend, origin_len + array->len); + for (guint i = 0; i < array->len; ++i) + { + g_ptr_array_index (array_to_extend, origin_len + i) = g_ptr_array_index (array, i); + } + array->len = 0; + g_ptr_array_unref (array); +} + static gboolean dnf_command_download_rewriterepotosrc (gchar * repo_buf) { if (str_ends_with (repo_buf, "-rpms")) @@ -354,8 +369,8 @@ hy_goal_install (goal, pkg); if (hy_goal_run_flags (goal, DNF_NONE) == 0) { - g_ptr_array_extend_and_steal (deps, hy_goal_list_installs (goal, NULL)); - g_ptr_array_extend_and_steal (deps, hy_goal_list_upgrades (goal, NULL)); + ptr_array_extend_and_steal (deps, hy_goal_list_installs (goal, NULL)); + ptr_array_extend_and_steal (deps, hy_goal_list_upgrades (goal, NULL)); } else { @@ -433,7 +448,7 @@ { return FALSE; } - g_ptr_array_extend_and_steal (pkgs, deps); + ptr_array_extend_and_steal (pkgs, deps); } if (!download_packages (repo_loader, pkgs, state, error)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/microdnf-3.7.0/meson.build new/microdnf-3.7.1/meson.build --- old/microdnf-3.7.0/meson.build 2021-02-03 03:25:30.000000000 +0100 +++ new/microdnf-3.7.1/meson.build 2021-02-12 00:45:26.000000000 +0100 @@ -1,5 +1,5 @@ project('microdnf', 'c', - version : '3.7.0', + version : '3.7.1', license : 'GPL-2.0+', default_options : [ 'b_asneeded=True', @@ -32,7 +32,7 @@ glib = dependency('glib-2.0', version : '>=2.44.0') gobject = dependency('gobject-2.0', version : '>=2.44.0') libpeas = dependency('libpeas-1.0', version : '>=1.20.0') -libdnf = dependency('libdnf', version : '>=0.55.2') +libdnf = dependency('libdnf', version : '>=0.56.0') scols = dependency('smartcols') pkg_libdir = join_paths(get_option('prefix'), get_option('libdir'), 'dnf') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/microdnf-3.7.0/microdnf.spec new/microdnf-3.7.1/microdnf.spec --- old/microdnf-3.7.0/microdnf.spec 2021-02-03 03:25:30.000000000 +0100 +++ new/microdnf-3.7.1/microdnf.spec 2021-02-12 00:45:26.000000000 +0100 @@ -1,7 +1,7 @@ %global libdnf_version 0.56.0 Name: microdnf -Version: 3.7.0 +Version: 3.7.1 Release: 1%{?dist} Summary: Lightweight implementation of DNF in C
