[rtems-source-builder commit] sb: Find the top when a release

Chris Johns chrisj at rtems.org
Sun Dec 18 04:50:26 UTC 2022


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Sun Dec 18 16:03:37 2022 +1100

sb: Find the top when a release

Closes #4777

---

 source-builder/sb/version.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/source-builder/sb/version.py b/source-builder/sb/version.py
index 12a60e3..007f3b6 100644
--- a/source-builder/sb/version.py
+++ b/source-builder/sb/version.py
@@ -94,6 +94,8 @@ _top_dir = None
 def _top():
     if _top_dir is None:
         top = path.dirname(sys.argv[0])
+        if top.endswith('source-builder/sb'):
+            top = path.dirname(path.dirname(top))
     else:
         top = _top_dir
     if len(top) == 0:



More information about the vc mailing list