Ignore DeprecationWarnings originating in pykickstart itself.
This commit is contained in:
parent
5105f3f9a9
commit
d7af4da528
|
@ -0,0 +1,21 @@
|
|||
commit cf1da553452aa9df198253139f5d1b066dadffd0
|
||||
Author: Chris Lumens <clumens@redhat.com>
|
||||
Date: Wed Apr 6 13:59:54 2016 -0400
|
||||
|
||||
Ignore DeprecationWarnings originating in pykickstart itself.
|
||||
|
||||
Users of pykickstart only care about deprecation warnings in their own
|
||||
code, not internal to pykickstart. So ignore all those.
|
||||
|
||||
diff --git a/pykickstart/__init__.py b/pykickstart/__init__.py
|
||||
index aefb9e2..92a45c5 100644
|
||||
--- a/pykickstart/__init__.py
|
||||
+++ b/pykickstart/__init__.py
|
||||
@@ -1,2 +1,6 @@
|
||||
+# Ignore PendingDeprecationWarnings in the pykickstart module itself. There's
|
||||
+# nothing users of pykickstart can do about those. Instead just print out ones
|
||||
+# for users of the code.
|
||||
import warnings
|
||||
-warnings.simplefilter("module", PendingDeprecationWarning)
|
||||
+warnings.filterwarnings("once", category=PendingDeprecationWarning)
|
||||
+warnings.filterwarnings("ignore", category=PendingDeprecationWarning, module="pykickstart")
|
|
@ -1,6 +1,6 @@
|
|||
Name: pykickstart
|
||||
Version: 2.25
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
License: GPLv2 and MIT
|
||||
Group: System Environment/Libraries
|
||||
Summary: Python utilities for manipulating kickstart files.
|
||||
|
@ -12,6 +12,7 @@ Source0: %{name}-%{version}.tar.gz
|
|||
Patch0: 0001-Support-file-URLs-for-ostree-1327460.patch
|
||||
Patch1: 0002-Add-support-for-excludeWeakdeps.patch
|
||||
Patch2: 0003-Add-documentation-for-excludeWeakdeps.patch
|
||||
Patch3: 0004-Ignore-DeprecationWarnings.patch
|
||||
Patch10: update-potfile.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
@ -63,6 +64,7 @@ the pykickstart package.
|
|||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch10 -p1
|
||||
|
||||
rm -rf %{py3dir}
|
||||
|
@ -124,6 +126,9 @@ popd
|
|||
%{python3_sitelib}/pykickstart/locale/
|
||||
|
||||
%changelog
|
||||
* Tue May 24 2016 Chris Lumens <clumens@redhat.com> 2.25-4
|
||||
- Ignore DeprecationWarnings originating in pykickstart itself (#1339272).
|
||||
|
||||
* Tue May 10 2016 Chris Lumens <clumens@redhat.com> 2.25-3
|
||||
- Add support for --excludeWeakdeps option to %packages. (jantill)
|
||||
- Add documentation for --excludeWeakdeps. (dshea)
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
diff -ru pykickstart-2.25.orig/po/pykickstart.pot pykickstart-2.25/po/pykickstart.pot
|
||||
--- pykickstart-2.25.orig/po/pykickstart.pot 2016-05-10 10:22:28.567070702 -0400
|
||||
+++ pykickstart-2.25/po/pykickstart.pot 2016-05-10 10:22:38.336151255 -0400
|
||||
--- pykickstart-2.25.orig/po/pykickstart.pot 2016-05-24 16:29:16.700598963 -0400
|
||||
+++ pykickstart-2.25/po/pykickstart.pot 2016-05-24 16:30:19.838143705 -0400
|
||||
@@ -8,7 +8,7 @@
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
-"POT-Creation-Date: 2016-02-05 11:33-0500\n"
|
||||
+"POT-Creation-Date: 2016-05-10 10:22-0400\n"
|
||||
+"POT-Creation-Date: 2016-05-24 16:30-0400\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
Loading…
Reference in New Issue