summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-10-31 15:10:00 +1100
committerChris Johns <chrisj@rtems.org>2014-10-31 15:11:10 +1100
commit5fdd664b184a1ec69e7db853cb6375691e467fcb (patch)
tree7f76e26ea15d85cf15b839cc5be231aed42d3841
parentrtems4.11: Upgrade to gcc-4.9.2. Build rtems-tools and install. (diff)
downloadrtems-source-builder-5fdd664b184a1ec69e7db853cb6375691e467fcb.tar.bz2
sb: Convert the '-' to '_' in symlinks for git repos.
-rw-r--r--source-builder/sb/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source-builder/sb/build.py b/source-builder/sb/build.py
index 42ff22c..22e0f6a 100644
--- a/source-builder/sb/build.py
+++ b/source-builder/sb/build.py
@@ -174,7 +174,8 @@ class build:
src = download.parse_url(url, '_sourcedir', self.config, self.opts)
download.get_file(src['url'], src['local'], self.opts, self.config)
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:
#
# Zip files unpack as well so do not use tar.