bundlebuilder: remove an existing locale dir before building
This commit is contained in:
parent
199a91ff87
commit
1af96495d2
@ -98,6 +98,11 @@ class Builder(object):
|
|||||||
logging.warn("Missing po/ dir, cannot build_locale")
|
logging.warn("Missing po/ dir, cannot build_locale")
|
||||||
return
|
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):
|
for f in os.listdir(po_dir):
|
||||||
if not f.endswith('.po') or f == 'pseudo.po':
|
if not f.endswith('.po') or f == 'pseudo.po':
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user