mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Convert the '-' to '_' in symlinks for git repos.
This commit is contained in:
parent
1b11d05bdf
commit
5fdd664b18
@ -174,7 +174,8 @@ class build:
|
|||||||
src = download.parse_url(url, '_sourcedir', self.config, self.opts)
|
src = download.parse_url(url, '_sourcedir', self.config, self.opts)
|
||||||
download.get_file(src['url'], src['local'], self.opts, self.config)
|
download.get_file(src['url'], src['local'], self.opts, self.config)
|
||||||
if 'symlink' in src:
|
if 'symlink' in src:
|
||||||
src['script'] = '%%{__ln_s} %s ${source_dir_%s}' % (src['symlink'], name)
|
sname = name.replace('-', '_')
|
||||||
|
src['script'] = '%%{__ln_s} %s ${source_dir_%s}' % (src['symlink'], sname)
|
||||||
elif 'compressed' in src:
|
elif 'compressed' in src:
|
||||||
#
|
#
|
||||||
# Zip files unpack as well so do not use tar.
|
# Zip files unpack as well so do not use tar.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user