Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 56641 | Differences between
and this patch

Collapse All | Expand All

(-)utils/command/install_mo.py (-1 / +8 lines)
Lines 10-16 where install_locales should default to: Link Here
10
"""
10
"""
11
11
12
from distutils.core import Command
12
from distutils.core import Command
13
#from distutils.util import change_root
13
from distutils.util import change_root
14
import os.path
14
import os.path
15
15
16
16
Lines 21-32 class install_mo(Command): Link Here
21
    user_options = [('install-dir=', None,
21
    user_options = [('install-dir=', None,
22
                     'Directory to install locales into (default: <prefix>/share/locale/<lang>/LC_MESSAGES'),
22
                     'Directory to install locales into (default: <prefix>/share/locale/<lang>/LC_MESSAGES'),
23
                    ('all-linguas', None, ''),
23
                    ('all-linguas', None, ''),
24
                    ('root', None, ''),
24
    ]
25
    ]
25
26
26
    def initialize_options(self):
27
    def initialize_options(self):
27
        self.install_dir = None
28
        self.install_dir = None
28
        self.build_dir = None
29
        self.build_dir = None
29
        self.all_linguas = None
30
        self.all_linguas = None
31
        self.root = None
30
32
31
    def finalize_options(self):
33
    def finalize_options(self):
32
        self.set_undefined_options('build_mo',
34
        self.set_undefined_options('build_mo',
Lines 35-40 class install_mo(Command): Link Here
35
            self.set_undefined_options('install',
37
            self.set_undefined_options('install',
36
                                       ('install_base', 'install_dir'))
38
                                       ('install_base', 'install_dir'))
37
            self.install_dir = os.path.join(self.install_dir, 'share', 'locale')
39
            self.install_dir = os.path.join(self.install_dir, 'share', 'locale')
40
        if self.root is None:
41
            self.set_undefined_options('install',
42
                                       ('root', 'root'))
43
        if self.root is not None:
44
            self.install_dir = change_root(self.root, self.install_dir)
38
45
39
        self.name = self.distribution.get_name()
46
        self.name = self.distribution.get_name()
40
        self.all_linguas = self.all_linguas.split(',')
47
        self.all_linguas = self.all_linguas.split(',')

Return to bug 56641