From 1af96495d262afafdf09317d49609f09cfe40f67 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Sat, 13 Sep 2008 12:02:22 +0200 Subject: [PATCH] bundlebuilder: remove an existing locale dir before building --- src/sugar/activity/bundlebuilder.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py index 40d3fa20..baeb8b63 100644 --- a/src/sugar/activity/bundlebuilder.py +++ b/src/sugar/activity/bundlebuilder.py @@ -98,6 +98,11 @@ class Builder(object): logging.warn("Missing po/ dir, cannot build_locale") return + locale_dir = os.path.join(self.config.source_dir, 'locale') + + if os.path.exists(locale_dir): + shutil.rmtree(locale_dir) + for f in os.listdir(po_dir): if not f.endswith('.po') or f == 'pseudo.po': continue