forked from pool/rpmlint
Dirk Mueller
2764482b3b
0001-Handle-post-scripts-that-contain-non-ascii-character.patch OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=515
22 lines
623 B
Diff
22 lines
623 B
Diff
Index: rpmlint-rpmlint-1.10/SpecCheck.py
|
|
===================================================================
|
|
--- rpmlint-rpmlint-1.10.orig/SpecCheck.py
|
|
+++ rpmlint-rpmlint-1.10/SpecCheck.py
|
|
@@ -9,7 +9,6 @@
|
|
|
|
import re
|
|
import sys
|
|
-import unicodedata
|
|
try:
|
|
from urlparse import urlparse
|
|
except ImportError: # Python 3
|
|
@@ -107,7 +106,7 @@ filelist_regex = re.compile(r'\s+-f\s+\S
|
|
pkgname_regex = re.compile(r'\s+(?:-n\s+)?(\S+)')
|
|
tarball_regex = re.compile(r'\.(?:t(?:ar|[glx]z|bz2?)|zip)\b', re.IGNORECASE)
|
|
|
|
-UNICODE_NBSP = unicodedata.lookup('NO-BREAK SPACE')
|
|
+UNICODE_NBSP = u'\xa0'
|
|
|
|
|
|
def unversioned(deps):
|