gencontrol.py: Create debian/po as necessary.

svn path=/dists/trunk/linux/; revision=20523
This commit is contained in:
Ian Campbell 2013-08-26 16:09:41 +00:00
parent 523c8becc4
commit d897b21426
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ class Gencontrol(Base):
})
# Prepare to generate template-substituted translations
try:
os.mkdir('debian/po')
except OSError:
pass
for path in glob.glob('debian/templates/po/*.po'):
target = 'debian/po/' + os.path.basename(path)
with open(target, 'w') as f: