fix unicode naming bug (bz 1036310)
This commit is contained in:
parent
6c560c4ef9
commit
9cd7c836ad
12
rpmlint-1.5-fix-unicode-name-bug.patch
Normal file
12
rpmlint-1.5-fix-unicode-name-bug.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- a/TagsCheck.py
|
||||||
|
+++ b/TagsCheck.py
|
||||||
|
@@ -464,6 +464,8 @@
|
||||||
|
# squeeze whitespace to ease leading context check
|
||||||
|
checker.set_text(re.sub(r'\s+', ' ', str))
|
||||||
|
uppername = pkg.name.upper()
|
||||||
|
+ if use_utf8:
|
||||||
|
+ uppername = Pkg.to_utf8(uppername).decode('utf-8')
|
||||||
|
upperparts = uppername.split('-')
|
||||||
|
if lang.startswith('en'):
|
||||||
|
ups = [x + "'S" for x in upperparts]
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
Name: rpmlint
|
Name: rpmlint
|
||||||
Version: 1.5
|
Version: 1.5
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Tool for checking common errors in RPM packages
|
Summary: Tool for checking common errors in RPM packages
|
||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
@ -20,6 +20,8 @@ Patch0: rpmlint-1.5-desktopfix.patch
|
|||||||
Patch1: rpmlint-1.5-dont-modify-sys-argv-0.patch
|
Patch1: rpmlint-1.5-dont-modify-sys-argv-0.patch
|
||||||
# http://sourceforge.net/p/rpmlint/code/ci/910b08d053eb384605ca6ad5606791e7c224c3fa
|
# http://sourceforge.net/p/rpmlint/code/ci/910b08d053eb384605ca6ad5606791e7c224c3fa
|
||||||
Patch2: rpmlint-1.5-fix-unbound-var.patch
|
Patch2: rpmlint-1.5-fix-unbound-var.patch
|
||||||
|
# https://sourceforge.net/p/rpmlint/code/ci/9844a91e281b2da647c599c3958ec34375d245a2
|
||||||
|
Patch3: rpmlint-1.5-fix-unicode-name-bug.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python >= 2.4
|
BuildRequires: python >= 2.4
|
||||||
@ -58,6 +60,7 @@ and source packages as well as spec files can be checked.
|
|||||||
%patch0 -p1 -b .desktopfix
|
%patch0 -p1 -b .desktopfix
|
||||||
%patch1 -p1 -b .argv0
|
%patch1 -p1 -b .argv0
|
||||||
%patch2 -p1 -b .fixunbound
|
%patch2 -p1 -b .fixunbound
|
||||||
|
%patch3 -p1 -b .fixunicode
|
||||||
sed -i -e /MenuCheck/d Config.py
|
sed -i -e /MenuCheck/d Config.py
|
||||||
cp -p config config.example
|
cp -p config config.example
|
||||||
install -pm 644 %{SOURCE2} CHANGES.package.old
|
install -pm 644 %{SOURCE2} CHANGES.package.old
|
||||||
@ -108,6 +111,9 @@ make check
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 12 2013 Tom Callaway <spot@fedoraproject.org> - 1.5-6
|
||||||
|
- fix unicode naming bug (bz 1036310)
|
||||||
|
|
||||||
* Mon Nov 11 2013 Tom Callaway <spot@fedoraproject.org> - 1.5-5
|
* Mon Nov 11 2013 Tom Callaway <spot@fedoraproject.org> - 1.5-5
|
||||||
- do not modify sys.argv[0] (bz 1026333)
|
- do not modify sys.argv[0] (bz 1026333)
|
||||||
- fix unbound var in MenuXDGCheck.py (bz 1026328)
|
- fix unbound var in MenuXDGCheck.py (bz 1026328)
|
||||||
|
Loading…
Reference in New Issue
Block a user