add Patch0: Fix warning on new BeautifulSoup4-4.4.0 (#1240115)
This commit is contained in:
parent
738669fc88
commit
999ad7ea00
36
tracer-0.5.9_fix_bs4_rhbz_1240115.patch
Normal file
36
tracer-0.5.9_fix_bs4_rhbz_1240115.patch
Normal file
@ -0,0 +1,36 @@
|
||||
From 7f45aedd7871603e2e0346be28e59e82d481b5ea Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jakub=20Kadl=C4=8D=C3=ADk?= <frostyx@email.cz>
|
||||
Date: Wed, 15 Jul 2015 10:05:53 +0200
|
||||
Subject: [PATCH] Fix warning on new BeautifulSoup4-4.4.0 (RhBug:1240115)
|
||||
|
||||
---
|
||||
tracer/resources/applications.py | 2 +-
|
||||
tracer/resources/rules.py | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tracer/resources/applications.py b/tracer/resources/applications.py
|
||||
index 8c8f4be..5f80ec8 100644
|
||||
--- a/tracer/resources/applications.py
|
||||
+++ b/tracer/resources/applications.py
|
||||
@@ -80,7 +80,7 @@ def _load_definitions():
|
||||
def _load(file):
|
||||
try:
|
||||
f = open(file)
|
||||
- soup = BeautifulSoup(f.read())
|
||||
+ soup = BeautifulSoup(f.read(), "lxml")
|
||||
|
||||
for child in soup.applications.children:
|
||||
if not isinstance(child, element.Tag):
|
||||
diff --git a/tracer/resources/rules.py b/tracer/resources/rules.py
|
||||
index 268a443..77139e6 100644
|
||||
--- a/tracer/resources/rules.py
|
||||
+++ b/tracer/resources/rules.py
|
||||
@@ -64,7 +64,7 @@ def _load_definitions():
|
||||
def _load(file):
|
||||
try:
|
||||
f = open(file)
|
||||
- soup = BeautifulSoup(f.read())
|
||||
+ soup = BeautifulSoup(f.read(), "lxml")
|
||||
|
||||
for rule in soup.find_all("rule"):
|
||||
r = Rule(rule.attrs)
|
||||
@ -1,6 +1,6 @@
|
||||
Name: tracer
|
||||
Version: 0.5.9
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Finds outdated running applications in your system
|
||||
|
||||
BuildArch: noarch
|
||||
@ -13,6 +13,9 @@ URL: http://tracer-package.com/
|
||||
# tito build --tgz
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
# Fix for rhbz 1240115 from upstream.
|
||||
Patch0: https://github.com/FrostyX/tracer/commit/7f45aedd7871603e2e0346be28e59e82d481b5ea.patch#/tracer-0.5.9_fix_bs4_rhbz_1240115.patch
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: asciidoc
|
||||
BuildRequires: python-sphinx
|
||||
@ -33,6 +36,7 @@ consider this application as outdated.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .rhbz1240115
|
||||
|
||||
|
||||
%build
|
||||
@ -60,6 +64,9 @@ make DESTDIR=%{buildroot}/usr/share/ mo
|
||||
%{python2_sitelib}/tracer/
|
||||
|
||||
%changelog
|
||||
* Sat Jul 18 2015 Björn Esser <bjoern.esser@gmail.com> - 0.5.9-3
|
||||
- add Patch0: Fix warning on new BeautifulSoup4-4.4.0 (#1240115)
|
||||
|
||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.9-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user