Update dnf to 2.0.0-1

This commit is contained in:
Michal Luscon 2016-12-15 13:05:17 +01:00
parent d618bc4f1b
commit 00a11cf734
3 changed files with 39 additions and 43 deletions

View File

@ -1,31 +0,0 @@
From 51a1694d7c5dc2a9276ba21678cf8560d90ecfe5 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenko@redhat.com>
Date: Tue, 13 Dec 2016 14:54:29 +0100
Subject: [PATCH] tests: catch ModuleNotFoundError as well
From What's New in Python 3.6:
Import now raises the new exception ModuleNotFoundError (subclass of ImportError)
when it cannot find a module. Code that currently checks for
ImportError (in try-except) will still work. (Contributed by Eric Snow in issue 15767.)
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
---
tests/test_plugin.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_plugin.py b/tests/test_plugin.py
index 23a95c33..88e51719 100644
--- a/tests/test_plugin.py
+++ b/tests/test_plugin.py
@@ -93,6 +93,6 @@ class PluginNonExistentTest(tests.support.TestCase):
with tests.support.wiretap_logs('dnf', dnf.logging.SUBDEBUG, stream):
dnf.plugin._import_modules(package, ('nonexistent.py',))
- end = ('ImportError: No module named \'testpkg\'\n' if dnf.pycomp.PY3
- else 'ImportError: No module named testpkg.nonexistent\n')
+ end = ('Error: No module named \'testpkg\'\n' if dnf.pycomp.PY3
+ else 'Error: No module named testpkg.nonexistent\n')
self.assertTracebackIn(end, stream.getvalue())
--
2.11.0

View File

@ -1,4 +1,4 @@
%global hawkey_version 0.7.0-0.4
%global hawkey_version 0.7.0-0.1305
%global librepo_version 1.7.19
%global libcomps_version 0.1.8
%global rpm_version 4.13.0-0.rc1.29
@ -25,7 +25,7 @@
Name: dnf
Version: 2.0.0
Release: 0.rc2.6%{?dist}
Release: 1%{?dist}
Summary: Package manager forked from Yum, using libsolv as a dependency resolver
# For a breakdown of the licensing, see PACKAGE-LICENSING
License: GPLv2+ and GPLv2 and GPL
@ -33,8 +33,6 @@ URL: https://github.com/rpm-software-management/dnf
Source0: %{url}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
# https://bugzilla.redhat.com/show_bug.cgi?id=1380945
Patch666: 0001-Revert-group-treat-mandatory-pkgs-as-mandatory-if-st.patch
# https://github.com/rpm-software-management/dnf/pull/686
Patch777: 0001-tests-catch-ModuleNotFoundError-as-well.patch
BuildArch: noarch
BuildRequires: cmake
BuildRequires: gettext
@ -116,7 +114,6 @@ BuildRequires: python2-pygpgme
%endif
BuildRequires: pyliblzma
BuildRequires: rpm-python >= %{rpm_version}
Recommends: bash-completion
Requires: pyliblzma
Requires: %{name}-conf = %{version}-%{release}
Requires: deltarpm
@ -151,7 +148,6 @@ BuildRequires: python3-librepo >= %{librepo_version}
BuildRequires: python3-nose
BuildRequires: python3-pygpgme
BuildRequires: rpm-python3 >= %{rpm_version}
Recommends: bash-completion
Requires: %{name}-conf = %{version}-%{release}
Requires: deltarpm
Requires: python3-hawkey >= %{hawkey_version}
@ -249,13 +245,19 @@ popd
%systemd_postun_with_restart dnf-makecache.timer
%post automatic
%systemd_post dnf-automatic.timer
%systemd_post dnf-automatic-notifyonly.timer
%systemd_post dnf-automatic-download.timer
%systemd_post dnf-automatic-install.timer
%preun automatic
%systemd_preun dnf-automatic.timer
%systemd_preun dnf-automatic-notifyonly.timer
%systemd_preun dnf-automatic-download.timer
%systemd_preun dnf-automatic-install.timer
%postun automatic
%systemd_postun_with_restart dnf-automatic.timer
%systemd_postun_with_restart dnf-automatic-notifyonly.timer
%systemd_postun_with_restart dnf-automatic-download.timer
%systemd_postun_with_restart dnf-automatic-install.timer
%files -f %{name}.lang
%{_bindir}/%{name}
@ -317,8 +319,12 @@ popd
%{_bindir}/%{name}-automatic
%config(noreplace) %{confdir}/automatic.conf
%{_mandir}/man8/%{name}.automatic.8.gz
%{_unitdir}/%{name}-automatic.service
%{_unitdir}/%{name}-automatic.timer
%{_unitdir}/%{name}-automatic-notifyonly.service
%{_unitdir}/%{name}-automatic-notifyonly.timer
%{_unitdir}/%{name}-automatic-download.service
%{_unitdir}/%{name}-automatic-download.timer
%{_unitdir}/%{name}-automatic-install.service
%{_unitdir}/%{name}-automatic-install.timer
%if %{with python3}
%{python3_sitelib}/%{name}/automatic/
%else
@ -326,6 +332,27 @@ popd
%endif
%changelog
* Wed Dec 14 2016 Michal Luscon <mluscon@redhat.com> 2.0.0-1
- tests: catch ModuleNotFoundError as well (Igor Gnatenko)
- Switch out automatic service for automatic-download and automatic-install
(Pat Riehecky)
- Make upgrade-to alias for upgrade (RhBug:1327999) (Jaroslav Mracek)
- skip appending an empty option (RhBug: 1400081) (Michael Mraka)
- Add description of nevra foems for commands and autoremove args (Jaroslav
Mracek)
- Add support of arguments nevra forms for autoremove command (Jaroslav Mracek)
- Add nevra forms for remove command (Jaroslav Mracek)
- Add nevra forms for install command (Jaroslav Mracek)
- add bin/yum into .gitignore (Michal Luscon)
- clean: acquire all locks before cleaning (RhBug:1293782) (Michal Luscon)
- Change hawkey version requirement (Jaroslav Mracek)
- Add information for translators (RhBug:1386078) (Jaroslav Mracek)
- Change info to warning for clean repoquery output (RhBug:1358245) (Jaroslav
Mracek)
- Add description of pkg flag for Query (RhBug:1243393) (Jaroslav Mracek)
- Add minor changes in documentation (Jaroslav Mracek)
- Do not always overwrite the name with the repo ID (Neal Gompa)
* Tue Dec 06 2016 Martin Hatina <mhatina@redhat.com> - 2.0.0-0.rc2.5
- Fix libdnf requirement version

View File

@ -1 +1 @@
40eb1e4244e60e7d8142982848955293 dnf-2.0.0.tar.gz
SHA512 (dnf-2.0.0.tar.gz) = 6eb240212fc3aed9a8e28ed1d39a3a5598a8009a546d2f3cf28289afe550ebb47f12dce0c2152189b23b31da9bd83514c0f5f2243bd30e865ec34028404a7716