summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-12-17 12:29:49 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:52 +0000
commit4dc97cb8459a28b6e5af06678960a06dc0a45b5e (patch)
tree76520b762a704763dd7a30542d70d83680d6f8b1
parent9bf3cf103c2a02f73cc25667cfc004d1fa31ef88 (diff)
downloadpoky-4dc97cb8459a28b6e5af06678960a06dc0a45b5e.tar.gz
utils: don't overwrite builtin dir() function
(Bitbake rev: 6dc863f714beda6ca7ff8cd3e830a9bc8a39123d) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-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 2fc347c34c..54b1db9dd3 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -629,13 +629,13 @@ def prune_suffix(var, suffixes, d):
629 return var.replace(suffix, "") 629 return var.replace(suffix, "")
630 return var 630 return var
631 631
632def mkdirhier(dir): 632def mkdirhier(directory):
633 """Create a directory like 'mkdir -p', but does not complain if 633 """Create a directory like 'mkdir -p', but does not complain if
634 directory already exists like os.makedirs 634 directory already exists like os.makedirs
635 """ 635 """
636 636
637 try: 637 try:
638 os.makedirs(dir) 638 os.makedirs(directory)
639 except OSError as e: 639 except OSError as e:
640 if e.errno != errno.EEXIST: 640 if e.errno != errno.EEXIST:
641 raise e 641 raise e