Fix map name when using loopback devices
This commit is contained in:
parent
168c0a50df
commit
b79deefdd6
1 changed files with 3 additions and 1 deletions
|
|
@ -120,7 +120,9 @@ class BlockPair():
|
||||||
|
|
||||||
# Set map file
|
# Set map file
|
||||||
# e.g. '(Clone|Image)_Model[_p#]_Size[_Label].map'
|
# e.g. '(Clone|Image)_Model[_p#]_Size[_Label].map'
|
||||||
map_name = model
|
map_name = model if model else 'None'
|
||||||
|
if source.details['bus'] == 'Image':
|
||||||
|
map_name = 'Image'
|
||||||
if source.details['parent']:
|
if source.details['parent']:
|
||||||
part_num = re.sub(r"^.*?(\d+)$", r"\1", source.path.name)
|
part_num = re.sub(r"^.*?(\d+)$", r"\1", source.path.name)
|
||||||
map_name += f'_p{part_num}'
|
map_name += f'_p{part_num}'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue