summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index b652a6838a..d186b1fa27 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -722,8 +722,8 @@ def prune_suffix(var, suffixes, d):
722 # See if var ends with any of the suffixes listed and 722 # See if var ends with any of the suffixes listed and
723 # remove it if found 723 # remove it if found
724 for suffix in suffixes: 724 for suffix in suffixes:
725 if var.endswith(suffix): 725 if suffix and var.endswith(suffix):
726 return var.replace(suffix, "") 726 return var[:-len(suffix)]
727 return var 727 return var
728 728
729def mkdirhier(directory): 729def mkdirhier(directory):