diff options
author | Stephan Gambke <s7eph4n@protonmail.com> | 2018-02-03 10:02:45 -0500 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-02-05 09:40:47 +1100 |
commit | dde330b8f82593d9196fa05e2d11e3a6f7852892 (patch) | |
tree | 36a60604958f3e0bf8d4894655decabb1ec44818 /source-builder | |
parent | 5: Add versions to file names (diff) | |
download | rtems-source-builder-dde330b8f82593d9196fa05e2d11e3a6f7852892.tar.bz2 |
sb: Fix path.py
is_abspath() now considers zero-length strings
Also: Remove not needed line in expand()
Diffstat (limited to 'source-builder')
-rw-r--r-- | source-builder/sb/path.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source-builder/sb/path.py b/source-builder/sb/path.py index 679436c..f851139 100644 --- a/source-builder/sb/path.py +++ b/source-builder/sb/path.py @@ -54,7 +54,7 @@ def host(path): return path def is_abspath(path): - if path is not None: + if path is not None and len(path) > 0: return '/' == path[0] return False @@ -218,7 +218,6 @@ def removeall(path): _remove_node(path) def expand(name, paths): - path = shell(path) l = [] for p in paths: l += [join(shell(p), name)] |