summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Gambke <s7eph4n@protonmail.com>2018-02-03 10:02:45 -0500
committerChris Johns <chrisj@rtems.org>2018-02-05 09:40:47 +1100
commitdde330b8f82593d9196fa05e2d11e3a6f7852892 (patch)
tree36a60604958f3e0bf8d4894655decabb1ec44818
parent5: Add versions to file names (diff)
downloadrtems-source-builder-dde330b8f82593d9196fa05e2d11e3a6f7852892.tar.bz2
sb: Fix path.py
is_abspath() now considers zero-length strings Also: Remove not needed line in expand()
-rw-r--r--source-builder/sb/path.py3
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)]