Hello community,

here is the log from the commit of package dnf for openSUSE:Factory checked in 
at 2019-05-12 11:44:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dnf (Old)
 and      /work/SRC/openSUSE:Factory/.dnf.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dnf"

Sun May 12 11:44:55 2019 rev:14 rq:702041 version:4.2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/dnf/dnf.changes  2019-04-28 20:12:01.830471536 
+0200
+++ /work/SRC/openSUSE:Factory/.dnf.new.5148/dnf.changes        2019-05-12 
11:45:22.811978298 +0200
@@ -1,0 +2,11 @@
+Fri May 10 14:47:11 UTC 2019 - Neal Gompa <ngomp...@gmail.com>
+
+- Update to version 4.2.6
+  + Turn on debug logging only if debuglevel is greater than 2 (rh#1355764, 
rh#1580022)
+  + Fix issues with terminal hangs when attempting bash completion (rh#1702854)
+  + Better detecting of file provides (rh#1702621)
+  + Rename man page from dnf.automatic to dnf-automatic to match command name 
(rh#1703609)
+- Drop patch included in this release
+  * 0001-Python2-3-compatibility-for-exceptions-representatio.patch
+
+-------------------------------------------------------------------

Old:
----
  0001-Python2-3-compatibility-for-exceptions-representatio.patch
  dnf-4.2.5.tar.gz

New:
----
  dnf-4.2.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dnf.spec ++++++
--- /var/tmp/diff_new_pack.p4zsAB/_old  2019-05-12 11:45:27.615992402 +0200
+++ /var/tmp/diff_new_pack.p4zsAB/_new  2019-05-12 11:45:27.619992414 +0200
@@ -17,7 +17,7 @@
 #
 
 
-%global hawkey_version 0.31.0
+%global hawkey_version 0.33.0
 %global libcomps_version 0.1.8
 %global rpm_version 4.14.0
 %global min_plugins_core 4.0.6
@@ -34,7 +34,7 @@
 %bcond_with tests
 
 Name:           dnf
-Version:        4.2.5
+Version:        4.2.6
 Release:        0
 Summary:        Package manager forked from Yum, using libsolv as a dependency 
resolver
 # For a breakdown of the licensing, see PACKAGE-LICENSING
@@ -43,10 +43,6 @@
 Url:            https://github.com/rpm-software-management/dnf
 Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
 
-# Backports from upstream
-## Fix exception message reporting in Python 3
-Patch0001:      0001-Python2-3-compatibility-for-exceptions-representatio.patch
-
 BuildRequires:  bash-completion
 BuildRequires:  cmake
 BuildRequires:  gettext
@@ -248,7 +244,7 @@
 %doc AUTHORS
 %{_bindir}/%{name}-automatic
 %config(noreplace) %{confdir}/automatic.conf
-%{_mandir}/man8/%{name}.automatic.8.*
+%{_mandir}/man8/%{name}-automatic.8.*
 %{_unitdir}/%{name}-automatic.service
 %{_unitdir}/%{name}-automatic.timer
 %{_unitdir}/%{name}-automatic-notifyonly.service

++++++ dnf-4.2.5.tar.gz -> dnf-4.2.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/VERSION.cmake new/dnf-4.2.6/VERSION.cmake
--- old/dnf-4.2.5/VERSION.cmake 2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/VERSION.cmake 2019-05-07 14:34:38.000000000 +0200
@@ -1 +1 @@
-SET(DNF_VERSION "4.2.5")
+SET(DNF_VERSION "4.2.6")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/dnf/cli/cli.py new/dnf-4.2.6/dnf/cli/cli.py
--- old/dnf-4.2.5/dnf/cli/cli.py        2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/dnf/cli/cli.py        2019-05-07 14:34:38.000000000 +0200
@@ -574,7 +574,7 @@
             query, used_search_string = super(BaseCli, self).provides(spec)
             matches.extend(query)
             used_search_strings.extend(used_search_string)
-        for pkg in matches:
+        for pkg in sorted(matches):
             self.output.matchcallback_verbose(pkg, used_search_strings, args)
         self.conf.showdupesfromrepos = old_sdup
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/dnf/cli/main.py 
new/dnf-4.2.6/dnf/cli/main.py
--- old/dnf-4.2.5/dnf/cli/main.py       2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/dnf/cli/main.py       2019-05-07 14:34:38.000000000 +0200
@@ -60,6 +60,7 @@
 
 def main(args, conf_class=Conf, cli_class=Cli, 
option_parser_class=OptionParser):
     try:
+        dnf.i18n.setup_stdout()
         with dnf.cli.cli.BaseCli(conf_class()) as base:
             return _main(base, args, cli_class, option_parser_class)
     except dnf.exceptions.ProcessLockError as e:
@@ -83,8 +84,6 @@
 def _main(base, args, cli_class, option_parser):
     """Run the dnf program from a command line interface."""
 
-    dnf.i18n.setup_stdout()
-
     # our core object for the cli
     base._logging._presetup()
     cli = cli_class(base)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/dnf/cli/output.py 
new/dnf-4.2.6/dnf/cli/output.py
--- old/dnf-4.2.5/dnf/cli/output.py     2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/dnf/cli/output.py     2019-05-07 14:34:38.000000000 +0200
@@ -21,9 +21,18 @@
 from __future__ import print_function
 from __future__ import unicode_literals
 
+from copy import deepcopy
+import fnmatch
+import hawkey
+import itertools
 import libdnf.transaction
+import logging
+import operator
+import pwd
+import re
+import sys
+import time
 
-from copy import deepcopy
 from dnf.cli.format import format_number, format_time
 from dnf.i18n import _, C_, P_, ucd, fill_exact_width, textwrap_fill, 
exact_width, select_short_long
 from dnf.pycomp import xrange, basestring, long, unicode
@@ -39,14 +48,6 @@
 import dnf.transaction
 import dnf.util
 import dnf.yum.misc
-import fnmatch
-import hawkey
-import itertools
-import logging
-import operator
-import pwd
-import sys
-import time
 
 logger = logging.getLogger('dnf')
 
@@ -112,6 +113,7 @@
     """Main output class for the yum command line."""
 
     GRP_PACKAGE_INDENT = ' ' * 3
+    FILE_PROVIDE_RE = re.compile(r'^\*{0,2}/')
 
     def __init__(self, base, conf):
         self.conf = conf
@@ -865,14 +867,15 @@
                 print(key % item)
 
         def print_file_provides(item, printed_match):
-            if not any([item.startswith("/"), item.startswith('*/')]):
+            if not self.FILE_PROVIDE_RE.match(item):
                 return False
             key = _("Filename    : %s")
             file_match = False
             for filename in po.files:
                 if fnmatch.fnmatch(filename, item):
+                    print_highlighted_key_item(
+                        key, filename, file_match or printed_match, 
can_overflow=False)
                     file_match = True
-                    print_highlighted_key_item(key, filename, printed_match, 
can_overflow=False)
             return file_match
 
         if self.conf.showdupesfromrepos:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/dnf/exceptions.py 
new/dnf-4.2.6/dnf/exceptions.py
--- old/dnf-4.2.5/dnf/exceptions.py     2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/dnf/exceptions.py     2019-05-07 14:34:38.000000000 +0200
@@ -39,10 +39,11 @@
         self.value = None if value is None else ucd(value)
 
     def __str__(self):
-        return "%s" %(self.value,)
+        return "{}".format(self.value)
 
     def __unicode__(self):
-        return '%s' % self.value
+        return ucd(self.__str__())
+
 
 
 class CompsError(Error):
@@ -78,9 +79,6 @@
     def __str__(self):
         return self.errmap2str(self.errmap)
 
-    def __unicode__(self):
-        return ucd(self.__str__())
-
 
 class LockError(Error):
     pass
@@ -94,8 +92,8 @@
         super(MarkingError, self).__init__(value)
         self.pkg_spec = None if pkg_spec is None else ucd(pkg_spec)
 
-    def __unicode__(self):
-        string = super(MarkingError, self).__unicode__()
+    def __str__(self):
+        string = super(MarkingError, self).__str__()
         if self.pkg_spec:
             string += ': ' + self.pkg_spec
         return string
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/dnf/logging.py new/dnf-4.2.6/dnf/logging.py
--- old/dnf-4.2.5/dnf/logging.py        2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/dnf/logging.py        2019-05-07 14:34:38.000000000 +0200
@@ -152,7 +152,7 @@
         logger_warnings.addHandler(handler)
 
         lr_logfile = os.path.join(logdir, dnf.const.LOG_LIBREPO)
-        libdnf.repo.LibrepoLog.addHandler(lr_logfile)
+        libdnf.repo.LibrepoLog.addHandler(lr_logfile, verbose_level <= DEBUG)
 
         # setup RPM callbacks logger
         logger_rpm = logging.getLogger("dnf.rpm")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/dnf/sack.py new/dnf-4.2.6/dnf/sack.py
--- old/dnf-4.2.5/dnf/sack.py   2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/dnf/sack.py   2019-05-07 14:34:38.000000000 +0200
@@ -50,7 +50,8 @@
     return Sack(pkgcls=dnf.package.Package, pkginitval=base,
                 arch=base.conf.substitutions["arch"],
                 cachedir=cachedir, rootdir=base.conf.installroot,
-                logfile=os.path.join(base.conf.logdir, dnf.const.LOG_HAWKEY))
+                logfile=os.path.join(base.conf.logdir, dnf.const.LOG_HAWKEY),
+                logdebug=base.conf.debuglevel > 2)
 
 
 def _rpmdb_sack(base):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/dnf.spec new/dnf-4.2.6/dnf.spec
--- old/dnf-4.2.5/dnf.spec      2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/dnf.spec      2019-05-07 14:34:38.000000000 +0200
@@ -1,5 +1,5 @@
 # default dependencies
-%global hawkey_version 0.31.0
+%global hawkey_version 0.32.0
 %global libcomps_version 0.1.8
 %global libmodulemd_version 1.4.0
 %global rpm_version 4.14.0
@@ -79,7 +79,7 @@
 It supports RPMs, modules and comps groups & environments.
 
 Name:           dnf
-Version:        4.2.5
+Version:        4.2.6
 Release:        1%{?dist}
 Summary:        %{pkg_summary}
 # For a breakdown of the licensing, see PACKAGE-LICENSING
@@ -483,7 +483,7 @@
 %files automatic
 %{_bindir}/%{name}-automatic
 %config(noreplace) %{confdir}/automatic.conf
-%{_mandir}/man8/%{name}.automatic.8*
+%{_mandir}/man8/%{name}-automatic.8*
 %{_unitdir}/%{name}-automatic.service
 %{_unitdir}/%{name}-automatic.timer
 %{_unitdir}/%{name}-automatic-notifyonly.service
@@ -499,6 +499,13 @@
 %endif
 
 %changelog
+* Tue May 07 2019 Pavla Kratochvilova <pkrat...@redhat.com> - 4.2.6-1
+- librepo: Turn on debug logging only if debuglevel is greater than 2 
(RhBug:1355764,1580022)
+- Fix issues with terminal hangs when attempting bash completion 
(RhBug:1702854)
+- Rename man page from dnf.automatic to dnf-automatic to match command name
+- [provides] Enhanced detecting of file provides (RhBug:1702621)
+- [provides] Sort the output packages alphabetically
+
 * Thu Apr 25 2019 Pavla Kratochvilova <pkrat...@redhat.com> - 4.2.5-1
 - Fix multilib obsoletes (RhBug:1672947)
 - Do not remove group package if other packages depend on it
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/doc/CMakeLists.txt 
new/dnf-4.2.6/doc/CMakeLists.txt
--- old/dnf-4.2.5/doc/CMakeLists.txt    2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/doc/CMakeLists.txt    2019-05-07 14:34:38.000000000 +0200
@@ -21,7 +21,7 @@
 
 if (NOT WITH_MAN EQUAL 0)
     INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/dnf.8
-              ${CMAKE_CURRENT_BINARY_DIR}/dnf.automatic.8
+              ${CMAKE_CURRENT_BINARY_DIR}/dnf-automatic.8
               ${CMAKE_CURRENT_BINARY_DIR}/yum2dnf.8
               ${CMAKE_CURRENT_BINARY_DIR}/yum.8
               ${CMAKE_CURRENT_BINARY_DIR}/yum-shell.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/doc/conf.py new/dnf-4.2.6/doc/conf.py
--- old/dnf-4.2.5/doc/conf.py   2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/doc/conf.py   2019-05-07 14:34:38.000000000 +0200
@@ -232,7 +232,7 @@
 # One entry per manual page. List of tuples
 # (source start file, name, description, authors, manual section).
 man_pages = [
-    ('automatic', 'dnf.automatic', u'DNF Automatic',
+    ('automatic', 'dnf-automatic', u'DNF Automatic',
      AUTHORS, 8),
     ('command_ref', 'dnf', u'DNF Command Reference',
      AUTHORS, 8),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/doc/release_notes.rst 
new/dnf-4.2.6/doc/release_notes.rst
--- old/dnf-4.2.5/doc/release_notes.rst 2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/doc/release_notes.rst 2019-05-07 14:34:38.000000000 +0200
@@ -20,6 +20,23 @@
 ###################
 
 ===================
+4.2.6 Release Notes
+===================
+
+- librepo: Turn on debug logging only if debuglevel is greater than 2 
(RhBug:1355764,1580022)
+- Fix issues with terminal hangs when attempting bash completion 
(RhBug:1702854)
+- Rename man page from dnf.automatic to dnf-automatic to match command name
+- [provides] Enhanced detecting of file provides (RhBug:1702621)
+- [provides] Sort the output packages alphabetically
+
+Bugs fixed in 4.2.6:
+
+* :rhbug:`1355764`
+* :rhbug:`1580022`
+* :rhbug:`1702621`
+* :rhbug:`1702854`
+
+===================
 4.2.5 Release Notes
 ===================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/doc/summaries_cache 
new/dnf-4.2.6/doc/summaries_cache
--- old/dnf-4.2.5/doc/summaries_cache   2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/doc/summaries_cache   2019-05-07 14:34:38.000000000 +0200
@@ -2722,5 +2722,21 @@
     [
         1672947,
         "dnf prints tracebacks RuntimeError: TransactionItem not found for key"
+    ],
+    [
+        1355764,
+        "Excessive DNF logging (all messages - including debug - from dnf, 
libdnf, librepo and rpm interface logged to file by default, not configurable)"
+    ],
+    [
+        1580022,
+        "/var/log/dnf.librepo.log way too verbose and big"
+    ],
+    [
+        1702621,
+        "'dnf provides' wildcard search doesn't show the actual matched file"
+    ],
+    [
+        1702854,
+        "Tab completion attempts with dnf cause terminal to hang."
     ]
 ]
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/etc/bash_completion.d/dnf 
new/dnf-4.2.6/etc/bash_completion.d/dnf
--- old/dnf-4.2.5/etc/bash_completion.d/dnf     2019-04-25 10:44:57.000000000 
+0200
+++ new/dnf-4.2.6/etc/bash_completion.d/dnf     2019-05-07 14:34:38.000000000 
+0200
@@ -149,9 +149,7 @@
     shift
 
     if ! _dnf_is_path "$cur"; then
-        COMPREPLY+=( $(compgen -W '$( ${__dnf_python_exec} -c \
-            "import sys; from dnf.cli import completion_helper as 
ch;ch.main(sys.argv[1:])" \
-            $cmd "$@" "$cur" -d 0 -q -C 2>/dev/null )') )
+        COMPREPLY+=( $(compgen -W "$( _dnf_commands_helper $cmd "$@" "$cur" 
)") )
     fi
 
     [[ $COMPREPLY ]] && return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-4.2.5/rel-eng/packages/dnf 
new/dnf-4.2.6/rel-eng/packages/dnf
--- old/dnf-4.2.5/rel-eng/packages/dnf  2019-04-25 10:44:57.000000000 +0200
+++ new/dnf-4.2.6/rel-eng/packages/dnf  2019-05-07 14:34:38.000000000 +0200
@@ -1 +1 @@
-4.2.5-1 ./
+4.2.6-1 ./


Reply via email to