summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 129742807f..042e7009cb 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -390,7 +390,7 @@ def create_recipe(args):
390 srcsubdir = dirlist[0] 390 srcsubdir = dirlist[0]
391 srctree = os.path.join(srctree, srcsubdir) 391 srctree = os.path.join(srctree, srcsubdir)
392 else: 392 else:
393 with open(singleitem, 'r') as f: 393 with open(singleitem, 'r', errors='surrogateescape') as f:
394 if '<html' in f.read(100).lower(): 394 if '<html' in f.read(100).lower():
395 logger.error('Fetching "%s" returned a single HTML page - check the URL is correct and functional' % fetchuri) 395 logger.error('Fetching "%s" returned a single HTML page - check the URL is correct and functional' % fetchuri)
396 sys.exit(1) 396 sys.exit(1)
@@ -840,7 +840,7 @@ def crunch_license(licfile):
840 # https://github.com/FFmpeg/FFmpeg/blob/master/COPYING.LGPLv3 840 # https://github.com/FFmpeg/FFmpeg/blob/master/COPYING.LGPLv3
841 crunched_md5sums['2ebfb3bb49b9a48a075cc1425e7f4129'] = 'LGPLv3' 841 crunched_md5sums['2ebfb3bb49b9a48a075cc1425e7f4129'] = 'LGPLv3'
842 lictext = [] 842 lictext = []
843 with open(licfile, 'r') as f: 843 with open(licfile, 'r', errors='surrogateescape') as f:
844 for line in f: 844 for line in f:
845 # Drop opening statements 845 # Drop opening statements
846 if copyright_re.match(line): 846 if copyright_re.match(line):
@@ -978,7 +978,7 @@ def convert_debian(debpath):
978 978
979 values = {} 979 values = {}
980 depends = [] 980 depends = []
981 with open(os.path.join(debpath, 'control')) as f: 981 with open(os.path.join(debpath, 'control'), 'r', errors='surrogateescape') as f:
982 indesc = False 982 indesc = False
983 for line in f: 983 for line in f:
984 if indesc: 984 if indesc: