summaryrefslogtreecommitdiff
path: root/x11/py-kiwi/patches/patch-kiwi_dist.py
blob: 6576b324f2dfe486888451c57d8e1537ef90e80e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-kiwi_dist.py,v 1.1 2014/01/10 14:43:36 jperkin Exp $

Use PKGLOCALEDIR.

--- kiwi/dist.py.orig	2011-06-10 14:35:59.000000000 +0000
+++ kiwi/dist.py
@@ -259,7 +259,7 @@ def compile_po_files(domain, dirname='lo
             info('compiling %s -> %s' % (po, mo))
             if os.system(cmd) != 0:
                 raise SystemExit("Error while running msgfmt")
-        dest = os.path.dirname(os.path.join('share', mo))
+        dest = os.path.dirname(os.path.join('@PKGLOCALEDIR@', mo))
         data_files.append((dest, [mo]))
 
     return data_files