bundlebuilder: remove an existing locale dir before building

This commit is contained in:
Simon Schampijer 2008-09-13 12:02:22 +02:00
parent 199a91ff87
commit 1af96495d2

View File

@ -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