Hello community,
here is the log from the commit of package dnf-plugins-core for
openSUSE:Factory checked in at 2019-05-24 11:33:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dnf-plugins-core (Old)
and /work/SRC/openSUSE:Factory/.dnf-plugins-core.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dnf-plugins-core"
Fri May 24 11:33:13 2019 rev:8 rq:705103 version:4.0.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/dnf-plugins-core/dnf-plugins-core.changes
2019-04-28 20:12:06.114468873 +0200
+++
/work/SRC/openSUSE:Factory/.dnf-plugins-core.new.5148/dnf-plugins-core.changes
2019-05-24 11:33:16.865369184 +0200
@@ -1,0 +2,12 @@
+Fri May 24 02:56:30 UTC 2019 - Neal Gompa <[email protected]>
+
+- Update to version 4.0.7
+ + Fix: copr disable command traceback (rh#1693551)
+ + [doc] state repoid as repo identifier of config-manager (rh#1686779)
+ + Fix download of src when not the latest requested (rh#1649627)
+- Add missing dependencies on dateutil and distro Python modules
+- Drop backported fixes that are part of this release
+ * 0001-Fix-copr-disable-command-traceback-RhBug-1693551.patch
+ * 0002-doc-state-repoid-as-repo-identifier-of-config-manage.patch
+
+-------------------------------------------------------------------
Old:
----
0001-Fix-copr-disable-command-traceback-RhBug-1693551.patch
0002-doc-state-repoid-as-repo-identifier-of-config-manage.patch
dnf-plugins-core-4.0.6.tar.gz
New:
----
dnf-plugins-core-4.0.7.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ dnf-plugins-core.spec ++++++
--- /var/tmp/diff_new_pack.FmWYmb/_old 2019-05-24 11:33:17.989368754 +0200
+++ /var/tmp/diff_new_pack.FmWYmb/_new 2019-05-24 11:33:17.993368753 +0200
@@ -35,7 +35,7 @@
#global prerel rc1
Name: dnf-plugins-core
-Version: 4.0.6
+Version: 4.0.7
Release: 0
Summary: Core Plugins for DNF
License: GPL-2.0+
@@ -43,10 +43,6 @@
Url: https://github.com/rpm-software-management/dnf-plugins-core
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
-# Backports from upstream
-Patch0001: 0001-Fix-copr-disable-command-traceback-RhBug-1693551.patch
-Patch0002: 0002-doc-state-repoid-as-repo-identifier-of-config-manage.patch
-
BuildArch: noarch
BuildRequires: cmake
@@ -107,6 +103,8 @@
BuildRequires: python3-nose
Requires: python3-dnf >= %{dnf_lowest_compatible}
Requires: python3-hawkey >= %{hawkey_version}
+Requires: python3-dateutil
+Requires: python3-distro
Conflicts: %{name} <= 0.1.5
# let the both python plugin versions be updated simultaneously
++++++ dnf-plugins-core-4.0.6.tar.gz -> dnf-plugins-core-4.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dnf-plugins-core-4.0.6/dnf-plugins-core.spec
new/dnf-plugins-core-4.0.7/dnf-plugins-core.spec
--- old/dnf-plugins-core-4.0.6/dnf-plugins-core.spec 2019-03-11
11:51:11.000000000 +0100
+++ new/dnf-plugins-core-4.0.7/dnf-plugins-core.spec 2019-05-07
14:43:47.000000000 +0200
@@ -23,7 +23,7 @@
%endif
Name: dnf-plugins-core
-Version: 4.0.6
+Version: 4.0.7
Release: 1%{?dist}
Summary: Core Plugins for DNF
License: GPLv2+
@@ -684,6 +684,11 @@
%endif
%changelog
+* Tue May 07 2019 Pavla Kratochvilova <[email protected]> - 4.0.7-1
+- Fix: copr disable command traceback (RhBug:1693551)
+- [doc] state repoid as repo identifier of config-manager (RhBug:1686779)
+- Fix download of src when not the latest requested (RhBug:1649627)
+
* Mon Mar 11 2019 Pavla Kratochvilova <[email protected]> - 4.0.6-1
- Use improved config parser that preserves order of data
- [leaves] Show multiply satisfied dependencies as leaves
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dnf-plugins-core-4.0.6/doc/config_manager.rst
new/dnf-plugins-core-4.0.7/doc/config_manager.rst
--- old/dnf-plugins-core-4.0.6/doc/config_manager.rst 2019-03-11
11:51:11.000000000 +0100
+++ new/dnf-plugins-core-4.0.7/doc/config_manager.rst 2019-05-07
14:43:47.000000000 +0200
@@ -26,15 +26,15 @@
Synopsis
--------
-``dnf config-manager [options] <repo>...``
+``dnf config-manager [options] <repoid>...``
---------
Arguments
---------
-``<repo>``
- Display / modify specified repository. If not specified display / modify
main DNF configuration.
- Repositories can be specified using globs.
+``<repoid>``
+ Display / modify a repository identified by <repoid>. If not specified,
display / modify
+ main DNF configuration. Repositories can be specified using globs.
-------
Options
@@ -71,11 +71,12 @@
``dnf config-manager --dump``
Display main DNF configuration.
-``dnf config-manager repo --dump``
- Display configuration of repo.
+``dnf config-manager <repoid> --dump``
+ Display configuration of a repository identified by <repoid>.
-``dnf config-manager --set-enabled repo``
- Enable repo and make the change permanent.
+``dnf config-manager --set-enabled <repoid>``
+ Enable repository identified by <repoid> and make the change permanent.
-``dnf config-manager --setopt proxy=http://proxy.example.com:3128/ repo1 repo2
--save``
- Update proxy setting in repo1 and repo2 and make the change permanent.
+``dnf config-manager --setopt proxy=http://proxy.example.com:3128/ <repo1>
<repo2> --save``
+ Update proxy setting in repositories with repoid <repo1> and <repo2> and
make the change
+ permanent.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dnf-plugins-core-4.0.6/doc/release_notes.rst
new/dnf-plugins-core-4.0.7/doc/release_notes.rst
--- old/dnf-plugins-core-4.0.6/doc/release_notes.rst 2019-03-11
11:51:11.000000000 +0100
+++ new/dnf-plugins-core-4.0.7/doc/release_notes.rst 2019-05-07
14:43:47.000000000 +0200
@@ -22,6 +22,18 @@
.. contents::
===================
+4.0.7 Release Notes
+===================
+
+- Fix: copr disable command traceback (RhBug:1693551)
+- [doc] state repoid as repo identifier of config-manager (RhBug:1686779)
+- Fix download of src when not the latest requested (RhBug:1649627)
+
+Bugs fixed in 4.0.7:
+
+* :rhbug:`1693551`
+
+===================
4.0.6 Release Notes
===================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dnf-plugins-core-4.0.6/doc/summaries_cache
new/dnf-plugins-core-4.0.7/doc/summaries_cache
--- old/dnf-plugins-core-4.0.6/doc/summaries_cache 2019-03-11
11:51:11.000000000 +0100
+++ new/dnf-plugins-core-4.0.7/doc/summaries_cache 2019-05-07
14:43:47.000000000 +0200
@@ -430,5 +430,9 @@
[
1666648,
"dnf download command downloads also a srpm"
+ ],
+ [
+ 1693551,
+ "Problem with dnf copr disable command"
]
]
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dnf-plugins-core-4.0.6/plugins/copr.py
new/dnf-plugins-core-4.0.7/plugins/copr.py
--- old/dnf-plugins-core-4.0.6/plugins/copr.py 2019-03-11 11:51:11.000000000
+0100
+++ new/dnf-plugins-core-4.0.7/plugins/copr.py 2019-05-07 14:43:47.000000000
+0200
@@ -518,7 +518,7 @@
.format(copr_username, copr_projectname)))
self.base.conf.write_raw_configfile(repo.repofile, repo.id,
- self.base.conf.substitutions,
{"enabled": 0})
+ self.base.conf.substitutions,
{"enabled": "0"})
@classmethod
def _get_data(cls, f):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dnf-plugins-core-4.0.6/plugins/download.py
new/dnf-plugins-core-4.0.7/plugins/download.py
--- old/dnf-plugins-core-4.0.6/plugins/download.py 2019-03-11
11:51:11.000000000 +0100
+++ new/dnf-plugins-core-4.0.7/plugins/download.py 2019-05-07
14:43:47.000000000 +0200
@@ -270,13 +270,11 @@
def _get_query_source(self, pkg_spec):
"""Return a query to match a source rpm file name."""
pkg_spec = pkg_spec[:-4] # skip the .rpm
- nevra = hawkey.split_nevra(pkg_spec)
- q = self.base.sack.query()
- q = q.available()
- q = q.latest()
- q = q.filter(name=nevra.name, version=nevra.version,
- release=nevra.release, arch=nevra.arch)
- if len(q.run()) == 0:
- msg = _("No package %s available.") % (pkg_spec)
- raise dnf.exceptions.PackageNotFoundError(msg)
- return q
+ subj = dnf.subject.Subject(pkg_spec)
+ for nevra_obj in subj.get_nevra_possibilities():
+ tmp_query = nevra_obj.to_query(self.base.sack).available()
+ if tmp_query:
+ return tmp_query.latest()
+
+ msg = _("No package %s available.") % (pkg_spec)
+ raise dnf.exceptions.PackageNotFoundError(msg)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/dnf-plugins-core-4.0.6/rel-eng/packages/dnf-plugins-core
new/dnf-plugins-core-4.0.7/rel-eng/packages/dnf-plugins-core
--- old/dnf-plugins-core-4.0.6/rel-eng/packages/dnf-plugins-core
2019-03-11 11:51:11.000000000 +0100
+++ new/dnf-plugins-core-4.0.7/rel-eng/packages/dnf-plugins-core
2019-05-07 14:43:47.000000000 +0200
@@ -1 +1 @@
-4.0.6-1 ./
+4.0.7-1 ./
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dnf-plugins-core-4.0.6/tests/test_download.py
new/dnf-plugins-core-4.0.7/tests/test_download.py
--- old/dnf-plugins-core-4.0.6/tests/test_download.py 2019-03-11
11:51:11.000000000 +0100
+++ new/dnf-plugins-core-4.0.7/tests/test_download.py 2019-05-07
14:43:47.000000000 +0200
@@ -271,12 +271,6 @@
finally:
os.remove(rpm_path)
- def test_get_query_source(self):
- pkgs = self.cmd._get_query_source('foo-2.0-1.src.rpm')
- self.assertEqual(len(pkgs), 1)
- self.assertEqual(pkgs[0].arch, 'src')
- self.assertEqual(pkgs[0].reponame, 'test-repo-source')
-
def test_get_packages(self):
pkgs = self.cmd._get_packages(['bar'])
self.assertEqual(len(pkgs), 1)
@@ -299,10 +293,6 @@
self.cmd.base.conf.strict = strict_orig
self.assertEqual(pkgs[0].name, 'bar')
- pkgs = self.cmd._get_packages(['foo-2.0-1.src.rpm'], source=True)
- self.assertEqual(len(pkgs), 1)
- self.assertEqual(pkgs[0].arch, 'src')
- self.assertEqual(pkgs[0].reponame, 'test-repo-source')
def test_download_rpms(self):
pkgs = self.cmd._get_pkg_objs_rpms(['foo'])
@@ -316,17 +306,6 @@
self.assertEqual(locations[1], '/tmp/dnf/foo-2.0-1.noarch.rpm')
self.assertTrue(self.cmd.base.download_packages.called)
- def test_download_source(self):
- pkgs = self.cmd._get_pkg_objs_source(['foo'])
- locations = self.cmd._do_downloads(pkgs)
- self.assertEqual(len(locations), 1)
- self.assertEqual(locations[0], '/tmp/dnf/foo-2.0-1.src.rpm')
- pkgs = self.cmd._get_pkg_objs_source(['foo', 'bar'])
- locations = self.cmd._do_downloads(pkgs)
- self.assertEqual(len(locations), 2)
- self.assertEqual(locations[0], '/tmp/dnf/bar-2.0-1.src.rpm')
- self.assertEqual(locations[1], '/tmp/dnf/foo-2.0-1.src.rpm')
-
def test_download_debuginfo(self):
pkgs = self.cmd._get_pkg_objs_debuginfo(['kernel-PAE'])
locations = self.cmd._do_downloads(pkgs)