Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package dnf-plugins-core for 
openSUSE:Factory checked in at 2021-04-21 21:00:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dnf-plugins-core (Old)
 and      /work/SRC/openSUSE:Factory/.dnf-plugins-core.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dnf-plugins-core"

Wed Apr 21 21:00:06 2021 rev:16 rq:887047 version:4.0.21

Changes:
--------
--- /work/SRC/openSUSE:Factory/dnf-plugins-core/dnf-plugins-core.changes        
2021-02-03 19:56:00.257694933 +0100
+++ 
/work/SRC/openSUSE:Factory/.dnf-plugins-core.new.12324/dnf-plugins-core.changes 
    2021-04-21 21:00:36.554315676 +0200
@@ -1,0 +2,10 @@
+Tue Apr 13 14:14:56 UTC 2021 - Neal Gompa <ngomp...@gmail.com>
+
+- Update to version 4.0.21
+  + Add missing command line option to documentation
+  + doc: add packages to needs-restarting conf
+  + Set blacklist subcommand as deprecated
+  + Bugs fixed (rh#1914827, rh#1916782)
+  + Removed dependency on dnf.yum.misc.Checksum class (rh#1935465)
+
+-------------------------------------------------------------------

Old:
----
  dnf-plugins-core-4.0.19.tar.gz

New:
----
  dnf-plugins-core-4.0.21.tar.gz

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

Other differences:
------------------
++++++ dnf-plugins-core.spec ++++++
--- /var/tmp/diff_new_pack.K4jUAO/_old  2021-04-21 21:00:37.066316483 +0200
+++ /var/tmp/diff_new_pack.K4jUAO/_new  2021-04-21 21:00:37.070316489 +0200
@@ -56,7 +56,7 @@
 #global prerel rc1
 
 Name:           dnf-plugins-core
-Version:        4.0.19
+Version:        4.0.21
 Release:        0
 Summary:        Core Plugins for DNF
 License:        GPL-2.0-or-later

++++++ dnf-plugins-core-4.0.19.tar.gz -> dnf-plugins-core-4.0.21.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/.github/workflows/ci.yml 
new/dnf-plugins-core-4.0.21/.github/workflows/ci.yml
--- old/dnf-plugins-core-4.0.19/.github/workflows/ci.yml        1970-01-01 
01:00:00.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/.github/workflows/ci.yml        2021-04-12 
17:30:34.000000000 +0200
@@ -0,0 +1,73 @@
+---
+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
+
+      - 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
+    steps:
+      - name: Check out ci-dnf-stack
+        uses: actions/checkout@v2
+        with:
+          repository: rpm-software-management/ci-dnf-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
+
+      - name: Run Ansible Tests
+        uses: ./.github/actions/ansible-tests
+        with:
+          package-urls: ${{needs.copr-build.outputs.package-urls}}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/bors.toml 
new/dnf-plugins-core-4.0.21/bors.toml
--- old/dnf-plugins-core-4.0.19/bors.toml       2021-01-28 18:02:06.000000000 
+0100
+++ new/dnf-plugins-core-4.0.21/bors.toml       1970-01-01 01:00:00.000000000 
+0100
@@ -1,2 +0,0 @@
-status = ["DNF CI"]
-timeout_sec = 10800  # 3 hours
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/dnf-plugins-core.spec 
new/dnf-plugins-core-4.0.21/dnf-plugins-core.spec
--- old/dnf-plugins-core-4.0.19/dnf-plugins-core.spec   2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/dnf-plugins-core.spec   2021-04-12 
17:30:34.000000000 +0200
@@ -33,7 +33,7 @@
 %endif
 
 Name:           dnf-plugins-core
-Version:        4.0.19
+Version:        4.0.21
 Release:        1%{?dist}
 Summary:        Core Plugins for DNF
 License:        GPLv2+
@@ -100,10 +100,8 @@
 BuildRequires:  python2-dnf >= %{dnf_lowest_compatible}
 %if 0%{?rhel} && 0%{?rhel} <= 7
 BuildRequires:  dbus-python
-BuildRequires:  python-nose
 %else
 BuildRequires:  python2-dbus
-BuildRequires:  python2-nose
 %endif
 BuildRequires:  python2-devel
 %if 0%{?fedora}
@@ -147,7 +145,6 @@
 BuildRequires:  python3-dbus
 BuildRequires:  python3-devel
 BuildRequires:  python3-dnf >= %{dnf_lowest_compatible}
-BuildRequires:  python3-nose
 %if 0%{?fedora}
 Requires:       python3-distro
 %endif
@@ -766,6 +763,15 @@
 %endif
 
 %changelog
+* Mon Apr 12 2021 Nicola Sella <nse...@redhat.com> - 4.0.21-1
+- Add missing command line option to documentation
+- doc: add packages to needs-restarting conf
+- Set blacklist subcommand as deprecated
+- Bugs fixed (RhBug:1914827,1916782)
+
+* Thu Mar 18 2021 Matthew Almond <malm...@fb.com> - 4.0.20-1
+- Removed dependency on dnf.yum.misc.Checksum class (RhBug:1935465)
+
 * Thu Jan 28 2021 Nicola Sella <nse...@redhat.com> - 4.0.19-1
 - copr: allow only 2 arguments with copr enable command
 - [needs-restarting] fix -r in nspawn containers (RhBug:1913962,1914251)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/doc/download.rst 
new/dnf-plugins-core-4.0.21/doc/download.rst
--- old/dnf-plugins-core-4.0.19/doc/download.rst        2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/doc/download.rst        2021-04-12 
17:30:34.000000000 +0200
@@ -68,6 +68,9 @@
 ``--resolve``
     Resolves dependencies of specified packages and downloads missing 
dependencies in the system.
 
+``--alldeps``
+    When used with ``--resolve``, download all dependencies (do not skip 
already installed ones).
+
 --------
 Examples
 --------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/doc/needs_restarting.rst 
new/dnf-plugins-core-4.0.21/doc/needs_restarting.rst
--- old/dnf-plugins-core-4.0.19/doc/needs_restarting.rst        2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/doc/needs_restarting.rst        2021-04-12 
17:30:34.000000000 +0200
@@ -51,3 +51,21 @@
 
 ``-s, --services``
     Only list the affected systemd services.
+
+-------------
+Configuration
+-------------
+
+``/etc/dnf/plugins/needs-restarting.d/``
+
+``/etc/dnf/plugins/needs-restarting.d/pkgname.conf``
+
+Packages can be added to ``needs-restarting`` via conf files in config
+directory. Config files need to have ``.conf`` extension or will be ignored.
+
+More than one package is allowed in each file (one package per line) although
+it is advised to use one file for each package.
+
+Example::
+
+        echo "dwm" > /etc/dnf/plugins/needs-restarting.d/dwm.conf
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/doc/release_notes.rst 
new/dnf-plugins-core-4.0.21/doc/release_notes.rst
--- old/dnf-plugins-core-4.0.19/doc/release_notes.rst   2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/doc/release_notes.rst   2021-04-12 
17:30:34.000000000 +0200
@@ -22,6 +22,31 @@
 .. contents::
 
 ====================
+4.0.21 Release Notes
+====================
+
+- Add missing command line option to documentation
+- doc: add packages to needs-restarting conf
+- Set blacklist subcommand as deprecated
+
+- Bug fixes:
+  - Bugs fixed (RhBug:1914827,1916782)
+
+Bugs fixed in 4.0.21:
+
+* :rhbug:`1914827`
+
+====================
+4.0.20 Release Notes
+====================
+- Bug fixes:
+  - Removed dependency on dnf.yum.misc.Checksum class (RhBug:1935465)
+
+Bugs fixed in 4.0.20:
+
+* :rhbug:`1935465`
+
+====================
 4.0.19 Release Notes
 ====================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/doc/reposync.rst 
new/dnf-plugins-core-4.0.21/doc/reposync.rst
--- old/dnf-plugins-core-4.0.19/doc/reposync.rst        2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/doc/reposync.rst        2021-04-12 
17:30:34.000000000 +0200
@@ -71,7 +71,7 @@
     Try to set the timestamps of the downloaded files to those on the remote 
side.
 
 ``--source``
-    Operate on source packages.
+    Download only source packages.
 
 ``-u, --urls``
     Just print urls of what would be downloaded, don't download.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/doc/summaries_cache 
new/dnf-plugins-core-4.0.21/doc/summaries_cache
--- old/dnf-plugins-core-4.0.19/doc/summaries_cache     2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/doc/summaries_cache     2021-04-12 
17:30:34.000000000 +0200
@@ -606,5 +606,13 @@
     [
         1856818,
         "[RFE] add gpgcheck back to reposync"
+    ],
+    [
+        1914827,
+        "[RHEL8] dnf reposync implicitly downloads source rpms in spite of no 
--source option"
+    ],
+    [
+        1935465,
+        "Cached rpms in dnf uses historic yum checksum code instead of 
librepo's checksum"
     ]
-]
+]
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/plugins/config_manager.py 
new/dnf-plugins-core-4.0.21/plugins/config_manager.py
--- old/dnf-plugins-core-4.0.19/plugins/config_manager.py       2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/plugins/config_manager.py       2021-04-12 
17:30:34.000000000 +0200
@@ -25,6 +25,7 @@
 import dnf.pycomp
 import dnf.util
 import fnmatch
+import hashlib
 import os
 import re
 import shutil
@@ -253,8 +254,8 @@
     if len(url) > 250:
         parts = url[:185].split('_')
         lastindex = 185-len(parts[-1])
-        csum = dnf.yum.misc.Checksums(['sha256'])
-        csum.update(url[lastindex:])
+        csum = hashlib.sha256()
+        csum.update(url[lastindex:].encode('utf-8'))
         url = url[:lastindex] + '_' + csum.hexdigest()
     # remove all not allowed characters
     allowed_regex = 
"[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.:-]"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/plugins/reposync.py 
new/dnf-plugins-core-4.0.21/plugins/reposync.py
--- old/dnf-plugins-core-4.0.19/plugins/reposync.py     2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/plugins/reposync.py     2021-04-12 
17:30:34.000000000 +0200
@@ -84,7 +84,7 @@
                             help=_('try to set local timestamps of local files 
by '
                                    'the one on the server'))
         parser.add_argument('--source', default=False, action='store_true',
-                            help=_('operate on source packages'))
+                            help=_('download only source packages'))
         parser.add_argument('-u', '--urls', default=False, action='store_true',
                             help=_("Just list urls of what would be 
downloaded, "
                                    "don't download"))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/plugins/versionlock.py 
new/dnf-plugins-core-4.0.21/plugins/versionlock.py
--- old/dnf-plugins-core-4.0.19/plugins/versionlock.py  2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/plugins/versionlock.py  2021-04-12 
17:30:34.000000000 +0200
@@ -28,6 +28,7 @@
 import os
 import tempfile
 import time
+import warnings
 
 NOT_READABLE = _('Unable to read version lock configuration: %s')
 NO_LOCKLIST = _('Locklist not set')
@@ -119,9 +120,10 @@
         if excludes_query:
             self.base.sack.add_excludes(excludes_query)
 
-EXC_CMDS = ['exclude', 'add-!', 'add!', 'blacklist']
+EXC_CMDS = ['exclude', 'add-!', 'add!']
 DEL_CMDS = ['delete', 'del']
-ALL_CMDS = ['add', 'clear', 'list'] + EXC_CMDS + DEL_CMDS
+DEP_EXC_CMDS = ['blacklist']
+ALL_CMDS = ['add', 'clear', 'list'] + EXC_CMDS + DEL_CMDS + DEP_EXC_CMDS
 
 
 class VersionLockCommand(dnf.cli.Command):
@@ -152,6 +154,11 @@
                 self.opts.package.insert(0, self.opts.subcommand)
             elif self.opts.subcommand in EXC_CMDS:
                 cmd = 'exclude'
+            elif self.opts.subcommand in DEP_EXC_CMDS:
+                msg = _("Subcommand '{}' is deprecated. Use 'exclude' 
subcommand instead.").format(
+                    self.opts.subcommand)
+                warnings.warn(msg, dnf.exceptions.DeprecationWarning, 
stacklevel=2)
+                cmd = 'exclude'
             elif self.opts.subcommand in DEL_CMDS:
                 cmd = 'delete'
             else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/tests/CMakeLists.txt 
new/dnf-plugins-core-4.0.21/tests/CMakeLists.txt
--- old/dnf-plugins-core-4.0.19/tests/CMakeLists.txt    2021-01-28 
18:02:06.000000000 +0100
+++ new/dnf-plugins-core-4.0.21/tests/CMakeLists.txt    2021-04-12 
17:30:34.000000000 +0200
@@ -1,4 +1,4 @@
-ADD_TEST(test ${PYTHON_EXECUTABLE} -m nose -s ${CMAKE_CURRENT_SOURCE_DIR})
+ADD_TEST(test ${PYTHON_EXECUTABLE} -m unittest discover -t 
${CMAKE_CURRENT_SOURCE_DIR}/.. -s ${CMAKE_CURRENT_SOURCE_DIR})
 
 # ASAN_OPTIONS is for libdnf built with sanitizers, has no effect otherwise.
 SET_PROPERTY(TEST test PROPERTY ENVIRONMENT 
"PYTHONPATH=${CMAKE_SOURCE_DIR}/plugins;ASAN_OPTIONS=verify_asan_link_order=0")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dnf-plugins-core-4.0.19/tests/README 
new/dnf-plugins-core-4.0.21/tests/README
--- old/dnf-plugins-core-4.0.19/tests/README    2021-01-28 18:02:06.000000000 
+0100
+++ new/dnf-plugins-core-4.0.21/tests/README    2021-04-12 17:30:34.000000000 
+0200
@@ -2,7 +2,5 @@
 (working directory = root of the source tree):
 
 export PYTHONPATH=./plugins
-nosetests tests/
+python3 -m unittest discover -t . -s tests/
 
-You can run tests under specific Python version using nosetests-2.7
-or nosetests-3.4.

Reply via email to