mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Allow _ in downloaded file names
This commit is contained in:
parent
08a44186e0
commit
39ca2970a5
@ -132,7 +132,7 @@ def _hash_check(file_, absfile, macros, remove = True):
|
|||||||
if hasher is not None:
|
if hasher is not None:
|
||||||
del hasher
|
del hasher
|
||||||
else:
|
else:
|
||||||
raise error.general('%s: no hash found in released RSB' % (file_))
|
raise error.general('%s: no hash found' % (file_))
|
||||||
return not failed
|
return not failed
|
||||||
|
|
||||||
def _local_path(source, pathkey, config):
|
def _local_path(source, pathkey, config):
|
||||||
@ -189,7 +189,7 @@ def _http_parser(source, pathkey, config, opts):
|
|||||||
#
|
#
|
||||||
# Wipe out everything special in the file name.
|
# Wipe out everything special in the file name.
|
||||||
#
|
#
|
||||||
source['file'] = re.sub(r'[^a-zA-Z0-9.\-]+', '-', source['file'])
|
source['file'] = re.sub(r'[^a-zA-Z0-9.\-_]+', '-', source['file'])
|
||||||
max_file_len = 127
|
max_file_len = 127
|
||||||
if len(source['file']) > max_file_len:
|
if len(source['file']) > max_file_len:
|
||||||
raise error.general('file name length is greater than %i (maybe use --rsb-file=FILE option): %s' % \
|
raise error.general('file name length is greater than %i (maybe use --rsb-file=FILE option): %s' % \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user