From e4224706d8014a6e77c556398e103a9c487a74c7 Mon Sep 17 00:00:00 2001 From: Tim Lauridsen Date: Sep 10 2012 04:35:09 +0000 Subject: fix for upstream issue 28 --- diff --git a/fix-issue-28.patch b/fix-issue-28.patch new file mode 100644 index 0000000..47832e3 --- /dev/null +++ b/fix-issue-28.patch @@ -0,0 +1,26 @@ +From 68843c1f3dd21a06aa2dc3637a4ffa40f6d572a8 Mon Sep 17 00:00:00 2001 +From: Tim Lauridsen +Date: Sun, 9 Sep 2012 16:10:17 +0200 +Subject: [PATCH] fix for option begining with rem is removed (upstream issue + #28) + +--- + iniparse/ini.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/iniparse/ini.py b/iniparse/ini.py +index 408354d..68dd65c 100644 +--- a/iniparse/ini.py ++++ b/iniparse/ini.py +@@ -171,7 +171,7 @@ def change_comment_syntax(comment_chars='%;#', allow_rem=False): + CommentLine.regex = re.compile(regex) + + class CommentLine(LineType): +- regex = re.compile(r'^(?P[;#]|[rR][eE][mM])' ++ regex = re.compile(r'^(?P[;#]|[rR][eE][mM] +)' + r'(?P.*)$') + + def __init__(self, comment='', separator='#', line=None): +-- +1.7.11.4 + diff --git a/python-iniparse.spec b/python-iniparse.spec index ebfadae..215add7 100644 --- a/python-iniparse.spec +++ b/python-iniparse.spec @@ -2,12 +2,13 @@ Name: python-iniparse Version: 0.4 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Python Module for Accessing and Modifying Configuration Data in INI files Group: Development/Libraries License: MIT URL: http://code.google.com/p/iniparse/ Source0: http://iniparse.googlecode.com/files/iniparse-%{version}.tar.gz +Patch0: fix-issue-28.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -28,6 +29,7 @@ use. %prep %setup -q -n iniparse-%{version} +%patch0 -p1 %build %{__python} setup.py build @@ -52,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Jul 21 2012 Fedora Release Engineering - 0.4-6 +- fix for upstream issue 28 + * Sat Jul 21 2012 Fedora Release Engineering - 0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild