[rtems-source-builder commit] sb: Convert the '-' to '_' in symlinks for git repos.

Chris Johns chrisj at rtems.org
Fri Oct 31 04:02:12 UTC 2014


Module:    rtems-source-builder
Branch:    master
Commit:    5fdd664b184a1ec69e7db853cb6375691e467fcb
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=5fdd664b184a1ec69e7db853cb6375691e467fcb

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri Oct 31 15:10:00 2014 +1100

sb: Convert the '-' to '_' in symlinks for git repos.

---

 source-builder/sb/build.py |    3 ++-
 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.



More information about the vc mailing list