Fix locale prefix on debian 9.
authorCarl Hetherington <cth@carlh.net>
Thu, 6 Jul 2017 14:51:08 +0000 (15:51 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 6 Jul 2017 14:51:08 +0000 (15:51 +0100)
cscript

diff --git a/cscript b/cscript
index d0e93036e1e132336e191dac5d0234e03e88ae8e..6fbe957847ccbe1df5fa542684d09aea8566f6b6 100644 (file)
--- a/cscript
+++ b/cscript
@@ -363,10 +363,10 @@ def package_debian(target, cpu, version):
     target.set('CDIST_CONFIGURE', '"' + configure_options(target) + '"')
     if target.debug:
         target.set('CDIST_DEBUG_PACKAGE', '--dbg-package=dcpomatic-dbg')
-    if target.version in ['16.04', '16.10', '17.04', '8', 'unstable']:
-        target.set('CDIST_LOCALE_PREFIX', '/usr/share/locale')
-    else:
+    if target.version in ['14.04']:
         target.set('CDIST_LOCALE_PREFIX', '/usr/local/share/locale')
+    else:
+        target.set('CDIST_LOCALE_PREFIX', '/usr/share/locale')
 
     target.command('dpkg-buildpackage -uc -us')