From d897b21426f3f481071d2238e47ea789f2019761 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 26 Aug 2013 16:09:41 +0000 Subject: [PATCH] gencontrol.py: Create debian/po as necessary. svn path=/dists/trunk/linux/; revision=20523 --- debian/bin/gencontrol.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py index c994e98ac..42690008f 100755 --- a/debian/bin/gencontrol.py +++ b/debian/bin/gencontrol.py @@ -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: